Design system

Style Guide

Tokens, typography, colors and components used across jf.cool.

Colors

Palette sémantique — light & dark mode.

Background --colorscheme--background
Text --colorscheme--txt
Text 2 --colorscheme--txt-2
Highlight --colorscheme--highlight
Grey --grey
White --white

Typography

Échelle stepped par breakpoint — body 16px → 18px. Familles : Safiro (titres) · DM Sans (corps).

title-4xl · Safiro Bold · 52px → 104px

Display

title-3xl · Safiro Bold · 40px → 80px

Heading 3XL

title-2xl · Safiro Bold · 36px → 62px

Heading 2XL

title-xl · Safiro Bold · 28px → 46px

Heading XL

title-l · Safiro Bold · 22px → 34px

Heading L

title-m · Safiro Bold · 18px → 26px

Heading M

title-m-thin · Safiro Regular · 18px → 26px

Heading M Thin

title-s · DM Sans Bold · 12px → 14px · uppercase · 0.3em tracking

Label / Tag

p-base · DM Sans Regular · 16px → 18px

Body text. The quick brown fox jumps over the lazy dog.

p-small · DM Sans Regular · 16px

Small text. The quick brown fox jumps over the lazy dog.

Buttons

Variantes CTA — Primary, Secondary, Ghost.

Icons

Set Phosphor via astro-icon — inline SVG, hérite de currentColor. Usage : <Icon name="ph:arrow-right" />

ph:arrow-right
ph:arrow-up-right
ph:arrow-left
ph:arrow-down
ph:envelope-simple
ph:linkedin-logo
ph:instagram-logo
ph:dribbble-logo
ph:sun
ph:moon
ph:link-simple
ph:x
ph:list
ph:play
ph:cube
ph:sparkle

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.

Example image

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.

Example image