Design system
Style Guide
Tokens, typography, colors and components used across jf.cool.
Colors
Palette sémantique — light & dark mode.
--colorscheme--background --colorscheme--txt --colorscheme--txt-2 --colorscheme--highlight --grey --white Typography
Échelle stepped par breakpoint — body 16px → 18px. Familles : Safiro (titres) · DM Sans (corps).
Display
Heading 3XL
Heading 2XL
Heading XL
Heading L
Heading M
Heading M Thin
Label / Tag
Body text. The quick brown fox jumps over the lazy dog.
Small text. The quick brown fox jumps over the lazy dog.
Icons
Set Phosphor via astro-icon — inline SVG, hérite de currentColor. Usage : <Icon name="ph:arrow-right" />
Magnet Button
Hover near the button — it attracts to the cursor. Class .magnet-button + inner .magnet-bt-content.
Huge
Big
Medium
Components
Éléments d'interface partagés — état live, theme-aware.
Theme switch
Bascule clair / sombre. Soleil = light, lune = dark ; le knob glisse. Cliquable (synchronise toutes les instances).
Navigation
- Desktop : logo · liens centrés · switch en fin de liste · Contact (CTA primary) à droite.
- Scroll : la barre se contracte en pill flottante (verre + blur, desktop) ; pleine largeur inset (mobile / tablet).
- Mobile : menu plein écran, entrées agrandies en cascade (GSAP), switch centré en bas, burger ↔ croix animé.
Spacing
Marges latérales stepped par breakpoint — sm → 2xl.
--side-mg-xs --side-mg-sm --side-mg-md --side-mg-big Eyebrow label
A compelling headline that spans two lines
Supporting body copy that gives context and builds on the headline. Keep it concise and scannable so readers can quickly grasp the value.
On image
Bold words over a full-bleed image
This layout puts an image behind the entire section. The .txt-on-img class forces all text white, and works independently of dark/light mode.
Eyebrow label
Image on the left, copy on the right
A classic editorial split. On mobile the image stacks above the text so the reading order stays natural.
Eyebrow label
Copy on the left, image on the right
Mirrored split. The .split-layout--reverse modifier flips the column order on desktop while keeping image-above-text on mobile.