Skip to content
design system
Thème d’affichage, actuellement Auto

One foundation · three surfaces · 87 components, 87 stable

The system the product is built with.

RGAA Lab audits other sites for accessibility. This is what it holds itself to: one set of tokens, one theme mechanism, one implementation per component, on the web app, the extension's side panel and the public site.

The five rules

  1. Tokens are the only source of colour, spacing, type and motion. A literal colour anywhere else fails a test.
  2. Every colour pair is measured, not chosen. The generator computes each contrast ratio and refuses to write below the floor, in light, dark and print.
  3. One implementation per component, in Svelte 5, with scoped CSS on the tokens. No utility class, no theme code inside a component.
  4. Colour never carries meaning alone. A status has its word, an icon its label, a disabled control its reason.
  5. English API, French words. Names, props and docs are English; everything a user reads is French.

How each surface uses it

  • Web app and public site: the stylesheet imports fonts, tokens, Tailwind's preflight, the base layer, then the utilities for page layout; the components come from @rgaa-dev/design/components.
  • Extension panel: the same fonts, tokens and base layer bundled by esbuild, the theme applied by the same pre-paint script loaded as a file; the components follow with the panel's migration to Svelte.
  • Extension overlays on audited pages: the tokens scoped on an element carrying rl-scope, never on the page's root, and the icons as strings.
  • This site: fonts, tokens and base only. No Tailwind: it is the consumer that proves the components need none.

Where to start

The foundations, read from the token source: every colour pair measured, the type scale, the spacing, the themes and the words. The components, each with its contract, its states in both themes, in forced colours, and the criteria it satisfies by construction. The patterns show how they go together on a page, live. The surfaces say what each of the three consumers imports and still writes by hand. Contributing says how a component is added, the changelog what changed, and llms.txt is the inventory as text, for a contributor that reads before it writes; llms-full.txt is every doc in one file.