Accessibility
The substrate targets WCAG 2.2 AAA. Every component recipe ships conformant out of the box; tenants who fork the substrate inherit the floor unless they deviate at the primitive layer.
Conformance commitments
- WCAG 2.2 AAA for the canonical PointSav-brand theme on every shipped component recipe
- WCAG 2.2 AA minimum for any tenant theme that overrides primitives — the audit endpoint (subsequent milestone) flags drops below AA
- EN 301 549 alignment for European public-sector tenants
- Section 508 alignment for US public-sector tenants
What every component carries
Every recipe in dtcg-vault/components/ ships an
accessibility.md tab covering:
- Conformance status — WCAG criterion-by-criterion table
- Keyboard interactions — Tab, Shift+Tab, Space, Enter, arrow keys, Escape
- Screen reader behaviour — announced role, name, value
- Reduced motion —
prefers-reduced-motion: reducehonoured - Touch targets — 44x44 minimum
- Colour independence — no state communicated by colour alone
- Anti-patterns — common deviations and why they break
The recipe model is structurally accessible
The substrate's HTML+CSS+ARIA recipe model is more conformant than React-component-library models because:
- Native HTML elements first.
<button>instead of<div role="button">. The native element brings keyboard and screen-reader behaviour for free. - No JS required for activation. Buttons, links, form controls work without JavaScript loaded — degrades gracefully on slow connections, ad blockers, JS errors.
- No framework hijacking. The recipe doesn't capture the user's keyboard events through React synthetic events; native browser events fire.
Tenant override floor
A tenant who forks the substrate cannot unconfigure the accessibility floor. Three commitments are enforced regardless of theme overrides:
- Focus is always visible. Component recipes never set
outline: nonewithout an alternative. - Touch targets are never below 44x44. Component recipes include the focus-ring offset in the activatable area.
- Motion respects
prefers-reduced-motion. Every recipe ships the media-query override.
The audit endpoint (subsequent milestone) flags violations of these commitments.
Audit endpoint (subsequent milestone)
GET /api/audit/wcag?theme=<theme> will return per-component
WCAG conformance for the named theme — contrast ratios, focus
ring presence, touch target sizes, motion override coverage.
The response is JSON suitable for CI/CD integration (exit 1 on
fail) or AI-agent consumption.
Today this page is the canonical conformance statement; the audit endpoint formalises what's already required.
Where to look
- Each component carries its own Accessibility tab.
- Color covers contrast at the primitive layer.
- Motion covers reduced-motion patterns.
- Typography covers heading hierarchy and screen-reader navigation.