Lolly Beta
Launch App

CreateDesign and templates

Colourways

One poster leads with green, the next with coral, and both are plainly the same brand. A colourway is one of those leads: a lead colour, the colour that sits on it and a partner colour, kept in your design system beside the others. You choose a colourway for each piece you make, and the design system itself stays as it is.

Inside one brand, a department or a product often has a colourway of its own. Each person can take one as theirs in Settings → Appearance, so the app around them and each new piece they start wear their team's lead (Make a colourway your own).

Lolly Demo, the design system lolly.tools opens with, ships six: Spearmint, Morning, Spring, Beach, Afternoon and Midnight. Each holds its colours for the light look and for the dark look, so any colourway can be drawn in either. You make and edit colourways in the Colours room of Lolly Design System Setup (Add colourways to a design system).

  1. SpearmintCanonical

    Aa

    SpearmintSugar on the lead, Bunyapine beside

    Aa

    Green AppleLiquorice on the lead, Bunyapine beside

  2. Morning

    Aa

    OutbackSugar on the lead, Lagoon beside

    Aa

    HoneyLiquorice on the lead, Sky beside

  3. Spring

    Aa

    FuchsiaSugar on the lead, Olive beside

    Aa

    DonutLiquorice on the lead, Green Apple beside

  4. Beach

    Aa

    LagoonLiquorice on the lead, Bark beside

    Aa

    ReefLiquorice on the lead, Pancake beside

  5. Afternoon

    Aa

    OchreSugar on the lead, Khaki beside

    Aa

    ArvoLiquorice on the lead, Banksia beside

  6. Midnight

    Aa

    LiquoriceSugar on the lead, Jacaranda beside

    Aa

    JacarandaLiquorice on the lead, Swell beside

The tile is the lead, the Aa is the colour on the lead and the dot is the partner. Each look links its primary, on-primary and secondary slots to the chosen colourway's colours for that look.

Lolly Demo's six colourways in the light look and the dark look: each has a lead, the colour on the lead and a partner.

signed by Lollycolourways-looks.htmlHTMLpixels, not shapes11 KBAI editedgenerated by Claude Opus 5.5Check it yourselfGet the signed file

Brand architectures compares a rotating lead with the other ways an organisation arranges its brands, and Lolly Demo in use shows the six at work.

Choose a colourway for one piece

In a tool, the sidebar's Design system section shows the choices the design system offers: one dot per colourway, drawn in its lead and partner for the current look, then Light and Dark, then a list for any other theme group. In Lolly Design, the Inspector's Canvas tab shows the same choices, and the two always agree.

Pick a dot and the open tool redraws with no reload. Every colour linked to the design system changes, so does every colour the tool's own logic read from it, and so do the colour picker's swatches. The choice belongs to the piece: it is saved with the session, and the app around the canvas keeps its own colours.

A group appears only when switching it changes what the tool draws. A tool that draws only the text colour shows Light and Dark and no dots, since a colourway leaves the text colour alone. A tool that reads no design-system colour shows no section. Linking a colour to the design system can bring a group in, and a hidden group still keeps its choice in the link and the session.

The choice travels wherever the piece goes:

Make a colourway your own

In Settings → Appearance, Your colourway shows the design system's colourways as dots, drawn in the app's current look, with the canonical one marked as the design system default. Pick a dot and two things change:

The row appears only when the active design system has more than one colourway. The choice is kept on your profile, once per design system, so someone who works in two design systems keeps one in each, and a backup or Sync carries the choices with the rest of your profile. Picking the canonical colourway stores nothing: you then follow the design system, whatever it makes canonical later. If the design system drops the colourway you chose, the app and new work go back to the canonical one.

Your choice never changes a piece that already has its colours settled:

An export started in your colourway records that colourway in its design-system record, the same way as a colourway picked in the sidebar.

The app follows your colourway

The app's accent, favicon and logo tint follow your colourway, or the canonical colourway when you have not chosen one, whatever the open piece uses: the app belongs to the device, and the canvas belongs to the piece. A Beach poster shows Beach on the canvas and your colourway in the app around the poster. Every other theme group stays on its canonical option for the app, whether or not it declares a kind, except light and dark, which follow the app's appearance setting.

