Once UI Blog
Builder stories
Beiträge
Once UI
How Sentry keeps four apps honest
What we built with Claude for Open Source
Once UI joins the Neon Open Source Program
Design tokens your agent can follow
How coding agents read the Once UI component catalog
AGENTS.md for design systems
What is an agentic design system?
Once UI 2.6: it thinks in a cube
Once UI Stack chat: an AI chat with a face
Once UI 2.5: reactions that move
Once UI 2.4: ready for AI apps
Once UI 3.0 beta: one way to say it
Stack languages: your app in Hungarian, or in two
Stack store: your shop on your own site
Liquid Metal: chrome that never sets
Chirio, redesigned
Styled screenshots in Chirio
Once UI 2.3: made for real apps
Frametic is now a video and capture studio
Agents write about 40% less code from Stack
Magic Portfolio, now on Once UI 2
Frametic MCP: let your agent film your site
Once UI Stack: your site as a desktop app
Once UI Stack, redesigned
Stack: teams and billing
Prism Glow: soft prism light behind your sign-in screen
Once UI for React Native: the same props on a phone
Once UI 2.2: chat, forms and mobile
Dither: your own image or video as a dithered print
Once UI 2.1: The pieces apps kept asking for
Once UI 2.0: A system an AI can build with
Once UI 2.0 Alpha: Gemessen, nicht vermutet
Paarweise gestalten: background und onBackground
Colour arrives in pairs
Once UI 1.8: Feinschliff als Feature
Once UI 1.7: Form mit Absicht
Von Produkten zu Systemen: Ein neues Servicemodell
Magic Journal: Ein anderes Medium für Langform-Texte
Supa Social: Der nächste Meilenstein unserer Reise
Once UI ist Open Source. So wollen wir es beibehalten.
Gestaltung einer zeitlosen, KI-nativen Marke
Once UI 1.5: Neugier im Code
Once UI 1.4 Migrationsleitfaden: Das Breakpoint-Objekt
Launches im KI-nativen Zeitalter: Ein Leitfaden für Indie-Builder
Das erste Design-System für Indie-Builder
Builder Stories
Side und Once UI: Von der Café-Website zum Reservierungssystem
SatisPro und Once UI: Smarteres Bewertungsmanagement skalieren
IQON und Once UI: Skalieren mit einem Design-System
Dev: Verbindung von Wissenschaft und Code mit Once UI
JExcellence und Once UI: Experimente in Enterprise-Apps verwandeln
OsmyReal: Start einer Mobile-Gaming-Plattform mit minimalem Codeaufwand
TrademarkTrademark
Ctrl k
Search…
Registrieren
Once UI Blog
Builder stories
Beiträge
Once UI
How Sentry keeps four apps honest
What we built with Claude for Open Source
Once UI joins the Neon Open Source Program
Design tokens your agent can follow
How coding agents read the Once UI component catalog
AGENTS.md for design systems
What is an agentic design system?
Once UI 2.6: it thinks in a cube
Once UI Stack chat: an AI chat with a face
Once UI 2.5: reactions that move
Once UI 2.4: ready for AI apps
Once UI 3.0 beta: one way to say it
Stack languages: your app in Hungarian, or in two
Stack store: your shop on your own site
Liquid Metal: chrome that never sets
Chirio, redesigned
Styled screenshots in Chirio
Once UI 2.3: made for real apps
Frametic is now a video and capture studio
Agents write about 40% less code from Stack
Magic Portfolio, now on Once UI 2
Frametic MCP: let your agent film your site
Once UI Stack: your site as a desktop app
Once UI Stack, redesigned
Stack: teams and billing
Prism Glow: soft prism light behind your sign-in screen
Once UI for React Native: the same props on a phone
Once UI 2.2: chat, forms and mobile
Dither: your own image or video as a dithered print
Once UI 2.1: The pieces apps kept asking for
Once UI 2.0: A system an AI can build with
Once UI 2.0 Alpha: Gemessen, nicht vermutet
Paarweise gestalten: background und onBackground
Colour arrives in pairs
Once UI 1.8: Feinschliff als Feature
Once UI 1.7: Form mit Absicht
Von Produkten zu Systemen: Ein neues Servicemodell
Magic Journal: Ein anderes Medium für Langform-Texte
Supa Social: Der nächste Meilenstein unserer Reise
Once UI ist Open Source. So wollen wir es beibehalten.
Gestaltung einer zeitlosen, KI-nativen Marke
Once UI 1.5: Neugier im Code
Once UI 1.4 Migrationsleitfaden: Das Breakpoint-Objekt
Launches im KI-nativen Zeitalter: Ein Leitfaden für Indie-Builder
Das erste Design-System für Indie-Builder
Builder Stories
Side und Once UI: Von der Café-Website zum Reservierungssystem
SatisPro und Once UI: Smarteres Bewertungsmanagement skalieren
IQON und Once UI: Skalieren mit einem Design-System
Dev: Verbindung von Wissenschaft und Code mit Once UI
JExcellence und Once UI: Experimente in Enterprise-Apps verwandeln
OsmyReal: Start einer Mobile-Gaming-Plattform mit minimalem Codeaufwand
Guide
Once UI

