Files
design-system/kit-audit/Components.dc.html
T
nathanduquet 5faf478c1e Étoffer la bibliothèque : Card, Badge, formulaires avancés, feedback, navigation
Ajoute Card, Badge, Checkbox, Radio, Select, Spinner, EmptyState, Dialog,
TabBar et Toolbar au package @napps/design-system, tous construits à partir
des tokens existants (fills, labels par opacité, deux familles de matière) —
aucune valeur ad hoc introduite.
2026-09-17 12:33:01 +02:00

147 lines
9.5 KiB
HTML
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script src="./support.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap">
</head>
<body>
<x-dc>
<helmet>
<style>
* { box-sizing: border-box; }
body { margin: 0; background: #EDEEF1; }
</style>
</helmet>
<div style="width:1100px; padding:56px; background:#FFFFFF; font-family:'IBM Plex Sans',sans-serif; color:#16181C;">
<div style="display:flex; flex-direction:column; gap:6px; padding-bottom:28px; border-bottom:1px solid #E4E6EA; margin-bottom:28px;">
<div style="font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:#62636B;">Extraction réelle — Tokens sémantiques &amp; composants</div>
<h1 style="font-size:28px; font-weight:700; margin:0;">La hiérarchie se fait par opacité, pas par des gris</h1>
<p style="font-size:14px; line-height:1.6; color:#62636B; margin:4px 0 0; max-width:720px;">Découverte confirmée sur 6 composants distincts : Apple encode Primary/Secondary/Tertiary en opacité de noir, pas en teintes de gris séparées. Un token qui s'adapte à n'importe quel fond au lieu d'une variante par contexte.</p>
</div>
<div style="display:flex; gap:16px; margin-bottom:32px;">
<div style="flex:1; background:#F7F8FA; border-radius:12px; padding:16px;">
<div style="width:100%; height:32px; background:#000000; border-radius:6px; margin-bottom:8px;"></div>
<div style="font-size:12px; font-weight:600;">labels/primary</div>
<div style="font-family:'IBM Plex Mono',monospace; font-size:10px; color:#9A9BA3;">noir 100%</div>
</div>
<div style="flex:1; background:#F7F8FA; border-radius:12px; padding:16px;">
<div style="width:100%; height:32px; background:rgba(60,60,67,0.6); border-radius:6px; margin-bottom:8px;"></div>
<div style="font-size:12px; font-weight:600;">labels/secondary</div>
<div style="font-family:'IBM Plex Mono',monospace; font-size:10px; color:#9A9BA3;">noir 60%</div>
</div>
<div style="flex:1; background:#F7F8FA; border-radius:12px; padding:16px;">
<div style="width:100%; height:32px; background:rgba(60,60,67,0.3); border-radius:6px; margin-bottom:8px;"></div>
<div style="font-size:12px; font-weight:600;">labels/tertiary</div>
<div style="font-family:'IBM Plex Mono',monospace; font-size:10px; color:#9A9BA3;">noir 30%</div>
</div>
<div style="flex:1; background:#F7F8FA; border-radius:12px; padding:16px;">
<div style="width:100%; height:32px; background:rgba(118,118,128,0.12); border-radius:6px; margin-bottom:8px;"></div>
<div style="font-size:12px; font-weight:600;">fills/tertiary</div>
<div style="font-family:'IBM Plex Mono',monospace; font-size:10px; color:#9A9BA3;">gris 12%</div>
</div>
</div>
<div style="font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:#9A9BA3; margin-bottom:16px;">Composants extraits avec valeurs exactes</div>
<div style="display:flex; gap:20px; align-items:flex-start; margin-bottom:24px; flex-wrap:wrap;">
<div style="display:flex; flex-direction:column; gap:8px; align-items:center;">
<div style="display:flex; background:rgba(118,118,128,0.12); border-radius:999px; padding:2px; gap:4px; width:220px;">
<div style="flex:1; text-align:center; font-size:13.3px; font-weight:600; padding:3px 6px; border-radius:999px; background:#FFFFFF; box-shadow:0 2px 10px rgba(0,0,0,0.06);">Un</div>
<div style="flex:1; text-align:center; font-size:13.3px; font-weight:500; padding:3px 6px; color:#000;">Deux</div>
<div style="flex:1; text-align:center; font-size:13.3px; font-weight:500; padding:3px 6px; color:#000;">Trois</div>
</div>
<div style="font-size:11px; color:#9A9BA3;">Segmented Control</div>
</div>
<div style="display:flex; flex-direction:column; gap:8px; align-items:center;">
<div style="width:64px; height:28px; border-radius:999px; background:#34C759; position:relative;">
<div style="position:absolute; right:2px; top:2px; width:24px; height:24px; border-radius:999px; background:#FFFFFF;"></div>
</div>
<div style="font-size:11px; color:#9A9BA3;">Toggle — ON</div>
</div>
<div style="display:flex; flex-direction:column; gap:8px; align-items:center;">
<div style="width:92px; height:32px; border-radius:999px; overflow:hidden; display:flex; position:relative;">
<div style="flex:1; background:rgba(118,118,128,0.12); display:flex; align-items:center; justify-content:center; font-weight:600; font-size:15px;">−</div>
<div style="width:1px; background:rgba(60,60,67,0.3); margin:4px 0;"></div>
<div style="flex:1; background:rgba(118,118,128,0.12); display:flex; align-items:center; justify-content:center; font-weight:600; font-size:15px;">+</div>
</div>
<div style="font-size:11px; color:#9A9BA3;">Stepper</div>
</div>
<div style="display:flex; flex-direction:column; gap:8px; align-items:center;">
<div style="width:220px; position:relative; height:24px;">
<div style="position:absolute; top:9px; left:0; right:0; height:6px; border-radius:3px; background:rgba(120,120,128,0.2);"></div>
<div style="position:absolute; top:9px; left:0; width:45%; height:6px; border-radius:3px; background:#0088FF;"></div>
<div style="position:absolute; top:0; left:calc(45% - 12px); width:24px; height:24px; border-radius:999px; background:#FFFFFF; box-shadow:0 0.5px 4px rgba(0,0,0,0.12), 0 6px 13px rgba(0,0,0,0.12);"></div>
</div>
<div style="font-size:11px; color:#9A9BA3;">Slider</div>
</div>
</div>
<div style="display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap;">
<div style="display:flex; flex-direction:column; gap:8px;">
<div style="width:260px; border-top:1px solid #E6E6E6; padding-top:10px;">
<div style="font-size:17px; color:#000;">Titre de la ligne</div>
<div style="font-size:15px; color:rgba(60,60,67,0.6);">Sous-titre en secondary</div>
</div>
<div style="font-size:11px; color:#9A9BA3;">List Row (tall)</div>
</div>
<div style="display:flex; flex-direction:column; gap:8px;">
<div style="width:260px; border-top:1px solid #E6E6E6; padding-top:10px;">
<div style="font-size:17px; color:rgba(60,60,67,0.3);">Placeholder</div>
</div>
<div style="font-size:11px; color:#9A9BA3;">Text Field — vide</div>
</div>
<div style="display:flex; flex-direction:column; gap:8px; align-items:center;">
<div style="width:220px; padding:24px; text-align:center; border-radius:20px; background:#F7F8FA;">
<div style="width:50px; height:50px; border-radius:999px; background:rgba(255,45,85,0.15); display:flex; align-items:center; justify-content:center; margin:0 auto 12px; font-size:20px; color:#FF2D55;">★</div>
<div style="font-size:15px; font-weight:600; margin-bottom:4px;">Aucun résultat</div>
<div style="font-size:12px; color:rgba(60,60,67,0.6);">Essayez une autre recherche</div>
</div>
<div style="font-size:11px; color:#9A9BA3;">Empty State — badge accent à 15%</div>
</div>
</div>
<div style="margin-top:32px; padding-top:24px; border-top:1px solid #E4E6EA;">
<div style="font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:#9A9BA3; margin-bottom:6px;">Pattern systématique — le "Prominent" en 3 contextes</div>
<p style="font-size:13px; color:#62636B; margin:0 0 16px; max-width:680px;">Bouton, barre d'outils, CTA d'empty state : toujours la même recette pour une action principale sur du verre — jamais un aplat de couleur direct.</p>
<div style="display:flex; gap:16px;">
<div style="flex:1; background:#F7F8FA; border-radius:12px; padding:16px; text-align:center;">
<button style="font-size:14px; color:#FFFFFF; background:#0088FF; border:none; border-radius:999px; padding:10px 20px;">Bouton</button>
<div style="font-size:11px; color:#9A9BA3; margin-top:10px;">Bordered-Prominent</div>
</div>
<div style="flex:1; background:#F7F8FA; border-radius:12px; padding:16px; text-align:center;">
<div style="display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:999px; background:#0088FF; color:#FFFFFF; font-size:14px;">+</div>
<div style="font-size:11px; color:#9A9BA3; margin-top:10px;">Toolbar — Symbol Prominent</div>
</div>
<div style="flex:1; background:#F7F8FA; border-radius:12px; padding:16px; text-align:center;">
<button style="font-size:14px; color:#FFFFFF; background:#0088FF; border:none; border-radius:999px; padding:10px 20px;">Action</button>
<div style="font-size:11px; color:#9A9BA3; margin-top:10px;">Empty State — CTA</div>
</div>
</div>
</div>
<div style="margin-top:28px;">
<div style="font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:#9A9BA3; margin-bottom:16px;">Sidebar — sélection en pilule, pas en bande pleine largeur</div>
<div style="width:280px; background:#F7F8FA; border-radius:14px; padding:8px;">
<div style="padding:11px 16px; font-size:17px; color:rgba(60,60,67,0.6);">Accueil</div>
<div style="padding:11px 16px; font-size:17px; color:#000; background:rgba(237,237,237,0.9); border-radius:999px;">Projets</div>
<div style="padding:11px 16px; font-size:17px; color:rgba(60,60,67,0.6);">Réglages</div>
</div>
</div>
</div>
</x-dc>
</body>
</html>