Styleguide
Documentation vivante des composants et tokens du design system de digitalgarden.
Tokens
Couleurs — Accent
Couleurs — Interface
Couleurs — Stades de maturité
Espacement
Typographie
Rayons de bordure
Transitions
Polices
Composants
StageBadge
stage: 'seedling' | 'budding' | 'evergreen' —
size?: 'sm' | 'md' (défaut: 'md')
Tag
label: string —
href?: string → interactive (lien) si fourni, static (span) sinon
NavLink
href: string —
label: string —
active: boolean → ajoute aria-current="page" + style actif
NoteCard
title, slug, date: Date, stage requis —
description?, tags?: string[] optionnels
FilterNav
allTags: string[] —
currentStage?: string —
currentTag?: string — Les filtres sont des liens statiques, sans JS.
Pagination
currentPage: number —
totalPages: number —
baseUrl: string — Masqué si totalPages ≤ 1.
BacklinkList
backlinks: Array<{title: string, slug: string}> — entièrement masqué si vide
↑ Le composant est invisible quand backlinks = []
Header
currentPath: string — détermine le lien actif dans la navigation.
Normalement géré automatiquement par PageLayout.
Footer
currentPath: string — détermine le lien actif dans la navigation.
Normalement géré automatiquement par PageLayout.