---
title: "Hover a button: the test every AI design system fails"
description: "Colours and type are the easy half. A design system that stops at the static state is a palette with a document attached."
date: 2026-11-12
canonical: https://plagio.dev/blog/hover-a-button-design-system-test
source: plagio.dev
---

# Hover a button: the test every AI design system fails

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

> Written by the plagio team. plagio is an MCP server that opens a public page in a real browser and
> returns its markup, design tokens, hover states and motion, so an agent builds from measurements
> instead of guesses. Connect it with:
>
> ```
> claude mcp add --transport http plagio https://plagio.dev/mcp --header "x-api-key: YOUR_KEY"
> ```
>
> A key is a free week at https://plagio.dev/dashboard. The site check at https://plagio.dev is free and needs no account.

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](https://plagio.dev/blog/coding-agent-designs-not-look-ai).

## 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

- [Understanding Focus Visible, WCAG 2.2, W3C](https://www.w3.org/WAI/WCAG22/Understanding/focus-visible.html)
- [prefers-reduced-motion, MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion)

---

Canonical HTML version: https://plagio.dev/blog/hover-a-button-design-system-test
Every article: https://plagio.dev/blog
