Available

Case study · Design system

Paper, blue, and nothing left to chance.

by Rafaël Bücher

One site, one source of truth.

The design system of my own site, rafaelbucher.fr. A two-colour palette, four typefaces, a handful of shape rules, and accessibility built into the mock-up instead of fixed at the end.

Role
Art direction, mock-ups, specifications, build review
Platforms
Mobile first (390 px), tablet, desktop (1440 px)
Deliverables
CSS tokens, typography rules, Astro components, accessible form
Tools
Design tool, Astro, plain CSS, Git
Standards
RGAA 4.1.2, WCAG 2.2 level AA
Status
Live, evolving

Accessibility audit measured, not promised

  • 0WCAG A and AA errorsaxe-core
  • 100out of 100 for accessibilityLighthouse
  • 20pages tested: all 10 pages of the site, at 390 and 1440 pxFrench and English

An automated tool only sees part of the criteria: keyboard and screen reader journeys are tested by hand. Measured on 22 November 2026.

See the rules applied

The context

two worlds on the same pages

My site had to host two identities without mixing them: my paper-and-blue brand, and that of the product PAGER2000. I treated the site as a product: tokens, a few written rules, around twenty Astro components, and accessibility settled before the first line of code.

Foundations

one source for every value

Every value lives in a single file, tokens.css, named by its role (--texte-doux, --erreur). The product has its own tokens: it never spills over into the site.

  • --fond#F3EFE6
  • --accent#2A33E86.7:1 on paper
  • --texte#11111116.5:1 on paper
  • --texte-douxink at 75%7.9:1 on paper
  • --erreur#B3261E5.7:1 on paper

Typography

and shape rules

Four self-hosted typefaces, each with a single job.

  • ArchivoBody and headings
  • Instrument SerifItalic accents
  • Roboto 300Section numbers
  • VT323PAGER2000 screen

Pills to act, square corners to type. Space separates sections: no full-width rules, no extra boxes.

Accessibility

built into the mock-up

Not a finish: a product decision.

Accessibility decides colours, states and messages before they exist. Planned in the mock-up, it costs almost nothing; fixed at the end, it means redoing the work. Target: RGAA 4.1.2 and WCAG 2.2 level AA. For each rule, who it protects and the code that applies it, taken from the repository.

  • 1 IN 7people aged 15 or over in France live with a disabilityDREES, 2021
  • 2025accessibility becomes mandatory for e-commerce, banking and transportEuropean Accessibility Act, 28 June 2025
  • 106criteria to check on every pageRGAA 4.1.2, DINUM

Text contrast

  • RGAA 3.2
  • WCAG 1.4.3 (AA)

Who it protects People with low vision, colour blindness or ageing eyes, and anyone in bright sunlight.

Every text colour is a token; the faintest still reaches 5.7:1 on paper.

src/styles/tokens.css
:root {  --fond: #f3efe6;  --accent: #2a33e8; /* titres, filets */  --texte: #111111; /* texte */  --erreur: #b3261e; /* 5,7:1 */}
Preview: three lines of text on paper, in blue, ink and the error colour, with their contrast ratios.

Visible focus

  • RGAA 10.7
  • WCAG 2.4.7 (AA)

Who it protects People who navigate with a keyboard or a switch because they cannot use a mouse.

A 3 px outline, blue on paper, paper on blue: it follows the background on its own.

src/styles/global.css
:focus-visible {  outline: 3px solid var(--accent);  outline-offset: 3px;}.blanc :focus-visible,.jaune :focus-visible {  outline-color: var(--fond);}
Preview: a button on paper gets a blue outline, a button on blue gets a paper outline.

Form errors

  • RGAA 11.10
  • WCAG 3.3.1 (A)
  • WCAG 1.4.1 (A)

Who it protects Blind people, who hear the message through their screen reader, and people with colour blindness.

The field is marked invalid and linked to its message; on screen, a bar, an icon and the text.

src/components/ContactForm.astro
<input id="contact-mail" type="email"  required aria-required="true"  aria-invalid="true"  aria-describedby="contact-mail-erreur" /><p id="contact-mail-erreur"   class="champ__erreur">  …</p>
Preview: the Email field contains “rafael@”; a bar appears under the field and an error message with an icon shows below.

Animations

  • RGAA 13.8
  • WCAG 2.2.2 (A)
  • WCAG 2.3.3 (AAA)

Who it protects People prone to dizziness or attention disorders.

Everything stops with “reduce motion”, and each snippet has a Pause box.

src/components/Extrait.astro
@media (prefers-reduced-motion: reduce) {  .extrait__apercu * {    animation: none !important;  }}.extrait:has(input:checked) * {  animation-play-state: paused;}
Preview: a dot moves along a track, then stops.

The method

from mock-up to code

  1. Design every page and every state of the form.
  2. Specify the brand, the rules and the accessibility criteria.
  3. Build on a dedicated branch, publishing nothing without sign-off.
  4. Log the gaps in a “to approve” file: nothing is invented silently.

Lessons

what I take away

  • Small but written. A few dozen tokens are enough, as long as they are documented.
  • Separate early. The site and the product share pages, not colours.
  • Accessibility from the start is a design constraint, not a list of fixes.

Contact

let’s talk about your product

A role, a team, a project? I reply within 48 hours.

contact [at] rafaelbucher.fr