All docs pages

Liane docs › Guides

Color and size charts

Liane has three kinds of chart. Two are blocks on the product page and one is a section for any page.

The Color chart block

The Color chart block of the Product information section adds a link that opens every color the product comes in, drawn from its swatches. Sold-out colors are marked.

  • Option name is the option the chart shows, for example Color. Without a match, the first option with swatches is used.
  • The chart’s link sits at the end of that option’s row. With the variant picker’s Dropdown type, it stands in the block’s place.
  • The chart only lists values that have a swatch, so set up swatches first. Without swatches it shows nothing.

The Chart block (sizes, formats, nib widths)

The Chart block adds a link that opens a drawer with a table. The drawing tool draws the table’s rules. Add as many as you need, for example a size chart and a care table.

Write the Table with one row per line and cells separated by |. The first line is the heading row, and the first cell of each row heads that row:

Size | Width | Height
Small | 10 cm | 15 cm
Medium | 15 cm | 21 cm

The block starts with a sample table: replace it with your own.

  • Show beside the option puts the link at the end of that option’s row, for example Size.
  • To give each product its own table, connect Table to a multi-line text metafield. See Metafields.
  • Content from page adds a page’s content under the table, for a longer table or notes.

The drawer works without JavaScript too.

The Color chart section

The Color chart section is for any page. You pick up to 12 colors by hand, each drawn as a patch with its name, and can link each one to a product or collection. It’s the Liane preset’s signature section, and works in every preset.