Theming
The brand is one ramp. Primary buttons, links, the focus ring, the active nav item, brand chips and the composition scale all derive from it — greys, status tones and type never change.
Try a colour
Pick a brand. The preview sets the ramp on one element with brandVars; the rest of this page stays teal.
- Unallocated25
- Pools45
- Wallets30
- Choose provider, CompleteComplete
- Go live, Not started
brandVars("#2a7a8c")
The ramp
--brand-100 … --brand-800 on :root, teal by default. 500 is the primary (white text at 4.9:1), 600 its hover, 700 the deep text on a brand chip, 100 the tint behind it.
In CSS
Override the ramp after the kit's stylesheet:
The neo purple above ships as a theme: @import "@zikzuk/ui/themes/zikpe.css"; after the kit.
At runtime
When the colour comes from data — a partner's brand, say — derive the whole ramp from one hex. applyBrand sets it on <html>; brandVars returns the variables for a styleprop (server rendering, or one region). Text on the primary flips to dark ink when white wouldn't be legible.