PigmentDocumentation

Sections

Pigment is built from sections you add, remove and reorder in the theme editor. Each section of the demo store has its own page; the sections of the first version of the theme are on More sections.

Home page

The sections of the demo home page, in their order.

Product page

The product template: the product itself is on Product page blocks.

Collection

The collection template.

About page

The page.about template.

Contact page

The page.contact template.

Journal

The blog and blog post templates.

Every page

The header and footer groups, and the cart drawer.

More sections

The sections of the first version of the theme, and the template sections the demo does not use, are on More sections.

Every section wears a color

Each product carries two colors, a dark and a light one, in its metafields (see Metafields). The theme works out six colors from them on the server, with the contrast of every text checked: the light ground (Field), the color itself (Tone), the text (Ink), a dark ground (Deep), a color for large text on Deep, and an almost white ground (Paper). A product page, a collection or a section that shows a product takes these colors, and the page glides from one color to the next as the visitor scrolls. Pages without a product color use the house pair of Theme settings, Tone. A product without its own colors takes a color of its own, derived from the house pair: the same on its page, its tile, the menu, the cart and every section that shows it, different from one product to the next, never gray.

The large name

Hero sequence, Color library, the product page and Featured product set the product's name large behind the product. Its lines come from Name lines in a Hero sequence block, else from the product's custom.name_lines metafield (a bar | at each break, four lines at most), else from its title, cut into Number of lines (Auto: three at most). Default layering brings lines in front of the product: Behind the product, Last line in front, First and last lines in front or All in front; in a Hero sequence block, Use custom layering and Line 1 in front to Line 4 in front choose line by line. Opacity of lines in front lets the product show through them. Name size Fixed follows the screen, Auto sizes the longest line to most of the width of the scene; Scale makes it smaller or larger, from 60 to 130 percent. Whatever the settings, no line runs off the screen or under the header, and the name keeps its size for visitors who ask for reduced motion.

Settings most sections share

Surface

Most sections have a Surface setting that paints their background:

  • Field: the light ground of the page color.
  • Deep: the dark ground of the same color, with light text.
  • Paper: an almost white ground tinted with the color.
  • Color scheme: the section's color scheme (see Theme settings, Colors) instead of the page color.
  • Image: a picture behind the section, with the color scheme for the text.

Some sections offer only some of these surfaces.

Section width

The sections that have Section width reach Page width, Full width with margins or Full width. Theme default follows Default section width of Theme settings, Layout, so every section left on it changes at once.

The header over a section

With Header behavior on Transparent at top in the Header, the header lies over the first section of a page when that section allows it. The demo sections that open a page (Hero sequence, Contact, Journal, Journal article and Chapters) allow it on their own. Many sections of More sections have Header over this section or Allow transparent header for the same purpose.

Desktop and mobile values

Sizes and spacings come in pairs: a label ending in (desktop) and one ending in (mobile). Text sizes are fluid between the two and are multiplied by Heading scale or Body scale of Theme settings, Typography. Use the device switch at the top of the editor to preview both.

Anchor and breadcrumbs

Anchor names a section so a menu link can point at it, for example /#lineup. Breadcrumbs on this page shows or hides the breadcrumb trail on one page, whatever Theme settings, Breadcrumbs says.

Empty content

An empty text prints nothing on your store, and a block that misses what it needs (a review without a quote, a step without a product, once the section has products) is left out. A section of products where you have chosen none shows the first products of your store, and a store without products shows Shopify's product placeholders there. In the theme editor such a block keeps its frame with a short note that says why it is hidden, so you can still select it.