Create a brand
One colour becomes an eleven-step ramp in OKLCH, with the on-colours measured rather than chosen. Pick a neutral, a radius, a spacing base and type, watch real components change, then export.
A brand is five choices in one file. Everything else — the ramps, the on-colours, the CSS, the Figma variables — is generated from it, so these steps are the whole job.
The same process with every command, the product setup and what to check when it looks wrong: Create a brand and apply Picasso.
Pick the five choices
DesignOne brand colour, a neutral, a radius, a spacing and a type pair. Make them above and watch them on real components, in light and dark, before anyone writes anything down.
Download brand.json from the tab beside this one.
Create the brand file
EngSave that download to packages/tokens/tokens/brands/<id>/brand.json — or generate the same file from the command line:
npm run brand:new -- <id> --base "#RRGGBB" \ --name "<Name>" --neutral cool --radius default \ --spacing default --sans Inter --mono "JetBrains Mono"It refuses an id that already exists and a base that is not a hex colour, so it cannot quietly overwrite a brand.
Build it, and prove it
Engcd packages/tokens && npm run checkGenerates dist/tokens.css and dist/figma.json, then checks the things that break silently: light and dark defining the same tokens, the new brand's structure matching Clarion's, shared primitives agreeing across brands, on-colours agreeing with contrast measurement, and the radius multipliers in theme.css not having drifted from core.json.
Does check pass?
A light brand colour is not a failure. fg/on/* is measured, not chosen: white where white reaches 4.5:1, palette/neutral/950 where it does not. A yellow gets dark ink at 13.69:1 and the button is still a button. Nothing to fix.
What does send you back: "matches no preset" — the neutral, radius or spacing is not one of the options, so add it to presets.json first. Light and dark not defining the same tokens. A structure that differs from Clarion's. Then run check again.
Yes — carry on.
Run the contrast tests
Engnpm test --workspace @ir/uiEvery on-colour pair, in both modes, for every brand, at 4.5:1 — and the focus ring at 3:1, because a focus indicator is a UI component rather than text.
This is the gate that catches the one colour problem worth catching: a surface that neither ink reaches — white under 4.5:1 and neutral/950 under 4.5:1 too. That colour has to move. Everything else the build resolves on its own.
Sync it into Figma
DesignIn the Figma desktop app — the browser cannot load local plugins — run Plugins → Development → Picasso Sync and choose packages/tokens/dist/figma.json.
Press Check first: it lists every difference and changes nothing. Then Sync.
The brand arrives as a new mode of the Primitives collection. No component or layer is touched — they already point at the variables.
Look at it, then publish
DesignSet any frame's Primitives mode to the new brand; Light and Dark stay independent, so any frame can be any brand in either mode. The Brand modes (demo) page shows the combinations side by side.
Publish Picasso as usual — Sync does not publish.
Record it, and give it a version
EngAdd the brand under Added in CHANGELOG.md with its Figma impact ("new Primitives mode, synced"). A brand is additive, so it is a minor version — but a product cannot install it until there is one.
Switch a product onto it
Eng<html data-brand="<id>" class="dark">On <html>, not on a wrapper. Semantics are declared on :root, so a data-brand further down changes the raw brand colours inside it but not the semantics components actually use. One product, one brand, set at the top. Dark mode is a separate switch.
Then: the four CSS imports in order, plus @source for @ir/ui; the brand's fonts loaded in the product; and any product that keeps its own copy of tokens.css re-copied. Every component, chart and illustration follows — nothing in the product names the brand.
Changing a brand later, from Figma
A change can start in Figma, but it only counts once it is back in the repo — otherwise the next Sync overwrites it. Picasso Sync → Export a brand, then:
npm run figma:import -- ~/Downloads/<brand>.figma-export.json --dry-runDrop --dry-run to write, review the git diff, then npm run check. The import writes nothing at all when a change breaks the model — a single radius step edited instead of the base, an axis matching no preset, or an fg/on/*-emphasis edited by hand when it is measured.