PigmentDocumentation

Color library

The whole range at a glance: one tall band per product, each in its color.

WhereAny template. Not available in the header or footer group.

Color library with one band open, on a desktop screenColor library with one band open, on a phone
Color library: one band open, the others in their colors.

What it is for

Let visitors browse by color. Each band carries a product name written upright; opening it shows the product, its text and the buttons to buy it.

How it works

Pick up to 12 products in Products, or a Collection, whose first 12 products are used when no product is picked; with neither, the first 12 products of your store. Opening a band, on hover, on click or with the keyboard, widens it, shows the product upright with its name, type, tagline, price, View formula and Add to bag, and gives the section and the page that product's color. Band open at start chooses the band open first. On phones the bands stack as an accordion. Without JavaScript each band opens and closes on its own.

Content tips

  • Give every product its two colors: without them, each product takes a color of its own derived from the house pair.
  • The large word of the open band is the first word of the name, or its first line: Number of lines shows up to four lines, and Default layering can bring them in front of the product. See The large name.
  • Order the products from light to dark, or by family: the row of colors is the first thing seen.

Settings

Section settings (17)
SettingValuesDefaultNotes
HeadingTextExplore by color
TextTextDescribe the collection in one line.
ProductsProduct listEmptyUp to 12. Each band takes its product's colors: custom.background_color and custom.background_color_end.
CollectionCollectionEmptyUsed when no product is chosen above: its first 12 products.
Band open at start1 to 121
Show priceCheckboxOn
Show add to cart buttonCheckboxOn
AnchorTextEmptyLowercase words joined by hyphens. Link to this section with #anchor, for example from a menu.
Band height (desktop)40 to 100 svh, step 274 svh
Open band height (mobile)40 to 100 svh, step 286 svh
Top padding (desktop)0 to 200 px, step 4120 px
Top padding (mobile)0 to 200 px, step 480 px
Product name
Number of lines
  • Auto
  • 1 line
  • 2 lines
  • 3 lines
  • 4 lines
AutoAuto: the first word of the name, or its first line from custom.name_lines. 1 to 4: up to that many lines.
Default layering
  • Behind the product
  • Last line in front
  • First and last lines in front
  • All in front
Behind the productWhich lines of the name stand in front of the product. The others stay behind it.
Opacity of lines in front40 to 100%, step 5100%Lower it to let the product show through the lines in front.
Name size
  • Fixed
  • Auto
FixedFixed follows the screen. Auto sizes the longest line to most of the width. Lines never run off the screen or under the header.
Scale60 to 130%, step 5100%