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-700Brand, links and selected state. Never a second filled action next to amber.
yellow · accentThe slab behind a key phrase and the focus saddle number. Nothing else.
red / greenData states only, always with a word.
Surfaces and seams
bg-pagePage background.
bg-panelA panel or a sheet on the page.
bg-insetRecessed area: table head, input well, the ink band.
border-seamHairline between rows and around panels.
border-seam-strongInputs, hover outline, ghost saddle number.
Text
text-foregroundHeadings and body.
text-muted-foregroundSecondary 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-xlHero headline. One per page.
Dernières arrivées
display display-lgSection h2 and compact page h1.
Lire la course
slabYellow block behind the key phrase of a headline. Once per headline.
kickerSentence-case label with an amber dot. Replaces pill badges above headings.
Réunion 1
font-semibold text-lgSmall h3. Plain weight, no display style.
Texte courant en Archivo, aligné à gauche, avec une largeur de ligne confortable.
text-base / text-smBody. Left aligned by default.
font-mono tabular-numsTimes, 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
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
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
tone="default"A runner in a list or an arrival.
tone="hit"The winner, or a selection that is in the arrival.
tone="focus"The one number the screen is about.
tone="ghost"Not selected, non-runner, placeholder.
Bet families
Use getFamilyTagClass or getFamilyBadgeClass. A race pays through many bet types, so a result is never shown as hit or miss.
Tags
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.
For race, course and plan context, prefer an identifier (R1, C5, Quinté+) to a pictogram. Podium ranks are written "1er", "2e", "3e".