All docs pages

Liane docs › Start

The line

One line runs down every page, from the header to the footer, drawn as customers scroll. It’s fitted to your own sections, in any order, on any color scheme and at any screen size, and it’s drawn again when the page changes size.

What the line does

  • It leads the way. On the product page it leads to Add to cart. After an add, the drawing tool ticks the panel or drawer that opens and circles the quantity just added where there’s room.
  • It writes the headings. With Theme settings › Line › Write headings by hand on, the pen writes each section’s heading as the line reaches it. Until then, the heading’s place is empty. Pictures, prices and buttons never wait for the line.
  • It keeps to its lane. The line never crosses text, buttons, form fields or product pictures. Beside a product grid it stays in the margin, so the cards are undisturbed.
  • It becomes the scroll bar. In search results and in drawers and dialogs that scroll, a length of the line shows how far the customer has read, and can be dragged.
  • It signs off. At the end of the page, the pen signs your store’s name in the footer, once a visit.

On phones the line leaves open paper between sections: it stops short with the tool’s own flick and picks up again from the edge of the screen.

Each section’s Line setting

Most sections have a Line setting:

  • Draw around the content: the line draws around the section’s heading, text and pictures, as in the presets.
  • Pass beside the content: the line runs down the section’s side and draws nothing around it. The heading shows at once.
  • Pause here: the line goes behind the section and comes out below it.

Sections with a heading, picture or gallery beside the line also have a position setting, such as Image position or Heading position. Alternate with the line lets the side follow the section’s place on the page, so the line can swing from one side to the other. Left or Right fixes the side. Where two sections keep the same side, the line drops straight down between them.

The drawing tool

Theme settings › Line › Drawing tool chooses what the line is drawn with: Pencil (Liane), Felt-tip pen (Calame) or Wax crayon (Marelle). The tool also draws the swatches, struck prices, checkbox ticks and focus rings, and sets the picture shapes. Line color gives the line your own color. The line keeps that one color from section to section, and is drawn a shade lighter or darker where a background is too close to it.

The felt-tip pen can write loops and knots into the line where it has room (Loops in the line), never beside filters, forms or the buying column. The wax crayon can add small Doodles in the open paper between sections.

Motion, and turning it off

  • Animate the line off: the line shows finished on every page, and headings show at once.
  • Write headings by hand off: headings show at once, and the line still draws.
  • Customers who ask their device for reduced motion always see the line finished and still, with nothing held back.

The theme editor always shows the line finished, and draws a section again when you select it. Open Preview to see a whole page drawn.

Speed and accessibility

The line’s first stroke comes with the page itself, before any script runs. The line is decoration: screen readers skip it, and the content around it is the same with or without it. Menus, search, filters, the size chart and the cart all work without JavaScript.