Design systems for AI agents: two-layer semantic tokens reduce errors for humans and agents alike
itsOmSarraf_ · x · 2026-11-23
Emil Kowalski's approach: split design tokens into primitives (raw values, e.g. sand.1000 = rgb(130,130,124)) and semantic tokens defining roles (content-tertiary maps to sand.1000 in light mode, ink.1000 in dark). Agents refer to roles instead of arbitrary hex values, cutting mistakes; theme switching happens automatically by swapping the primitives behind semantic tokens — no manual dark: variants needed. The token communicates purpose, shrinking the margin for error for both humans and agents.
More from coding & agent
- Tokenmaxxing guide for Claude Code: orchestrator, memory and adversarial review, step by step — blaizedsouza · 2026-11-23
- Google's GUARD paper: self-editing agent harness cuts tokens 54.5% with zero forgetting — blaizedsouza · 2026-11-23
- Kill Xiaomi TV ads with one prompt: cleanyourtv + ADB, no root, fully reversible — sujingshen · 2026-11-23
- x402-cluster: serverless headless-browser MCP extracts typed JSON from React sites — TheMainBrainMan · 2026-11-23
- Anthropic's four-layer agent stack: prompt, context, loop and harness engineering explained — blaizedsouza · 2026-11-23
- App Store Connect CLI 7.3.0 ships failedPhase diagnostics for video uploads — rudrank · 2026-11-23