USWDS design tokens adopted (spacing, color, typography)
Why it matters
OMB M-23-22 requires federal agencies to adopt the U.S. Web Design System (USWDS) to ensure a consistent, accessible, and trustworthy digital experience for the public. USWDS design tokens — spacing, color, and typography — encode Section 508 color contrast ratios and responsive scale decisions that would otherwise require individual agencies to re-solve. Without USWDS tokens, agencies typically build custom styles that fail color contrast (WCAG 1.4.3), use non-standard spacing that breaks on mobile, or adopt inconsistent typography that erodes the visual coherence citizens expect from .gov sites.
Severity rationale
Medium because non-adoption of USWDS design tokens violates OMB M-23-22 guidance and typically introduces color contrast, spacing, or typography choices that breach WCAG 2.2 and Section 508, creating both compliance and accessibility failures across all pages.
Remediation
Install @uswds/uswds and import its settings and component CSS in your global stylesheet. Do not import USWDS only in devDependencies.
npm install @uswds/uswds
In your main stylesheet (e.g., app/globals.css or styles/global.scss):
// Import USWDS settings and all tokens
@forward 'uswds-settings'; // your overrides go here
@forward '@uswds/uswds';
Or with a direct CSS import:
@import '@uswds/uswds/css/uswds.css';
Then verify token adoption by confirming at least spacing utilities, the USWDS color palette, and the Public Sans font family are actively applied in layout and typography styles.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Government Web Standards Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- external · uswds-3 — U.S. Web Design System (USWDS) 3.x — design tokens specification for spacing, color, and typography
- external · omb-m-23-22 — OMB M-23-22 — USWDS adoption requirement for federal digital-first experience
- wcag:2.2 · 1.4.3 — Contrast (Minimum)
Taxons
History
- 2026-04-18·v1.0.0·Initial import from gov-web-standards·automated