RRigdesign system
Foundations

Accessibility

Rig targets WCAG 2.2 AA and follows the WAI-ARIA Authoring Practices. Every component page lists its role, keyboard model and the success criteria it meets. The ratios below are computed from the actual colour values.

Standards and targets

What Rig commits to
AreaStandardIn practice
WCAG 2.2AAEvery page and every component example
WAI-ARIA Authoring PracticesPatternsTabs, menu button, dialog, disclosure, switch, slider, radio group, tooltip, breadcrumb
Target sizeWCAG 2.5.8 (24px) and Rig minimum 44pxSmall controls keep a 44px halo on touch
FocusWCAG 2.4.7, 2.4.112px ring, 2px offset, 3:1 against both neighbours
MotionWCAG 2.2.2, prefers-reduced-motionEvery animation stops or shortens; a Pause motion control sits in the footer
Forced coloursWindows High ContrastControls draw a system border and focus ring
ReflowWCAG 1.4.10Pages work at 320px wide and 400% zoom without two-direction scrolling

Text contrast

Colours as used in this documentation. Filled buttons use darker stops than the Figma 500 tokens so that white labels reach 4.5:1.

Text contrast
PairColoursRatioNeedsResultNote
Primary button label#FFFFFF on #4A54FF5.25:14.5:1PassLightest stop of the gradient
Secondary button label#FFFFFF on #7C3AED5.7:14.5:1PassPurple 500
Success button label#FFFFFF on #0478575.48:14.5:1PassEmerald 700, not 500
Error button label#FFFFFF on #DC26264.83:14.5:1PassRed 600, not 500
Info badge label#FFFFFF on #2563EB5.17:14.5:1PassBlue 600, not 500
Warning badge label#2A1700 on #F59E0B8.01:14.5:1PassDark text on amber
Body text, dark#B6BFD6 on #0A0E1A10.46:14.5:1Pass
Muted text, dark#8E9AB8 on #0E13226.58:14.5:1Pass
Body text, light#333842 on #FFFFFF11.76:14.5:1Pass
Muted text, light#595E66 on #FFFFFF6.53:14.5:1Pass
Link, dark#969CFF on #0A0E1A7.79:14.5:1Pass
Link, light#3D45D1 on #FFFFFF7.07:14.5:1Pass
Success text, light#047857 on #F6F7FB5.12:14.5:1Pass
Error text, light#B91C1C on #F6F7FB6.04:14.5:1Pass

Non-text contrast

Focus rings and control boundaries
PairColoursRatioNeedsResultNote
Focus ring, dark#969CFF on #0A0E1A7.79:13:1Pass2px, offset 2px
Focus ring, light#3D45D1 on #FFFFFF7.07:13:1Pass2px, offset 2px
Field border, dark#7683A6 on #0E13224.91:13:1PassWCAG 1.4.11
Field border, light#7C8396 on #FFFFFF3.79:13:1PassWCAG 1.4.11
Checkbox border, dark#8E9AB8 on #0E13226.58:13:1Pass
Switch track off, dark#7683A6 on #0E13224.91:13:1PassKnob adds a second cue

Findings in the Figma specification

These values fail as specified. They come from the Figma file (7 September 2026) and need a change in the design tokens before the product can claim AA for the affected components. This site already uses the corrected values.
Contrast failures in the source tokens
PairColoursRatioNeedsResultNote
Success button, white on Emerald 500#FFFFFF on #10B9812.54:14.5:1FailUse Emerald 700 for filled buttons
Error button, white on Red 500#FFFFFF on #EF44443.76:14.5:1FailUse Red 600 or darker
Info badge, white on Blue 500#FFFFFF on #3B82F63.68:14.5:1FailUse Blue 600
Primary gradient start, white on #5C65FF#FFFFFF on #5C65FF4.41:14.5:1FailDo not lighten the top stop
Secondary gradient start, white on #9061F5#FFFFFF on #9061F54.03:14.5:1FailDo not lighten the top stop
text/hint on white#949CA8 on #FFFFFF2.77:14.5:1FailHelper text must use a darker slate
text/field-label on white#8C91A1 on #FFFFFF3.14:14.5:1FailLabels need at least Slate 500
text/overline on white#808591 on #FFFFFF3.7:14.5:1Fail
Field border Slate 200 on white#E1E4EF on #FFFFFF1.27:13:1FailBoundary of a control must reach 3:1

How it was checked

  • Every example page was audited in Chrome for text contrast (including gradient stops), accessible names, target size, duplicate ids and heading order, in dark and light themes.
  • Keyboard paths were exercised for tabs, menu, dialog, popover, tooltip and toast.
  • An audit with a screen reader and with browser zoom at 400% is still to be done by a person.