Accessible primitive workbench
Design from behavior contracts before visual variants.
A calm product system for dialogs, menus, tabs, popovers, forms, and command-like workflows where the agent must preserve keyboard paths, focus, portals, and data-state styling.
Dialog primitive
data-state=openEdit profile
Trap focus, close on Escape, then restore trigger focus.
Dropdown contract
typeaheadColor Palette
Color follows a 12-step mental model: backgrounds, component states, borders, solid fills, and text roles are mapped into local semantic tokens.
Typography
Use compact system typography for implementation-facing pages. Mono appears only where code, package names, tokens, or data attributes are the content.
display-xl / 52 / 650heading-md / 20 / 650body / 14 / 1.5data-state="open"mono / attributesComponents
Signature components expose the implementation contract: primitive choice, state attributes, focus behavior, and token mapping.
Layout & Spacing
A 4px base supports compact primitives. The workbench grid keeps preview, state matrix, token table, and implementation notes visible together.
Responsive Behavior
Below tablet widths, the workbench stacks. Keep current primitive, primary action, and state chips visible; make state matrices scroll or convert into grouped cards.