The canonical colourway is the one marked canonical, or the first when none is marked. For Lolly Demo it is Spearmint. Settings → Design system lists the design system's colourways (#/settings?dash-colourways).

Tools that use every lead

Some tools draw several colours at once, and they draw on the whole family: every colourway's lead in the piece's look, canonical first, read through host.tokens.family() (Host API).

WhereWhat the family changes
Lolly ChartThe leads come first in the categorical palette: ahead of the design system's own spectrum, or ahead of the shipped colours when it has none, so the palette never has fewer colours than with one colourway. They follow Primary and Secondary in the ordered palette and the recolour swatches. Another colourway's lead becomes the second hue of the two-hue sequential and diverging ramps. The Design system - colour roles first palette, which you choose, leads with the design system's colour roles in the piece's colourway instead. A 3-D chart builds its stage from the colourway too: the studio floor and wall are the background colour, the night stage is the design system's deepest colour, and the lights and reflections are tinted with the secondary and the primary. A palette colour too close to the stage is left out rather than muddied, so a dark colourway leads with its brighter hues.
AudiogramThe other colourways' leads follow the background in the visualiser's colours.
Mesh GradientShuffle colours draws on the leads before the rest of the design system.
The visualiser's colour schemesOne scheme per colourway, in the design system's order and labelled with the colourway's name, with that colourway's partner as the counterpoint. A lead too dark or too grey to carry the picture hands the field to its partner.
Audio and text covers in Assets and the pickerThe leads come first in the colours the covers are drawn from.
Icon colours and photo washes in Assets and the pickerOne choice per colourway, after Original, named as the colourway is. A two-colour icon takes the colourway's lighter lead as its accent and the deeper lead as its base when the deeper lead holds as an outline on the surface; otherwise the more vivid lead and the colourway's text colour. A photo takes a gradient map from a dark tone through the lead to a pale tint of the lead. A design system with no colourways offers neither strip.
Icons set to AutoThe piece's own colourway, in its pairing for the ground under the icon: the light pairing above on a light ground, and on a dark ground or a photograph the dark look's lead as the outline with the colourway's partner or text colour as the accent.
CertificateCelebration's printed confetti and the falling pieces of the Confetti motion use the piece's accent and partner, then the other colourways' leads.

When a piece's colourway or look changes, Lolly Chart, Mesh Gradient and Lolly Filter read the colours they keep from the design system again as the open tool redraws, and every input keeps its value. Covers belong to the app, not to a piece: they list the same leads whatever colourway a piece uses, in the app's own light or dark appearance.

The family holds one colour per colourway. On a design system with colour roles, each member is the role read as the lead colour in that colourway. A role read by name only never joins the family, so no tool draws the role until someone chooses it in a colour field or chooses Lolly Chart's colour roles palette.

A design system with one colourway, or none, has no family, and each of these tools draws exactly as before. Tool authors reach the family through the canvas variables --brand-lead-1 onwards and a colour input's "palette": "colourway-leads" option; Templates and rendering and Tool inputs cover both.

Tools that keep their own colours

A tool whose colours are its content, such as a tonal ramp, can declare "tokenAxes": { "colourway": "ignore" } in its manifest (Tool manifests has the format). That tool renders in the canonical colourway whatever a link, a saved session or the design system's stored choice asks for, and its sidebar offers no colourway. Any other kind works the same way, such as mode for a print piece always drawn in the canonical look.

When a link or --_themes asks such a tool for another option, lolly run prints a THEME_CHOICE_IGNORED warning, which --strict turns into a failure, and an MCP render adds the same sentence to its warnings.

Rules for a series

A series of pieces, such as a week of social posts or the speakers at an event, can take its colourways from a rule. The engine's pickColourway function applies five rules.

Note: Rules are for scripts for now

