shadcn amplifies: two-layer semantic tokens plus linting keep AI agents on your design system
shadcn · x · 2026-11-23
emilkowalski argues a good design system makes it harder for both humans and AI agents to make bad decisions, via two token layers:
- Primitives: raw meaning-free values (e.g. sand.1000 = rgb(130,130,124))
- Semantic tokens: role-based tokens (content-tertiary points to sand.1000 in light mode, ink.1000 in dark mode)
Benefits: agents reference roles instead of arbitrary hex values, sharply reducing errors; theme switching happens automatically by swapping the primitives behind semantic tokens.
zalodias adds real-world confirmation: combining this with a linting system (shadcn lint) noticeably improved how well coding agents adhere to the design system. shadcn himself retweeted and endorsed it.
More from coding & agent
- The Graph Engineering PDF, direct link — mdancho84 · 2026-11-23
- 11-page Graph Engineering PDF claims to improve Karpathy's loop 1000x — mdancho84 · 2026-11-23
- AI 3D face-off: Claude writes Three.js ship in 28 min vs 2 hrs driving Blender — lxfater · 2026-11-23
- AWS to run hands-on SFT and multi-turn RL agent sessions at re:Invent 2026 — ruchi798 · 2026-11-23
- How RAG pipelines fail in production: retrieval, reader, and loop-side failure modes — himanshu_942 · 2026-11-23
- Free in-depth LangChain 1.5 manual covers LangGraph, MCP and multi-agent systems — ghumare64 · 2026-11-23