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-motionturns off transitions, animation and the press ripple.- Text inputs are 16px below the
smbreakpoint 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.
| Pair | Ratio | Guidance |
|---|---|---|
| White on info | 2.37:1 | Use the soft variant |
| White on success | 2.28:1 | Use the soft variant |
| White on error | 3.17:1 | Fine for large text and controls, not body text |
| Success on its soft background | 3.75:1 | Under 4.5:1 for small text |
| Warning on its soft background | 3.66:1 | Under 4.5:1 for small text |