No series or batch flow in the app applies them yet: they are for scripts and tools that call the engine. Meanwhile, give each row its colourway in a batch CSV's _themes column (Lolly Batch), or export one piece in several colourways from the command line with --themes=Spearmint,Beach (One document, every theme).

  1. canonicalAlways the canonical one

    1. Sm1
    2. Sm2
    3. Sm3
    4. Sm4
    5. Sm5
    6. Sm6
    7. Sm7
    8. Sm8
  2. cycleThe next one, in order

    1. Sm1
    2. Mo2
    3. Sp3
    4. Be4
    5. Af5
    6. Mi6
    7. Sm7
    8. Mo8
  3. by-keyOne per speaker

    1. MiAna
    2. SmBen
    3. BeChen
    4. MiAna
    5. MoDee
    6. SmBen
    7. BeEli
    8. BeChen
  4. shuffleSeed “launch”

    1. Mi1
    2. Sm2
    3. Af3
    4. Mo4
    5. Be5
    6. Sp6
    7. Sp7
    8. Be8
  5. by-dateBeach for December

    1. Sm28 Nov
    2. Sm30 Nov
    3. Be2 Dec
    4. Be10 Dec
    5. Be24 Dec
    6. Be31 Dec
    7. Sm1 Jan
    8. Sm5 Jan
  • Sm Spearmint
  • Mo Morning
  • Sp Spring
  • Be Beach
  • Af Afternoon
  • Mi Midnight

Eight pieces from Lolly Demo under each rule, picked by the engine itself.

signed by Lollycolourways-series.htmlHTMLpixels, not shapes13 KBAI editedgenerated by Claude Opus 5.5Check it yourselfGet the signed file
RulePicks
canonicalThe canonical colourway, every time
cycleThe next colourway in order for each piece, canonical first
by-keyA fixed colourway for each value of a field, such as a speaker or a product, from a hash of the value
shuffleA seeded random order that uses every colourway once before any repeats
by-dateThe colourway whose date window contains the date, else the canonical one

A rule is applied when each piece is made, and the piece stores the colourway it got, never the rule. Adding a colourway later changes what a rule picks for new work and leaves every existing piece as it was. The same seed, key, date and position pick the same colourway on every computer, because the engine supplies no clock and no random source of its own.

Add colourways to a design system

In Lolly Design System Setup

The Colours room makes and edits colourways. Open Colour roles: the Colourways row at its head shows one chip per colourway in its lead colour, with Default on the canonical one. The table under the row shows each colour role for the chosen colourway, with light and dark side by side.

  1. Press + Add and choose one of the palette's colours. The new colourway takes that colour as its lead, and Lolly works out the colour that sits on the lead and the partner, for light and for dark: the same values a whole design system derived from that colour would use. The surface, the text and the ramps stay the design system's own. On a design system with colour roles, the lead and partner go to the roles read as those colours, and every other role starts with the canonical colourway's colour, marked Copied until you choose one. On a design system with one lead colour, the first + Add makes the current lead the canonical colourway, named after its colour, and nothing it draws changes.
  2. Choose a chip to edit that colourway. The table, the strip, the palette and the previews then read and write that colourway. The Light and Dark switch beside In context chooses which look the preview and palette show.
  3. With a colourway chosen, type a new name in the name field, or press Duplicate, Make default or Remove. The canonical colourway cannot be removed.

Each edit goes through the room's undo and saving, and Lolly refuses an edit that would change how any other colourway or look draws. A managed design system opens read-only: its page shows the colourways as a chooser and the colour roles for the chosen one, with no editing controls. On a Lolly Work instance that lets you edit its design system, Edit for the instance opens an editing copy, and Send to the instance sends the colourways and colour roles back (Edit this instance from the studio). When a token file encodes its colourways in a way the studio cannot edit, the row gives the reason, and choosing a colourway in a tool still works.

Three things are not in the room yet and are written in the token file: the order of the colourways, a date window on a colourway and a rotation rule for the group.

In the token file

A colourway can also be written by hand, by a script or with the engine's colourway functions, and imported like any other token file.

