Design system reference

Style guide

Colour roles, type, bands, actions and racing elements used across Turfobet.

Colour roles

Each colour has one job. Surfaces use tokens that follow the light and dark theme. Do not add hex darks, blue-tinted greys, sky blue or purple.

Roles

amber · variant="turf"

The one filled action of a screen. Dark text on it.

green · primary / emerald-700

Brand, links and selected state. Never a second filled action next to amber.

yellow · accent

The slab behind a key phrase and the focus saddle number. Nothing else.

RégléAnnulé
red / green

Data states only, always with a word.

Surfaces and seams

bg-page

Page background.

bg-panel

A panel or a sheet on the page.

bg-inset

Recessed area: table head, input well, the ink band.

border-seam

Hairline between rows and around panels.

border-seam-strong

Inputs, hover outline, ghost saddle number.

Text

Prix de Vincennes
text-foreground

Headings and body.

2850 m · Trot attelé
text-muted-foreground

Secondary lines, labels, metadata.

Typography

Archivo is the only interface font. JetBrains Mono carries numbers that must align. Inter remains only inside chart SVG text. Write in sentence case; do not use uppercase tracked labels.

Quinté du jour

display display-xl

Hero headline. One per page.

Dernières arrivées

display display-lg

Section h2 and compact page h1.

Lire la course

slab

Yellow block behind the key phrase of a headline. Once per headline.

Programme du jour
kicker

Sentence-case label with an amber dot. Replaces pill badges above headings.

Réunion 1

font-semibold text-lg

Small h3. Plain weight, no display style.

Texte courant en Archivo, aligné à gauche, avec une largeur de ligne confortable.

text-base / text-sm

Body. Left aligned by default.

14:50
font-mono tabular-nums

Times, odds, amounts in columns.

Do not name a new utility text-* or font-*: cn() drops it.

Bands and heroes

A page is a stack of full-width bands with one 1200px content column. The ink band stays dark in both themes. A hero is a flat ink band: no photo, no gradient.

Band tones

<Band tone="ink" tight>
<Band tone="page" tight>
<Band tone="panel" tight>

ContentHero

Kicker

Titre de la page

Sous-titre court. La variante compact garde le contenu au-dessus de la ligne de flottaison.

Article pages use the default padding. Utility pages pass compact. The badge prop renders as a kicker.

Actions

One filled amber action per screen. Every other action is an outline button or a link. Motion is 120ms on controls only.

Hierarchy

<Button variant="turf" size="turf"> with <CtaArrow /> as last child.

Other variants

Quiet danger is for reversible inline removal. Destructive is for the final confirmation of an irreversible action.

EmailSignupBar

Un lien sécurisé par email. Aucun mot de passe obligatoire, aucun paiement demandé.

Magic-link signup in one bar. Pass next to return the user to a page.

Segmented control and hover surface

raceDeskSegmentClass · raceDeskHoverClass

Racing elements

A horse number is a saddle-cloth square, never a circle. A bet tag always takes its colour from BET_FAMILIES.

SaddleNum

7
tone="default"

A runner in a list or an arrival.

4
tone="hit"

The winner, or a selection that is in the arrival.

12
tone="focus"

The one number the screen is about.

9
tone="ghost"

Not selected, non-runner, placeholder.

Bet families

SimpleCoupléTrioTiercé2/4Quarté+Quinté+MultiMini MultiPick 5S4

Use getFamilyTagClass or getFamilyBadgeClass. A race pays through many bet types, so a result is never shown as hit or miss.

Tags

R1 C5TurfosGalopOutlineSecondary

Tags are quiet metadata with 4px corners. They do not sit above a heading; use a kicker there.

Surfaces and radii

Content has no shadow, no glass and no gradient. Do not put a card in a card: use one surface and separate rows with hairlines.

Radii

rounded-[4px]

Controls: buttons, inputs, tags.

rounded-md (6px)

Panels.

rounded-lg (8px)

Maximum. Avatars and status dots may stay round.

One surface, hairline rows

Réunion 1 · Vincennes

  • 1Course 1
  • 2Course 2
  • 3Course 3

Raised sheet

Dialog, popover, floating bubble

The only shadow in the system. Use it for a layer that floats above the page.

Forms

Every input has a label. Touch targets are at least 44px. An error is a red line of text under the field.

Ce champ est requis

Icons

Lucide is the icon set, 16px by default. Use an icon for an action, a status, navigation or a recognisable object. Do not use emoji in interface text, and do not use a sparkle for the copilote: write the feature name.

Status
Close
Navigate
Calendar
Time
Place

For race, course and plan context, prefer an identifier (R1, C5, Quinté+) to a pictogram. Podium ranks are written "1er", "2e", "3e".