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.

Original post →

More from coding & agent

coding & agent channel →