Component Guidelines
Which component to reach for, by domain - the layer above an individual component's own page, for the moment before you've picked one yet.
Component maturity
A component's own page title carries a badge only when it departs from the library's default expectation below. They describe what's actually been verified for that component, not a subjective quality rating - check a component's own page for its specific Accessibility notes and Component Guide to see that evidence directly.
Feedback - which one, when
Five components exist for reporting something to the user. Picking the wrong one either interrupts a task that didn't need interrupting, or lets something important scroll past unread.
Navigation - which one, when
Getting from one place to another, or showing where the user already is, without more machinery than the situation needs.
Data Entry - which one, when
The input should match the shape of the answer the user already has - not the shape that's easiest to build.
Data Display - which one, when
Showing a set of records or values in the shape the reader actually needs to act on them.
Button - hierarchy in one row
Every screen should have at most one Primary. Everything else is there to make the choice between actions legible, not to compete with it.
Data List - grouping and density
Long lists fail by hiding structure (everything looks the same) or by adding structure the data doesn't have (fake grouping, arbitrary dividers).
Component Guidelines - Markdown export
This page's own content, as Markdown - copy it straight into your design system docs or hand it to an AI/agent workflow.
Implementation contract
Saved validated choices override project recommendations, which override system defaults. This implementation contract governs static specimens. Resolved tokens in the current export are authoritative values. Component exceptions must name the affected role and reason.
Structure
Use three columns for label, description and value. Descriptions contain their own Read More/Read Less control after four rendered lines. Stack values under descriptions at container 800px and stack all columns at 560px. Keep 16px gaps, 24px panel padding and 16px mobile padding.
Interaction
Use labelled Group Buttons for section and Human/Machine choices with one selected state, roving arrow/Home/End navigation and visible keyboard focus. Keep copy, export and disclosure feedback accurate. Every component contract declares variant, state precedence, target, responsive behavior and exceptions.
Copy outcomes
All component, pattern and template copy actions use the shared clipboard helper. Modern clipboard failure may fall back only when the legacy copy command succeeds. Otherwise show Copy failed and manual-copy guidance; preserve focus and original button contents. The displayed prompt/code remains available for selection.
Machine contract: section rules, storage, units and acceptance
{
"schemaVersion": 1,
"authority": "Saved validated choices override project recommendations, which override system defaults. This implementation contract governs static specimens. Resolved tokens in the current export are authoritative values. Component exceptions must name the affected role and reason.",
"governance": {
"owners": "Design System Lead owns token and compatibility policy. Designers own specimens and interaction contracts. Developers own resolver/export/import parity. QA and Accessibility own release evidence. Product teams own domain-specific confidence, privacy and retention policies.",
"changes": "Change the JSON contract first, regenerate documentation/defaults/catalog/tokens, then run model, DOM and recipient checks. Link the changed finding IDs and evidence in the release review.",
"compatibility": "Keep hue-named CSS tokens as compatibility aliases while semantic consumers migrate. Additive tokens retain schemaVersion 1. A removed/renamed key or changed stored meaning requires a schema migration, a version bump and a documented replacement before release. Keep the prior reader fixture until the migration is verified.",
"deprecation": "Record old key, replacement, reason, introduced version, planned removal version and affected consumers. Do not remove a token while an active consumer still uses it. Future records are preserved rather than coerced.",
"scope": "This is a web design system with one shared workspace profile. Native dp/sp adaptation and real agent execution require separate adapters and acceptance. User-defined colors and responsive exceptions require product-specific rendered verification."
},
"storage": {
"version": 1,
"legacy": "Unversioned valid records migrate in memory. Typography headingScaleVersion 2 applies the smaller six-heading scale once to older records, retaining other roles and existing font/color/style metrics. Later custom size edits are retained. Unsupported future records are preserved. The next successful write stamps the migrated version.",
"future": "Reject unsupported future versions. Preserve raw data. Offer backup and explicit reset.",
"invalid": "Foundation selections preview locally until Save foundation succeeds. Saved Foundation editors require Edit foundation before changes. Cancel discards the preview. Invalid drafts never replace saved records; storage failures retain the editable preview and the last durable record.",
"concurrency": "A storage event refreshes applied tokens and disables stale editor controls until reload. Never merge simultaneous edits silently."
},
"units": {
"base": "1rem = 16px at default browser settings. Do not fix the root font size.",
"use": "Prefer rem for typography, spacing and control dimensions. Hairline borders and viewport thresholds may use px. Both equivalents appear in Markdown. SVG strokes use viewBox units. Ratios, percentages, columns, timing and weights are unitless or retain their own units.",
"native": "Web CSS px/rem are not native dp/sp. A native adapter must map semantic roles, support text scaling and test device density. Native rendering is not shipped by this web library."
},
"acceptance": [
"Compare page, applied tokens, durable record, Machine View and exported instructions.",
"Test valid, unfinished, invalid, missing, malformed, legacy and future records. Exercise storage failure, reset, reload and another tab.",
"Test 320, 375, 768, 1024 and 1440px widths, 200% zoom, text-spacing overrides, RTL and long/localized labels.",
"Use keyboard and screen reader. Confirm focus return, names, values, error associations and status announcements.",
"Verify actual rendered text/surface pairs, forced colors, reduced motion, print and exported recipes in a recipient fixture. Source or DOM checks alone are not rendered acceptance."
],
"layers": {
"content": 0,
"sticky": 20,
"popover": 40,
"scrim": 60,
"dialog": 70,
"toast": 80,
"tooltip": 90,
"rules": "Each overlay gets an explicit owner and close/focus-return path. Portal menus out of clipped scroll containers. Nested dialogs stack one scrim per modal owner. Escape closes the top dismissible layer. Tooltips never block actions. Test collision and zoom; do not infer stacking order from shadow size."
},
"section": {
"title": "Component Guidelines",
"rules": {
"Structure": "Use three columns for label, description and value. Descriptions contain their own Read More/Read Less control after four rendered lines. Stack values under descriptions at container 800px and stack all columns at 560px. Keep 16px gaps, 24px panel padding and 16px mobile padding.",
"Interaction": "Use labelled Group Buttons for section and Human/Machine choices with one selected state, roving arrow/Home/End navigation and visible keyboard focus. Keep copy, export and disclosure feedback accurate. Every component contract declares variant, state precedence, target, responsive behavior and exceptions.",
"Copy outcomes": "All component, pattern and template copy actions use the shared clipboard helper. Modern clipboard failure may fall back only when the legacy copy command succeeds. Otherwise show Copy failed and manual-copy guidance; preserve focus and original button contents. The displayed prompt/code remains available for selection."
}
}
}