Builder
Custom tokens for typography and spacing
Custom tokens now cover seven more property types beyond color. Define a token once in Theme Settings — like @h1-size or @panel-radius — bind any matching widget property to it, and change every using widget at once by editing the token.
8 token types:
- Color — backgrounds, strokes, icons, text, glows
- Font Size — text sizing on any text widget
- Font Weight — text weight (100–900)
- Corner Radius — rounded corners on panels, cards, gauges
- Stroke Width — border and outline thickness
- Padding — inner spacing on containers
- Opacity — per-widget transparency
- Shadow Intensity — drop-shadow strength
How to bind a non-color property:
1. Open any widget's properties panel and find a supported field — font size, corner radius, stroke width, padding, opacity, or shadow intensity.
2. Below the input you'll see a BIND TO TOKEN chip strip showing every custom token of the right type.
3. Tap a chip to bind. The chip highlights cyan and the input text shifts to the same accent so you can see at a glance that the property is tracking a token. Future changes in Theme Settings flow through automatically.
To break the link, tap the chip again or type a new value directly.
SEEDED DEFAULTS:
New themes start with 10 sensible tokens out of the box — @h1-size, @h2-size, @body-size, @caption-size, @body-weight, @heading-weight, @panel-radius, @panel-stroke, @card-padding, and @shadow-soft. Edit them, rename them, or add your own from Theme Settings > Add Custom Token (the type dropdown picks color, size, weight, radius, stroke, padding, opacity, or shadow).
Rename a custom token and every widget referencing it updates automatically. Delete one and the widgets that used it keep their visual state — the current value is baked back in.
Custom tokens are the marketplace edge: buy a polished theme with @h1-size = 36 baked into 12 headers, flip the token to 28, and every header shrinks proportionally in one move. The color tokens article covers the color side of the same mechanic.
Last updated: Jun 1, 2026