Design tokens your agent can follow

An agent drifts off your scale when the code lets it write any value. Once UI tokens are props with a fixed set of values, so an agent can't pick a spacing or a colour that isn't in the system.
Updated 19 days ago
Once UI joins the Neon Open Source Program
How coding agents read the Once UI component catalog
TrademarkTrademark
Once UIDokumentationBlog
© Once UI. Alle Rechte vorbehalten.
Built with Aveiro
Most design drift from coding agents comes down to one thing: the code lets them write any value. A style prop takes any number of pixels. A utility class system takes any arbitrary value in square brackets. A colour can be any hex code. The agent picks something close, and close is how a product slowly stops looking like itself. Tokens fix that, but only if the agent can't step around them.

Tokens as props, not as a suggestion

In Once UI, spacing, colour, radius and type are props with a fixed set of values. Spacing takes the tokens in the scale ("4", "8", "12", "16", "20", "24", "32", "40" and up) and nothing in between: there is no "6" and no "10". Colours are a scheme and a weight, like brand-medium or neutral-alpha-weak, never a hex value. An agent writing this can't drift off the scale, because there is nowhere off the scale to write. When the type checker knows the values, a made-up token is a compile error instead of a subtle visual bug.

Colour in pairs

Text colour in Once UI is onBackground, and it is meant to pair with the background behind it: onBackground="neutral-weak" on a neutral page, onSolid on a solid fill. An agent that follows the pairs gets readable contrast in both themes without ever looking at a colour value. We wrote more about this in Colour arrives in pairs.

The rules agents actually break

The compact rules file that ships with Once UI has a table of what to write and what never to write, built from the mistakes agents make most. Two of them are about tokens:
  • width="32" is 32 pixels, a spacing token. width={32} is a number, which means rem: 512 pixels. Agents mix these up constantly, so the rule says it plainly.
  • Inline SVGs use currentColor or a CSS variable such as var(--brand-solid-strong), never a raw colour, so icons follow the theme too.
Rules like these are short, but without them an agent has no way to know.

The theme stays in one place

Because every screen refers to tokens, the theme lives in one config file: the brand and neutral scales, the page and surface colours, the border style. Change it there and every screen an agent ever wrote follows. Nothing has to be found and replaced, because no screen ever held the value itself.

Try it

The token values are in ai/tokens.json inside the package, and the docs for AI coding agents show where each file fits. What an agentic design system is covers the rest of the picture.
Read the agent docs
<Column background="surface" border radius="l" padding="24" gap="16">
  <Text variant="label-default-s" onBackground="brand-medium">Pro</Text>
  <Heading variant="heading-strong-l">Everything in Stack</Heading>
</Column>