Getting started
Pigment is a Shopify theme where every product dresses the store in its own color. This guide takes you from installation to a store ready to publish: the preset, the color of each product, the metafields and menus to create, and the first settings.
- Theme settingsColors, tone, fonts, buttons, cart and storewide features.
- SectionsEvery section of the demo store, one page each.
- Product page blocksBuild the product page, block by block.
- MetafieldsThe colors, cutouts and texts of each product.
- FeaturesQuick view, badges, gift wrapping, age verifier and more.
- FAQAnswers to the questions merchants ask most.
Install Pigment
- Open the Pigment page on the Shopify Theme Store while logged in to your store.
- Select View demo store to browse Pigment with its content before you install it. The demo store is a fictional skin care brand, Balm Studio: its name, its logo and its products are the demo's, not the theme's.
- Select Try theme to add a trial copy to your theme library, or buy the theme. A trial lets you customize everything; you pay when you publish.
- In your admin, go to Online Store, Themes and select Customize on Pigment to open the theme editor.
- When the store is ready, open the theme's ... menu in the theme library and choose Publish.
Pigment needs no app. Apps that offer app blocks, such as reviews or subscriptions, plug into the product page and into most sections.
Updating Pigment
When a new version is released, your theme library shows a notice. Shopify adds the new version as a separate copy that keeps your theme editor settings and content, so you can review it before publishing it. Changes made in the theme code are not carried over: see Custom code. What changed is listed in the Changelog.
The Pigment preset
Pigment comes with one preset, also named Pigment, and your store starts from it:
- Fonts. Headings in Gloock, text in Instrument Sans, on one fluid type scale.
- House colors. A deep violet (
#2A1F5E) and a lavender (#7464B6): the colors of every page that shows no product, set in Theme settings, Tone. - Color schemes. White, near black, deep violet and pale lavender, for the sections set to the Color scheme surface.
- Layout. Pages in Full width with margins, with side margins of 60 px on desktop and 20 px on phones, and square corners.
- Details. Medium buttons, breadcrumbs separated by a slash, the New badge on products tagged
new, and an empty cart that points to the color library.
The demo templates (home page, product, collection, About, Contact and Journal) are filled with sections and example texts you replace with yours. Every value is a starting point that you change in the theme editor.
Tone on tone
Each product carries two colors, a dark one and a light one, in two metafields. From them the theme works out, on the server, a light ground, the color itself, a text color, a dark ground, a color for large text on the dark ground and an almost white ground, and it checks the contrast of every text before the page is sent. Then:
- the product page, its header and its footer wear the colors of the product, and a variant with its own colors recolors the page when it is chosen;
- tiles, bands and steps show each product in its colors, and the page glides from one color to the next as the visitor scrolls;
- a collection with its own two colors tints its head;
- a page without a product color uses the house pair of the preset, and a product without colors takes a color of its own derived from it, the same on every page.
Everything reads correctly without JavaScript, and visitors who ask for reduced motion see each color at once. Give every product its two colors before anything else: it is what makes the store look like the demo.
Metafield definitions to create
Create these definitions in your admin, under Settings, Custom data, with exactly the namespace and
key shown (custom is the namespace). The theme reads them as soon as they exist; a product that leaves one
empty simply does not show that part. Details and examples are on Metafields.
Products
| Key | Type | Use |
|---|---|---|
custom.background_color | Color | The dark color of the product. Every page, tile and section that shows the product. |
custom.background_color_end | Color | The light color of the product. Without it the theme derives it from the dark one. |
custom.cutout | File (image) | The product standing, on a transparent background, cropped tight. Without it the featured image is used. |
custom.name_lines | Single line text | The name in lines, separated by |, for example Lavender|Night|Renewal. Hero sequence, the product page, tiles. |
custom.volume | Single line text | The format, for example 50 ml. Hero sequence, Color library, Line-up, index rows. |
custom.tagline | Single line text | A short description. Hero sequence (its first sentence), Color library, Hue finder, and the Text block of the product page with its Source on Tagline. |
custom.next_product | Product | The product Next product opens on the product page. Without it, the next one in the collection. |
custom.story_image | File (image) | The photo of the product page's Campaign. A product without it does not show the section (Hide when the image is empty). |
custom.story_heading | Single line text | The heading of the product page's Campaign. |
custom.story_text | Multi-line text | The text of the product page's Campaign. |
custom.primary_collection | Collection | The collection of the breadcrumb and of Next product. |
custom.badge_label | Single line text | The text of the custom badge. |
custom.skin_type | Single line text | Passport row Suited to; Compare products. |
custom.skin_feel | Single line text | Passport row Skin feel; Texture, Skin feel. |
custom.key_ingredients | Single line text | Passport row Key ingredients. |
custom.texture | Single line text | Passport row Texture; Texture, the heading and the choice of its illustration. |
custom.texture_image | File (image) | A photo of the texture, cut out on a transparent background. Texture shows it, large and centered, when its Source is on Automatic; without it, the illustration. |
custom.aroma | Single line text | Passport row Aroma. |
custom.dosage | Single line text | Passport row Dosage. |
custom.how_to_use | Multi-line text | The How to use row of the product page; Texture, How to use. |
custom.ingredients | Multi-line text | The Ingredients row of the product page. |
custom.rating | Rating, or decimal number | The rating out of 5, when no review app writes reviews.rating. |
custom.rating_count | Integer | The number of reviews, when no review app writes reviews.rating_count. |
Variants
| Key | Type | Use |
|---|---|---|
custom.background_color | Color | The dark color of a variant that differs from its product: choosing it recolors the page. |
custom.background_color_end | Color | The light color of that variant. |
custom.cutout | File (image) | The cutout of that variant on the product page. |
Collections
| Key | Type | Use |
|---|---|---|
custom.background_color | Color | The dark color of the collection: its head and its tile. |
custom.background_color_end | Color | The light color of the collection. |
custom.banner_image | File (image) | The banner of the collection page, before the Banner image of the section. |
Articles (blog posts)
| Key | Type | Use |
|---|---|---|
custom.product | Product | The product of the article: its colors, its cutout, and its tile on the article page. |
custom.reading_time | Integer | The reading time in minutes. Without it, worked out from the length of the article. |
Pages
| Key | Type | Use |
|---|---|---|
custom.image | File (image) | The picture of a page in the cards of a mega menu. |
Some texts are connected in the demo product template rather than read by the code: the product passport rows, the How to use and Ingredients rows, and the Texture section. If you create these definitions after installing the theme, the connections of the demo template work as they are; with other keys, connect each setting to your metafield with the dynamic source icon of the theme editor.
Product ratings
The product page Rating block, the quick view and Compare products show a rating when the product has one: first the
standard reviews.rating and reviews.rating_count metafields that review apps write, else
custom.rating (a rating, or a number out of 5) and custom.rating_count (an integer) that you fill
yourself. Without either, nothing is shown. The collection tiles show it too when Show the product rating
is on in the Collection section.
Products that go well together
The Complementary products block of the product page (Works well with on the demo) and the recommendations of the cart read Shopify's complementary products. Choose them per product in Shopify's free Search and Discovery app, under Product recommendations. Until you do, the block shows related products, or nothing.
Menus
Create these menus in Content, Menus with these handles: the demo templates already point to them.
| Menu handle | Used by | What to put in it |
|---|---|---|
main-menu | Header, Menu | Shop, with your categories under it (Cleanse, Treat, Hydrate and Protect on the demo) for the Index mega menu; Journal; Rituals, with links to the sections of the home page; About. |
shop | Header, Main links (the menu sheet on phones); the first Links block of the footer | All formulas and your collections, each linked to a collection so its number of products shows. |
shop-filters | Collection, Menu | All (linked to /collections/all), then one link per category collection. |
footer | The second Links block of the footer | Delivery, Returns, Contact, Journal: your help pages. |
more | Header, Secondary links (under the large links of the menu sheet) | The links to the sections of the home page, Journal, About and Contact. |
The routine discount
The Routine builder adds the products a shopper chose and shows the total of their prices. To reward a full routine, create the discount in your admin, under Discounts, for example an automatic discount on the products of the routine, describe it in the section's Offer text and type its percent in Discount in percent: the total is then struck through and followed by the reduced total, for example 114 € and 103 € for ten percent. The setting changes what the page shows; checkout applies the discount of your admin, so keep the two in step.
First setup, step by step
- Colors of each product. Create the definitions above, then give every product its two colors, its cutout and its name lines.
- House colors and fonts. In Tone and Typography, set the colors of the pages without a product and your fonts.
- Header. Open the Header: your logo or your store name as a wordmark, and the menus above. Add a Mega menu block for Shop with the Index layout.
- Home page. Replace the products, photos and texts of each section: see Sections.
- Product page. Open a product in the editor and review its blocks: see Product page blocks.
- Collections. Set the order of each collection in your admin, give each collection its two colors, and install Search and Discovery for the filters.
- Cart. In Theme settings, Cart, set the free shipping threshold and the empty cart; in Gift wrapping, pick your wrapping product.
- Journal. Link each article to a product and give it a reading time (see Metafields, Articles).
- Pages. Create your About and Contact pages and assign them the
page.aboutandpage.contacttemplates. - Check and publish. Preview every page type on a desktop screen and on a phone, place a test order, then publish.
Templates included
Home page, product, collection, list of collections, search, cart, blog, blog post, page, 404, password and gift card;
a second collection template, collection.colorful (the collection on Deep); and five page templates:
page.about (About), page.contact (Contact), page.faq (FAQ), page.find-us
(Store locator) and page.products (Products). All of them are built from sections you can change in the
editor.
Need help?
Search this documentation with the box at the top of the page, read the FAQ, or contact Pigment support.