SPB Git

Repository Public

DESIGN_SYSTEM.md 4.0 KB

# Design system

Source of truth: brand/tokens.json and src/app/globals.css (kept identical by tests/brand.test.ts).

# Brand

  • Name ATLAS IA. Headline « Comprendre l'IA. Construire avec l'IA. »
  • Mark (brand/atlas-mark.svg, light variant atlas-mark-light.svg, React src/components/ui/Logo.tsx): an « A » read as a three-node graph on a globe outline — the same idea as the course's TikZ logo, redrawn as SVG primitives. Nodes: teal (apex), blue (left), amber (right); blue crossbar.
  • Wordmark (brand/atlas-wordmark.svg): mark + « ATLAS IA », Fira Sans SemiBold, tracking 0.16em, « IA » in blue. The SVG keeps live text; convert to outlines before print use.
  • Icons: src/app/icon.svg (favicon), src/app/apple-icon.png, public/icon-192.png, public/icon-512.png — regenerate with pnpm brand:build. Social card: src/app/opengraph-image.tsx, rendered at build time with the self-hosted font.
  • No UQO logo, no third-party artwork, no stock imagery.

# Colour

Navy foundation, ivory text, and four semantic accents shared with the course's slides. Colour never carries meaning alone: every state also has a label, an icon or a shape.

Token Light Dark Meaning
bg / surface / panel #fbfaf6 / #ffffff / #f1f3f8 #0b1426 / #101b32 / #16233f page, cards, quiet fills
fg / muted / faint #0b1426 / #45526a / #5d6a82 #f5f1e6 / #b4bfd1 / #93a0b8 text hierarchy
blue #1756c2 #6aabff information flow, active element, links
teal #0b7a63 #2fcbaa validated, success
amber #8f5a00 #ffb938 uncertain, « À venir », caution
coral #c2301f #ff8375 error, hazard, trust boundary
violet #5b3fc4 #b3a0ff unpublished preview, instructions

Each accent has a *-soft background. All text/background pairs used are checked by axe on every route in both themes (see TESTING.md).

# Type

  • Display — Fraunces Variable (optical size axis), headings and large numerals. .display, .h-page, .h-section.
  • Text — Fira Sans 400/500/600 (the course's slide font).
  • Mono — Fira Mono: code, timestamps, session numbers, eyebrows.
  • Body 16 px minimum, line-height 1.6, reading measure 68ch (.prose). French typography: typographic apostrophes in interface copy and in displayed titles (typo()), non-breaking thin spaces left to the browser.
  • Fonts come from @fontsource* npm packages (SIL OFL 1.1) and are bundled by the build: nothing is fetched from a font service.

# Layout and components

  • .shell (76rem) and .shell-narrow (46rem) containers; 2.5rem « graph paper » grid (.grid-paper) behind page headers.
  • Components (CSS classes in globals.css, React in src/components/ui): btn (+ primary, accent, ghost, quiet, danger, sm), card, chip (+ tones), field, eyebrow, prose, PageHeader, Section, Callout, EmptyState, StateBadge, Level (dots + label), Tabs (WAI-ARIA), Icon (original 24 px line set), Markdown.
  • Diagram vocabulary: .dg-node*, .dg-edge*, .dg-boundary (dashed coral = trust boundary), and the kit in src/components/diagrams/kit.tsx (Flow, Stepper, Slider, Choice, Toggle, Verdict, TextEquivalent).

# Themes and motion

  • Theme: system preference by default; the toggle cycles automatic → light → dark and stores the choice locally. An inline script applies it before first paint; without JavaScript, a CSS media query follows the system.
  • prefers-reduced-motion: reduce cuts every transition and animation (tested). The only animations are hover lifts, the buffering spinner and smooth scrolling; nothing needs motion to be understood.
  • Print: session pages print as a summary (chrome hidden, .no-print).

# Responsive states

Captured by pnpm screenshots at 375, 834 and 1440 px, light and dark, for every major screen in both modes: docs/screenshots/production/ and docs/screenshots/apercu/ (generated, not committed). A horizontal-overflow test runs at 375 px on every route.

Files main
Menu

Theme