Case study · Design system

Black, yellow, 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
The problem
A site that changes often only stays consistent if every value has a single source.
My role
Art direction, mock-ups, specifications, integration review.
The result
Zero WCAG A and AA errors (axe-core), 100 out of 100 for accessibility (Lighthouse).

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 black-and-yellow 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.

  • --noir#000000
  • --jaune#FFF05717.9:1 on black
  • --blanc-casse#FAFAFA20.1:1 on black
  • --texte-douxoff-white at 75%11.1:1 on black
  • --erreur#FF8A7A9.2:1 on black
  • --blanc#FFFFFF

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 9.2:1 on black.

src/styles/tokens.css
:root {  --noir: #000000;  --jaune: #fff057; /* titres, filets */  --blanc-casse: #fafafa; /* texte */  --erreur: #ff8a7a; /* 9,2:1 */}
Preview: three lines of text on black, in yellow, off-white 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, yellow on black, black on yellow or white: it follows the background on its own.

src/styles/global.css
:focus-visible {  outline: 3px solid var(--jaune);  outline-offset: 3px;}.blanc :focus-visible,.jaune :focus-visible {  outline-color: var(--noir);}
Preview: a button on black gets a yellow outline, a button on yellow gets a black 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.

Let's talk

about your product.

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

All fields are required unless marked optional.

Your details are only used to reply to you. How your data is used