Design System
Composants shadcn/ui — palette DREP'APP appliquée via CSS variables. Tous les composants sont réels et interactifs.
Sommaire
19 sections
Tokens — palette
Couleurs sémantiques exposées en CSS variables
background
#FFFFFF
--background
foreground
#094067
--foreground
primary
#094067
--primary
primary-foreground
#FFFFFE
--primary-foreground
accent
#E0F2FE
--accent
accent-foreground
#094067
--accent-foreground
secondary
#F1F5F9
--secondary
muted-foreground
#5F6C7B
--muted-foreground
destructive
#EF4565
--destructive
ring
#3DA9FC
--ring
border
#E2E8F0
--border
chart-1
#3DA9FC
--chart-1
chart-3
#EF4565
--chart-3
chart-4 (success)
#10B981
--chart-4
chart-5 (warning)
#F59E0B
--chart-5
Typographie
Inter — scale Tailwind
Display 36 — Patients en suivi actif
Heading 24 — Vue d'ensemble
Subheading 18 — Compteur dynamique
Body 14 — Le compteur s'actualise toutes les 30 secondes pour refléter l'état réel des diagnostics en cours.
Caption 12 — Dernière mise à jour
--font-sans: InterButtons
6 variants × 4 tailles + icon
Badges & Status
Badges shadcn + status médical custom
DefaultSecondaryOutlineDestructiveStableEn coursEn crise
Form controls
Input, Label, Textarea, Switch, Checkbox, Select
Input group
Champ avec addon (icône, bouton, kbd…)
Avatar & Tabs
Identité + onglets shadcn
SMMDLB
Contenu de l'onglet Compte.
Échelle d'intensité (custom)
Pour les douleurs 1-10
2/10
5/10
7/10
9/10
Overlays
Dropdown, Tooltip, Popover
Sheet (drawer)
Tiroir latéral pour formulaires longs ou détails
Command palette
Recherche fuzzy + groupes + raccourcis. Aussi accessible globalement via ⌘K.
Modals
Dialog informatif + AlertDialog destructif + Toast
Card & Skeleton
Card avec slots + états de chargement
Patient suivi
Mis à jour il y a quelques secondes
47
+3 vs hier
Skeletons
États de chargement
Table
Tableau de données simple
| Patient | État | Intensité | Action |
|---|---|---|---|
| ABDOU Hassani | Stable | 1/10 | |
| ABDOU Combo | Stable | 4/10 | |
| ABDOU Said | Stable | 3/10 | |
| ATTOUMANE Abdou | Stable | 2/10 |
Scroll Area
Scrolling stylé (utilisé dans /stats pour la liste de patients)
Breadcrumb
Aussi visible dans la top bar de l'app shell
Calendar
Sélecteur de dates (single & range)
Mode single
Charts (shadcn + Recharts)
Area, Line, Bar (stacked + horizontal), Pie, Radial — tooltips et légendes shadcn
Composants métier DREP'APP
Briques spécifiques à la drépanocytose : feed live, timeline crises, mini-fiche patient
Live feed (événements en direct)
Timeline crises (3 derniers épisodes)
Hier
18:26 — il y a environ 13 heuresEn criseCritiqueIntensité10/10Température39.2°CZones rapportéesTêteJambe gauchemercredi 11 mars
11:50 — il y a environ 2 moisStableIntensité4/10Température36.8°CZones rapportéesDos basBuste hautRésolution : il y a environ 2 mois
vendredi 6 mars
17:50 — il y a environ 2 moisEn coursIntensité7/10Température36.7°CZones rapportéesDos hautRésolution : il y a environ 2 mois