Fair Case

Get started

The Fair Case design system is the shared set of tokens, faces, icons and components that every Fair Case page is built from.

What it is

One package, @repo/ui. It holds the tokens, the fonts, the icons and the components, one component per file.

Pages import its stylesheet and its components. They keep their own words, content and behaviour.

How it's built

  • TypeScript

    Every component and its props are typed, so a wrong variant fails the build, not the page.

  • Tailwind, on our tokens

    Three tiers: raw values, then roles for light and dark, then utilities. Components use the utilities only, so they follow the colour scheme with no extra classes.

  • Base UI where focus or keyboard handling matter

    Buttons and tooltips get their focus and keyboard handling from Base UI. We style them; we don't rewrite what it already does.

  • One table of variants per component

    A size or a style is a prop, declared once, not a one-off class at each call site.

Why this site exists

So anyone building a Fair Case page can see what already exists, how it looks in light and dark, and how to use it, before writing something new.

Each component has light and dark stories, checked for accessibility in the package's tests. This site shows the same components, as they stand on staging.

The faces

Schibsted Grotesk for text and controls, and Montagu Slab for headings. Both are open-license and ship with the package. Where a build supplies the licensed sans, the main site draws text in that face; this site always shows the open faces.