MMeridian Design System
Resources

Accessibility

Meridian targets WCAG 2.2 AA. Most of that is decided by the token values, but a stylesheet can only do so much — the rest is a contract with whoever writes the markup.

What the tokens guarantee

PairLightDarkTarget
Text on background15.2:113.8:14.5:1
Muted text on background4.9:14.7:14.5:1
Accent on background5.6:16.1:14.5:1
White on accent5.1:1—4.5:1
Border on surface1.3:11.4:1non-text, decorative

These numbers are asserted in CI: a test resolves every token pair and fails the build if a ratio drops below its target. Nobody checks contrast by eye in this repository.

Focus

Focus is always visible and never removed. The default is a 2px accent ring with a 2px offset, drawn with :focus-visible so pointer users do not see it:

:focus-visible {
  outline: 2px solid var(--mrd-accent);
  outline-offset: 2px;
  border-radius: var(--mrd-radius-sm);
}
Do not use outline: none If a custom control needs a different focus treatment, replace the ring — do not delete it. A keyboard user who cannot see where they are cannot use the interface at all.

Motion

Transitions are short (120–180ms) and only on colour, opacity and shadow. Nothing moves spatially, so there is no vestibular risk to mitigate — but the preference is still respected:

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

Semantics checklist

Before shipping a screen, these are the items that actually break:

Testing

The routine is: keyboard-only pass (Tab, Shift+Tab, Enter, Escape), then a screen reader pass on one desktop and one mobile reader, then automated checks. Automated tools catch roughly a third of real issues — they are a floor, not a finish line.