Constraining agent CSS to design tokens (without pasting the whole theme)
I used to drop the entire tokens.css into the agent prompt so it “wouldn’t invent colors.” It still invented colors. Just prettier ones — #3B82F6 instead of blue , 14px instead of space.3 , a one-off radius that almost matched radius.md . Pasting the whole theme teaches the model what exists. It do…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-02 14:32 · DEV Community — AI
Constraining agent CSS to design tokens (without pasting the whole theme)