A colourway is a theme group of kind colourway (Design Tokens covers kinds). It cannot simply override color.semantic.primary: token sets apply in set order, not group by group, so a colourway set placed after the light and dark sets would give the same primary to both looks. Instead each colourway holds its colours per look, and the light and dark sets link the role slots to them. This is how Lolly Demo does it, trimmed to two colourways:

{
  "light": { "color": { "$type": "color", "semantic": {
    "primary":    { "$value": "{color.colourway.light.primary}" },
    "on-primary": { "$value": "{color.colourway.light.on-primary}" },
    "secondary":  { "$value": "{color.colourway.light.secondary}" },
    "text":       { "$value": "{color.brand.liquorice}" } } } },
  "dark": { "...": "the same links, through color.colourway.dark" },
  "colourway/spearmint": { "color": { "$type": "color", "colourway": {
    "light": { "primary": { "$value": "{color.brand.spearmint}" }, "on-primary": { "$value": "{color.brand.sugar}" }, "secondary": { "$value": "{color.brand.bunyapine}" } },
    "dark":  { "primary": { "$value": "{color.brand.green-apple}" }, "on-primary": { "$value": "{color.brand.liquorice}" }, "secondary": { "$value": "{color.brand.bunyapine}" } } } } },
  "colourway/beach": { "color": { "$type": "color", "colourway": {
    "light": { "primary": { "$value": "{color.brand.lagoon}" }, "on-primary": { "$value": "{color.brand.liquorice}" }, "secondary": { "$value": "{color.brand.bark}" } },
    "dark":  { "primary": { "$value": "{color.brand.reef}" }, "on-primary": { "$value": "{color.brand.liquorice}" }, "secondary": { "$value": "{color.brand.pancake}" } } } } },
  "$themes": [
    { "name": "light", "selectedTokenSets": { "base": "enabled", "light": "enabled" }, "$extensions": { "com.suse.lolly": { "axis": { "kind": "mode" } } } },
    { "name": "dark", "selectedTokenSets": { "base": "enabled", "dark": "enabled" }, "$extensions": { "com.suse.lolly": { "axis": { "kind": "mode" } } } },
    { "id": "spearmint", "name": "Spearmint", "group": "colourway", "selectedTokenSets": { "colourway/spearmint": "enabled" }, "$extensions": { "com.suse.lolly": { "axis": { "kind": "colourway", "canonical": true } } } },
    { "id": "beach", "name": "Beach", "group": "colourway", "selectedTokenSets": { "colourway/beach": "enabled" }, "$extensions": { "com.suse.lolly": { "axis": { "kind": "colourway" } } } }
  ]
}

The path segment after color.colourway is the look's theme id (light, dark). Every colourway re-points primary, on-primary and secondary. A colourway can also re-point surface for a tinted background; then every look links its surface the same way, and the other colourways keep their own. Slots no colourway re-points, such as text, muted and edge, stay ordinary values in the light and dark sets. A design system with colour roles holds each role's colour per colourway in the same sets (Colour roles in each colourway). com.suse.lolly is Lolly's vendor extension key, written in the reverse-domain form DTCG asks for. Token files already carry it, so it does not change.

Naming rules for colourways

A colourway id may not repeat any other theme id in the file, so light and dark are never colourway ids. A colourway name may not repeat any other theme's id or name, in any case, and has at most 80 characters (MAX_COLOURWAY_NAME), because a theme request matches by name: a colourway called Light would answer every request for the light look. The same rules apply to the canonical colourway that liftToColourways creates.

A group can carry a rotation rule and each option a date window ({ "from": "2026-12-01", "to": "2026-12-31" }, inclusive ISO dates, read by by-date). Design Tokens lists every field.

Imported files often encode colourways their own way, for example by overriding the semantic slots in each colourway set. Choosing a colourway still works on such files, and the colourway helpers read the slots through the resolver, so they work too. Only the shape above can be converted and edited by the engine's colourway functions.

For tool and script authors: the engine's colourway functions

