Blog

Hover a button: the test every AI design system fails

Words plagio team

Share X, LinkedIn

Colours and type are the easy half. A design system that stops at the static state is a palette with a document attached.

Ask an agent for a design system and you get a palette, a type scale, spacing, maybe radii. It looks complete, you commit it, and the first thing you build with it has no idea what a button does when you touch it.

So here is a four-part test. Hover a button. Tab to it. Resize the window. Watch something appear. A system that answers all four is a system; one that answers the first is a theme.

1. Hover

What changes, by how much, and over how long. The answer should be a rule, not an improvisation per component: background one step darker, or a border that gains contrast, in 120 to 160ms. Generated systems leave this to the component, so you end up with six hover behaviours in one app.

2. Focus

The state agents actually omit, because it is invisible unless you use a keyboard. A system needs one focus treatment: a ring, its colour, its offset, and the rule that it is never removed without a replacement. If your tokens have no focus colour, your system is not usable by everyone who will use it.

3. Breakpoints

Not just the widths: what changes at each one. Does the type scale shift, does the spacing step shrink, does the grid drop to one column at 768 or at 640? A list of breakpoints with no rules attached means every component invents its own, which is why generated pages are fine at 1440 and broken at 390.

4. Motion

Two durations and one easing is enough, plus the rule for what gets them: 120ms for a state change, 200 to 300ms for something entering, and nothing at all for layout shifts. And a line honouring reduced motion, which is a preference people set for medical reasons and generated systems ignore.

What this looks like written down

--hover: background one step darker, 140ms ease-out
--focus: 2px ring, accent, 2px offset, never removed
--motion-state: 140ms ease-out
--motion-enter: 240ms ease-out
--reduced-motion: no transitions, keep the end state
--bp-md: 768px, grid to one column, scale down one step

It is unglamorous and it is the difference between a page that feels finished and one that feels like a mock-up. These lines also travel: they work in any agent, because they are instructions rather than code.

Where the answers come from

If you do not know what your hover should do, take the answer from a page whose interactions you like. States and motion are measurable: a browser knows what the hover rule is and how long the transition runs. That is what we built plagio to read, because it is exactly the half of a design that a screenshot cannot show.

Then put the four answers in the file your agent reads on every request. Which file, per tool.

Questions people ask

What is missing from an AI-generated design system?

Usually everything that is not static: hover and focus rules, what changes at each breakpoint, and motion durations with a reduced-motion rule.

Why does focus state matter so much?

It is how anyone using a keyboard knows where they are. It is also the first thing left out, because it is invisible to someone testing with a mouse.

How many motion durations should a system have?

Two and one easing is enough: roughly 140ms for state changes and 240ms for things entering, plus a rule that layout shifts are not animated.

Can hover and motion be measured from another site?

Yes. The browser applies real rules and real durations, which is why a measured reference can answer this and a screenshot cannot.

Sources, checked 5 November 2026

Names and products belong to their owners. Prices and features change: if something here is out of date, write to support@plagio.dev and we'll fix it.

Give your agent a real reference.

Start the free week

Keep reading