Tokens were never the hard part. A DESIGN.md tells the agent what your colors are and nothing about what components you already have, so it writes a brand new button that happens to be the right blue.
Two things helped me more than the spec file. Point the agent at two or three real components in the repo and tell it to copy those, instead of describing the system in prose. Concrete examples beat specs with these models by a lot. And get a screenshot of the render back into the loop before it keeps editing, otherwise it's writing markup blind.
Contrast linting is where the spec actually wins. That 3.8:1 catch is the kind of bug prose can't fix, so I'd keep design.md around for the linter and the tailwind export regardless.
I build Superdesign so discount me accordingly, it's the same problem from the other end, you look at the UI before any code exists. The repo examples trick works with whatever you're already running though.
Tokens were never the hard part. A DESIGN.md tells the agent what your colors are and nothing about what components you already have, so it writes a brand new button that happens to be the right blue.
Two things helped me more than the spec file. Point the agent at two or three real components in the repo and tell it to copy those, instead of describing the system in prose. Concrete examples beat specs with these models by a lot. And get a screenshot of the render back into the loop before it keeps editing, otherwise it's writing markup blind.
Contrast linting is where the spec actually wins. That 3.8:1 catch is the kind of bug prose can't fix, so I'd keep design.md around for the linter and the tailwind export regardless.
I build Superdesign so discount me accordingly, it's the same problem from the other end, you look at the UI before any code exists. The repo examples trick works with whatever you're already running though.