engine/src/colourway.ts holds the pure helpers. liftToColourways converts a single-lead system into one with a canonical colourway, and refuses the edit unless every token in every look resolves exactly as before. addColourway adds one. colourwayFamily lists every colourway's colour for a role, canonical first. pickColourway applies a rule, and withColourway merges a pick into a theme selection. deriveColourwaySlots in engine/src/brand-derive.ts gives a new lead's primary, on-primary and secondary for one look, the same values a whole design system derived from that colour would use.

Five more functions edit the colourways a file already has. renameColourway changes a colourway's display name and never its id, because pieces store the id. reorderColourways puts them in a new order with the canonical one first. setCanonicalColourway makes another colourway canonical and moves it first. duplicateColourway copies one under a new id and name. removeColourway removes any colourway except the canonical one, and clears any stored choice of that colourway.

Each function works on a copy, resolves every token under every choice of look and colourway before and after, and refuses the edit with reasons when a remaining choice would draw something different. Two changes are intended: after setCanonicalColourway, a piece that chose no colourway draws the new canonical one, and after removeColourway, a piece that stored the removed colourway draws the canonical one. colourwaysEditable says whether a file's colourways can be edited this way, and why not. The Colours room's colourway controls call these functions, and Lolly Design System Setup's Rebuild palette keeps every colourway (Lolly Design System Setup).

Colour roles in each colourway

A design system with colour roles holds every role's colour in every colourway, for each look, beside the slots. The record at $extensions["com.suse.lolly"].brandSystem lists the roles with "group": "colourway" in the brand's order, and its bindings say which slot each role fills. The example is Wefthouse, an invented textile brand, trimmed to one colourway and its light look.

The Wefthouse token file
{
  "$extensions": { "com.suse.lolly": { "brandSystem": {
    "schemaVersion": 1, "id": "wefthouse", "label": "Wefthouse", "rules": [],
    "roles": [
      { "id": "main", "label": "Main", "description": "The cloth's ground colour", "group": "colourway",
        "resources": [{ "type": "token", "path": "color.semantic.main" }] },
      { "id": "accent", "label": "Accent", "group": "colourway",
        "resources": [{ "type": "token", "path": "color.semantic.accent" }] },
      { "id": "supporting", "label": "Supporting", "group": "colourway",
        "resources": [{ "type": "token", "path": "color.semantic.supporting" }] }
    ],
    "bindings": [
      { "id": "lead", "roleId": "main", "consumer": { "slot": "primary" } },
      { "id": "partner", "roleId": "accent", "consumer": { "slot": "secondary" } }
    ] } } },
  "light": { "color": { "$type": "color", "semantic": {
    "primary":    { "$value": "{color.colourway.light.primary}" },
    "main":       { "$value": "{color.colourway.light.main}" },
    "on-main":    { "$value": "{color.colourway.light.on-main}" },
    "supporting": { "$value": "{color.colourway.light.supporting}" } } } },
  "colourway/indigo": { "color": { "$type": "color", "colourway": { "light": {
    "primary":    { "$value": "{color.colourway.light.main}" },
    "on-primary": { "$value": "{color.colourway.light.on-main}" },
    "secondary":  { "$value": "{color.colourway.light.accent}" },
    "main":       { "$value": "#1b2a6b" },
    "on-main":    { "$value": "oklch(100% 0 0)", "$extensions": { "com.suse.lolly": { "colourRole": { "derived": true } } } },
    "accent":     { "$value": "#b23a48" },
    "supporting": { "$value": "#6c7a89" } } } } }
}

A design system that declares no colour roles holds none of this, and every colourway function writes its file exactly as it did before colour roles existed. Exported files record the design system, its version and the theme choices, and nothing about roles.

Colourways in Penpot

A .penpot export keeps the colourway group and its sets, and opens with the canonical colourway turned on so the links resolve. Penpot's theme record has no field for the kind, so the group arrives in Penpot, and comes back from it, as a plain theme group. A design system with colour roles gets the kind back on import, from the group's name, colourway, along with its roles' words. Colour roles in other formats lists what each format keeps.