/design-engine:component-states-and-interaction-fidelityfrom design-engine
Specifies the full interactive-state matrix (hover, focus-visible, pressed, selected, disabled, etc.) and transitions between states for a single UI control. Produces spec-grade state tables for QA and dev handoff.
Ships in design-engine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
outline:none with no replacement.09-design-systems-tokens-and-theming/component-library-architecture.
That skill owns the axes; this skill owns the state cells and the transitions between them.14-conversion-and-web-page-patterns/empty-error-and-loading-states. It owns content-level states; this skill
owns the control-level interactive states (hover/focus/active/disabled/selected) of one
component. (A component's loading and error cells here link out to that skill for the
region-level treatment.)design-tokens-and-naming.08-motion-and-interaction/*; here motion is scoped to per-state transitions and pulls durations
from motion tokens.04…/form-ux-design.| Input | Source | Evidence |
|---|---|---|
| Component purpose, variants, and actions | Product/component owner | Existing component or approved anatomy |
| Supported inputs and accessibility targets | Platform policy and WCAG contract | Keyboard, pointer, touch, and assistive paths |
| Tokens and motion rules | Design system | Named colour, focus, duration, and easing tokens |
loading; a trigger
Button can't be selected). Run references/state-matrix-method.md to enumerate before designing.references/component-anatomy.md for the Book-3 per-component anatomy/number baseline.design-tokens-and-naming): color
per state, border, radius, focus-ring, and motion durations/easing. No literals.doctrine/references/wcag-2.2-criteria.md) — focus-visible, target
size, contrast, reduced motion, name/role/value.references/state-matrix-method.md. Fill only the states the component can enter; mark the
others N/A with the correct alternative (e.g. a Button has no selected → use a
ToggleButton with aria-pressed). A silently dropped cell is a state gap; an explicit N/A is a
decision. An empty cell is a bug, not a default.--color-…-hover, --radius-control, --duration-fast) — a literal hex/px in a state cell is
a defect (09…/component-library-architecture §5; doctrine/design-doctrine.md).:focus from :focus-visible (don't show the ring on mouse-press where it's noise; do show it
for keyboard/AT). outline:none without a token-driven replacement is forbidden. Give
destructive/danger controls a distinct-but-still-≥3:1 ring. See references/state-matrix-method.md
§Focus and doctrine/references/wcag-2.2-criteria.md.aria-busy set…), the property animated
(bg/opacity/transform), the duration + easing token (--duration-fast ~120–160 ms for
hover/press; instant for focus-ring appearance — never fade a focus ring in slowly), and the
reduced-motion path (prefers-reduced-motion → drop transform/scale, keep an instant
color/opacity change; the state must still be perceivable). Define focus-OUT and the
loading→done / error→recovered return moves, not only the forward moves. Pressed scale .98 is
the canonical reduced-motion casualty — keep the state, drop the motion (2.3.3).aria-busy + a live status and stays focusable but not activatable; error/invalid
pairs color with text + aria-invalid + aria-describedby; selected/checked exposes
aria-pressed/aria-checked/aria-selected. Target stays ≥24×24 CSS px in every state
(2.5.8), aiming 44×44 touch. Name/role/value correct per state (4.1.2).examples/input-state-matrix.md as the pattern.doctrine/design-doctrine.md §0).| Condition | Choice | Wrong-choice failure |
|---|---|---|
| Action is temporarily unavailable | Disabled only with visible reason or prerequisite | Silent disabled controls strand users |
| Action is processing | Preserve label/width, show busy state, block duplicate activation | Layout shift or repeat submission corrupts intent |
| Motion is reduced | Instant or opacity-safe transition with equivalent state cue | Motion dependence causes discomfort and hides state |
outline:none with no replacement — the single most common a11y regression (2.4.7 fail).aria-*.:focus styled like :focus-visible so a mouse press flashes the keyboard ring (noise), or
the reverse — suppressing the ring for keyboard users.| Output | Consumer | Evidence and acceptance |
|---|---|---|
| State-transition matrix | Designer and engineer | Trigger, visual, semantic, focus, cursor, duration, and exit are complete |
| Interaction-fidelity gate | QA and accessibility reviewer | Keyboard, touch, pointer, contrast, target, and reduced-motion evidence passes |
examples/input-state-matrix.md — a complete worked state-fidelity spec for one real
component (a text Input / form field): anatomy, all nine interactive states each given a
token-backed treatment, the transition table (focus-in/out, hover, error-appears, loading),
the focus-visible clause to WCAG 2.4.7/2.4.11/1.4.11, and the per-state a11y notes. Never lorem.doctrine/design-doctrine.md — the Anti-Slop Charter; §0 "looks human-made" applied to states
and transitions (one authored move — pressed shift, brand focus ring — applied via tokens).doctrine/references/wcag-2.2-criteria.md — the a11y floor cited throughout: focus-visible &
contrast (2.4.7, 1.4.11), focus-not-obscured (2.4.11), target size 24px (2.5.8), reduced motion
(2.3.3), color-not-alone (1.4.1), name/role/value (4.1.2), live regions (4.1.3).references/state-matrix-method.md — the method: enumerate reachable states, the nine-state
set, the focus-visible spec, and the transition-specification model.references/component-anatomy.md — the Book-3 (How to Design Better UI Components) per-component
anatomy + numbers (button/input/dropdown/checkbox/card heights, paddings, hit areas) so each state
names a real part with a real measure.09-design-systems-tokens-and-theming/component-library-architecture — owns the variant/
size/API model; this skill owns the per-component state fidelity that fills its state column.14-conversion-and-web-page-patterns/empty-error-and-loading-states — owns content-level empty/error/
loading (skeletons, 404, offline); this skill owns control-level interactive states and links to
it for the region-level loading/error treatment.design-tokens-and-naming (state + motion tokens); aligns with 08-motion-and-interaction
for transition durations/easing.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionOther plugins' skills for the same job