PigmentDocumentation

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.

Install Pigment

  1. Open the Pigment page on the Shopify Theme Store while logged in to your store.
  2. 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.
  3. 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.
  4. In your admin, go to Online Store, Themes and select Customize on Pigment to open the theme editor.
  5. 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

KeyTypeUse
custom.background_colorColorThe dark color of the product. Every page, tile and section that shows the product.
custom.background_color_endColorThe light color of the product. Without it the theme derives it from the dark one.
custom.cutoutFile (image)The product standing, on a transparent background, cropped tight. Without it the featured image is used.
custom.name_linesSingle line textThe name in lines, separated by |, for example Lavender|Night|Renewal. Hero sequence, the product page, tiles.
custom.volumeSingle line textThe format, for example 50 ml. Hero sequence, Color library, Line-up, index rows.
custom.taglineSingle line textA 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_productProductThe product Next product opens on the product page. Without it, the next one in the collection.
custom.story_imageFile (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_headingSingle line textThe heading of the product page's Campaign.
custom.story_textMulti-line textThe text of the product page's Campaign.
custom.primary_collectionCollectionThe collection of the breadcrumb and of Next product.
custom.badge_labelSingle line textThe text of the custom badge.
custom.skin_typeSingle line textPassport row Suited to; Compare products.
custom.skin_feelSingle line textPassport row Skin feel; Texture, Skin feel.
custom.key_ingredientsSingle line textPassport row Key ingredients.
custom.textureSingle line textPassport row Texture; Texture, the heading and the choice of its illustration.
custom.texture_imageFile (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.aromaSingle line textPassport row Aroma.
custom.dosageSingle line textPassport row Dosage.
custom.how_to_useMulti-line textThe How to use row of the product page; Texture, How to use.
custom.ingredientsMulti-line textThe Ingredients row of the product page.
custom.ratingRating, or decimal numberThe rating out of 5, when no review app writes reviews.rating.
custom.rating_countIntegerThe number of reviews, when no review app writes reviews.rating_count.

Variants

KeyTypeUse
custom.background_colorColorThe dark color of a variant that differs from its product: choosing it recolors the page.
custom.background_color_endColorThe light color of that variant.
custom.cutoutFile (image)The cutout of that variant on the product page.

Collections

KeyTypeUse
custom.background_colorColorThe dark color of the collection: its head and its tile.
custom.background_color_endColorThe light color of the collection.
custom.banner_imageFile (image)The banner of the collection page, before the Banner image of the section.

Articles (blog posts)

KeyTypeUse
custom.productProductThe product of the article: its colors, its cutout, and its tile on the article page.
custom.reading_timeIntegerThe reading time in minutes. Without it, worked out from the length of the article.

Pages

KeyTypeUse
custom.imageFile (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.

Create these menus in Content, Menus with these handles: the demo templates already point to them.

Menu handleUsed byWhat to put in it
main-menuHeader, MenuShop, 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.
shopHeader, Main links (the menu sheet on phones); the first Links block of the footerAll formulas and your collections, each linked to a collection so its number of products shows.
shop-filtersCollection, MenuAll (linked to /collections/all), then one link per category collection.
footerThe second Links block of the footerDelivery, Returns, Contact, Journal: your help pages.
moreHeader, 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

  1. Colors of each product. Create the definitions above, then give every product its two colors, its cutout and its name lines.
  2. House colors and fonts. In Tone and Typography, set the colors of the pages without a product and your fonts.
  3. 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.
  4. Home page. Replace the products, photos and texts of each section: see Sections.
  5. Product page. Open a product in the editor and review its blocks: see Product page blocks.
  6. Collections. Set the order of each collection in your admin, give each collection its two colors, and install Search and Discovery for the filters.
  7. Cart. In Theme settings, Cart, set the free shipping threshold and the empty cart; in Gift wrapping, pick your wrapping product.
  8. Journal. Link each article to a product and give it a reading time (see Metafields, Articles).
  9. Pages. Create your About and Contact pages and assign them the page.about and page.contact templates.
  10. 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.