Skip to content

Accessibility

Xerobi UI targets WCAG 2.2 AA. Here is what is covered and what is still open.

Target

Text contrast 4.5:1, interface components and focus indicators 3:1, minimum target size 24px. The design audit computes contrast for every token pair and fails on regressions.

What the library does

  • Roles, states and keyboard handling come from Base UI.
  • Every interactive element has a visible focus ring, at 80% opacity of the ring colour to reach 3:1.
  • prefers-reduced-motion turns off transitions, animation and the press ripple.
  • Text inputs are 16px below the sm breakpoint so iOS does not zoom.
  • Light and dark mode are both tested against the contrast targets.

What you do

  • Give icon-only buttons an aria-label.
  • Give every field a visible label.
  • Pair colour with text or an icon.
  • Keep tooltips to names, not essential instructions.

Known contrast gaps

These come from the original Xerobi palette. They are recorded, not hidden, and are design decisions for the brand owners.

PairRatioGuidance
White on info2.37:1Use the soft variant
White on success2.28:1Use the soft variant
White on error3.17:1Fine for large text and controls, not body text
Success on its soft background3.75:1Under 4.5:1 for small text
Warning on its soft background3.66:1Under 4.5:1 for small text

Search documentation

Search pages, components and blocks.