The frontend-design skill can't see your design tokens
The skill teaches Claude to avoid generic output and use CSS variables for consistency. It still cannot see your variables — or which file defines them.
The frontend-design skill fixes a real problem. Ask a model for a landing page with no guidance and you get the same thing every time: Inter, a purple gradient on white, almost no motion. Anthropic calls this distributional convergence — the model samples from the safest, most common choices in its training data.
The skill pushes back against that. It is not a design system. It is a set of instructions about taste, and it cannot see what your project already does.
What the skill actually says
It is small — a few hundred tokens — and it steers four dimensions at once:
- Typography: avoid Inter, Roboto, Arial and system fonts; prefer distinctive faces and high-contrast pairings.
- Color and theme: commit to one cohesive aesthetic, use sharp accents rather than evenly distributed palettes — and use CSS variables for consistency.
- Motion: prefer CSS-only effects, use the Motion library for React, and spend the budget on one orchestrated page-load rather than scattered micro-interactions.
- Backgrounds: build depth with layered gradients and patterns instead of a flat fill.
All four are good advice. Three of them are advice about taste, which a model can follow from a document alone.
The instruction it cannot follow
The second one is different. "Use CSS variables for consistency" presumes there are variables to use — and that the model knows their names. On a greenfield prototype it will invent a set, which is fine. In a product that already ships a palette, it invents a second one.
/* what the skill tends to produce */
:root {
--accent: #7c3aed;
--bg: #ffffff;
}
/* what your project already has */
:root {
--color-cx-primary: #000000;
--color-cx-link: var(--cx-brand-strong);
--color-cx-hairline: #d9d9e0;
}Nothing in the skill's text tells it that --accent is wrong here. The instruction is satisfied by writing variables; it says nothing about writing your variables. Consistency is the goal the skill names and the one thing it cannot verify.
Where it earns its keep — and where it doesn't
It is strongest at the beginning
On a new page, a prototype, or a side project with no established system, the skill's defaults are a strict improvement. There is nothing to contradict, so "distinctive" and "correct" mean the same thing.
It is weakest in a mature codebase
Once you have tokens, a type scale and a component library, the skill's upside shrinks to "slightly more interesting choices" while its downside grows: a second palette, a third font pairing, and a spacing scale that matches nothing. The review cost lands on you.
Two inputs that close the gap
The gap is not a reasoning gap, so a better prompt does not close it. It is two missing facts:
- Which tokens exist — the variable names and where they are defined, so the edit reuses
--color-cx-primaryinstead of minting--accent. - Which file renders the element — so the choice of font, spacing and colour lands in the component you meant, not in a shared base that forty screens depend on.
The first you can paste in once. The second is the part that keeps failing, because it changes with every element you point at.
What that looks like with Curxor
Select the element in Curxor's built-in browser and the message you send carries the source file and line, the tag, and the class string exactly as the DOM has it — which is where your token names actually appear. The agent reads bg-cx-primary text-cx-ink and continues the system instead of starting one.
The skill still applies: it decides that the section needs more contrast, or that the heading pair is too timid. What changes is that it applies that judgement inside your system rather than next to it.
The longer argument — why appearance alone cannot carry a location — is in visual context for AI agents. For the agent-specific version, see Claude Code.
Download Curxor for macOS and try it on the next component the skill wants to redesign.
Questions this raises
Does that make the skill useless on an existing codebase?
No. It is strongest at the start, when there is no system to contradict. In a mature product the aesthetic gain is smaller than the cost of drifting from the tokens you already ship.
Can I just paste my tokens into the prompt?
Yes, and it helps. What paste does not give is where those tokens are defined — so the next edit re-derives them instead of reusing them.
Does it conflict with other Claude Code skills?
No. Skills are separate files loaded independently on demand, so a frontend-design skill and a project-specific one can both apply. The friction is not between skills — it is between the skill's defaults and your codebase.