UserHappyDesign system
Storybook

Design rules

Keep the canon, semantic bindings, and surface policy together.

The design records govern different things: allowed swatches, exact token bindings, per-file debt, and rendered route evidence. Passing one check does not establish complete visual compliance.

RecordPurpose
canon.jsonPalette membership, typography, role restrictions, and bans.
theme-contract.jsonExact token bindings and recorded exceptions.
adsf-baseline.jsonExisting static color debt that must not grow.
route-colors.jsonRecorded rendered-route colors for the source revision.

Use the existing rules

Read the complete Design Rules in Storybook

Accessibility

Check contrast for the actual foreground and background pair. Keep keyboard focus visible, give controls a full touch target, label icon-only actions, and respect reduced motion. A canonical hex value alone does not guarantee an accessible combination.

Documented conflicts and exceptions

The original records disagree about orange text and harvested body typography. This site uses the stricter enforced text rule and production Mulish body font while retaining the historic records. Changes to the canon need an explicit design decision and matching guard updates.

What this repo verifies

The standalone checks cover extraction integrity, portal palette and links, site structure, and the Storybook build. The copied app-wide guards remain references: they require app routers and tools that are intentionally outside this repository.

Browse the enforcement documentation