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.
178 lines
15 KiB
HTML
Executable File
178 lines
15 KiB
HTML
Executable File
<!doctype html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<script src="./support.js"></script>
|
||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap">
|
||
</head>
|
||
<body>
|
||
<x-dc>
|
||
<helmet>
|
||
<style>
|
||
* { box-sizing: border-box; }
|
||
body { margin: 0; background: #E7E9EE; }
|
||
a { color: #0B6CFF; text-decoration: none; }
|
||
a:hover { color: #0855CC; }
|
||
</style>
|
||
</helmet>
|
||
<div style="width:1160px; padding:60px; background:#F5F6F9; font-family:'Manrope',sans-serif; color:#15171C;">
|
||
|
||
<!-- HEADER -->
|
||
<div style="display:flex; flex-direction:column; gap:6px; padding-bottom:36px; border-bottom:1px solid #E2E4EA; margin-bottom:40px;">
|
||
<div style="font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:rgba(0,0,0,0.6);">A4 — Précision / Vibrance — révisée HIG</div>
|
||
<h1 style="font-family:'Manrope',sans-serif; font-weight:800; font-size:38px; margin:0; letter-spacing:-0.02em;">Corrigée sur les vrais principes Apple.</h1>
|
||
<p style="font-size:15px; line-height:1.6; color:rgba(0,0,0,0.6); margin:4px 0 0; max-width:740px;">Révisée une seconde fois après audit complet du kit Figma iOS 27 (26 composants, valeurs exactes) : hiérarchie de texte par opacité du noir plutôt que par des gris fixes, échelle de fills en trois paliers, et deux familles de matière seulement (contrôle / panneau) plutôt qu'une recette par composant. Typographie et signe restent les nôtres — ce ne sont pas SF Pro ni SF Symbols. Détail dans <code style="background:#EDEFF3; padding:1px 6px; border-radius:4px;">tokens.css</code> et <code style="background:#EDEFF3; padding:1px 6px; border-radius:4px;">figma-kit-audit.md</code>.</p>
|
||
</div>
|
||
|
||
<!-- COLOR & ELEVATION LAYERS -->
|
||
<div style="margin-bottom:40px; padding-bottom:36px; border-bottom:1px solid #E2E4EA;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:rgba(0,0,0,0.6); margin-bottom:6px;">Couches de couleur — pas d'ombre pour la hiérarchie</div>
|
||
<p style="font-size:13px; color:rgba(0,0,0,0.3); margin:0 0 16px; max-width:640px;">Trois niveaux de surface empilés par teinte, séparés par un trait de 1px — jamais par une ombre. L'accent n'apparaît que sur ce qui est interactif.</p>
|
||
<div style="display:flex; gap:16px;">
|
||
<div style="flex-grow:1; background:#F5F6F9; border:1px solid #E2E4EA; border-radius:16px; padding:16px;">
|
||
<div style="font-size:11px; font-weight:600; color:rgba(0,0,0,0.3); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:10px;">Fond de page</div>
|
||
<div style="background:#FFFFFF; border:1px solid #E2E4EA; border-radius:12px; padding:14px;">
|
||
<div style="font-size:11px; font-weight:600; color:rgba(0,0,0,0.3); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:10px;">Surface groupée</div>
|
||
<div style="background:#EDEFF3; border-radius:9px; padding:12px; font-size:13px; color:rgba(0,0,0,0.6);">Surface imbriquée (piste, champ inactif)</div>
|
||
</div>
|
||
</div>
|
||
<div style="flex-grow:1; background:#15171C; border:1px solid #2A2D34; border-radius:16px; padding:16px;">
|
||
<div style="font-size:11px; font-weight:600; color:rgba(0,0,0,0.3); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:10px;">Fond de page (dark)</div>
|
||
<div style="background:#1D1F26; border:1px solid #2A2D34; border-radius:12px; padding:14px;">
|
||
<div style="font-size:11px; font-weight:600; color:rgba(0,0,0,0.3); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:10px;">Surface groupée</div>
|
||
<div style="background:#262930; border-radius:9px; padding:12px; font-size:13px; color:#C7C9D1;">Surface imbriquée — plus claire, pas plus sombre</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div style="display:flex; gap:12px; margin-top:14px;">
|
||
<div style="flex-grow:1; background:#FFFFFF; border:1px solid #E2E4EA; border-radius:12px; padding:12px 14px; display:flex; align-items:center; gap:8px;">
|
||
<div style="width:8px; height:8px; border-radius:50%; background:#1FA968;"></div>
|
||
<div style="font-size:12px; color:#15171C;">Succès — <span style="color:rgba(0,0,0,0.3);">jamais seul signal, toujours + texte/icône</span></div>
|
||
</div>
|
||
<div style="flex-grow:1; background:#FFFFFF; border:1px solid #E2E4EA; border-radius:12px; padding:12px 14px; display:flex; align-items:center; gap:8px;">
|
||
<div style="width:8px; height:8px; border-radius:50%; background:#D68C1B;"></div>
|
||
<div style="font-size:12px; color:#15171C;">Attention</div>
|
||
</div>
|
||
<div style="flex-grow:1; background:#FFFFFF; border:1px solid #E2E4EA; border-radius:12px; padding:12px 14px; display:flex; align-items:center; gap:8px;">
|
||
<div style="width:8px; height:8px; border-radius:50%; background:#E6483D;"></div>
|
||
<div style="font-size:12px; color:#15171C;">Erreur</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- TYPE SCALE -->
|
||
<div style="margin-bottom:40px; padding-bottom:36px; border-bottom:1px solid #E2E4EA;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:rgba(0,0,0,0.6); margin-bottom:6px;">Échelle typographique — hiérarchie par le poids</div>
|
||
<p style="font-size:13px; color:rgba(0,0,0,0.3); margin:0 0 16px; max-width:640px;">Inspirée de l'échelle de type standard iOS (points, poids, usage) — appliquée ici à Manrope, notre propre famille, pas SF Pro.</p>
|
||
<div style="display:flex; flex-direction:column; gap:10px;">
|
||
<div style="display:flex; align-items:baseline; gap:16px;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:800; font-size:34px; letter-spacing:-0.02em; flex-grow:1;">Grand titre</div>
|
||
<div style="font-family:'IBM Plex Mono',monospace; font-size:11px; color:rgba(0,0,0,0.3); white-space:nowrap;">34pt · extrabold</div>
|
||
</div>
|
||
<div style="display:flex; align-items:baseline; gap:16px;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:22px; letter-spacing:-0.01em; flex-grow:1;">Titre de section</div>
|
||
<div style="font-family:'IBM Plex Mono',monospace; font-size:11px; color:rgba(0,0,0,0.3); white-space:nowrap;">22pt · bold</div>
|
||
</div>
|
||
<div style="display:flex; align-items:baseline; gap:16px;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:17px; flex-grow:1;">En-tête de liste</div>
|
||
<div style="font-family:'IBM Plex Mono',monospace; font-size:11px; color:rgba(0,0,0,0.3); white-space:nowrap;">17pt · bold</div>
|
||
</div>
|
||
<div style="display:flex; align-items:baseline; gap:16px;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:400; font-size:17px; color:rgba(0,0,0,0.6); flex-grow:1;">Corps de texte — même taille que l'en-tête ci-dessus, seul le poids change</div>
|
||
<div style="font-family:'IBM Plex Mono',monospace; font-size:11px; color:rgba(0,0,0,0.3); white-space:nowrap;">17pt · regular</div>
|
||
</div>
|
||
<div style="display:flex; align-items:baseline; gap:16px;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:400; font-size:13px; color:rgba(0,0,0,0.6); flex-grow:1;">Note de bas de bloc</div>
|
||
<div style="font-family:'IBM Plex Mono',monospace; font-size:11px; color:rgba(0,0,0,0.3); white-space:nowrap;">13pt · regular</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- MATERIALS IN CONTEXT -->
|
||
<div style="margin-bottom:40px; padding-bottom:36px; border-bottom:1px solid #E2E4EA;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:rgba(0,0,0,0.6); margin-bottom:6px;">Matière & vibrancy — recette calibrée sur le vrai verre liquide</div>
|
||
<p style="font-size:13px; color:rgba(0,0,0,0.3); margin:0 0 16px; max-width:680px;">Flou à 46px (pas 20), aucune bordure visible — juste un rehaut interne très doux —, et une forme entièrement en pilule pour les contrôles, comme dans le système réel. Valeurs vérifiées, pas estimées.</p>
|
||
<div style="position:relative; height:180px; border-radius:16px; overflow:hidden; background:#FFFFFF; border:1px solid #E2E4EA;">
|
||
<div style="display:flex; gap:10px; padding:16px; overflow:hidden;">
|
||
<div style="min-width:120px; height:70px; border-radius:10px; background:linear-gradient(135deg,#FFB199,#FF6A88);"></div>
|
||
<div style="min-width:120px; height:70px; border-radius:10px; background:linear-gradient(135deg,#6EE7F5,#3B82F6);"></div>
|
||
<div style="min-width:120px; height:70px; border-radius:10px; background:linear-gradient(135deg,#FDE68A,#F59E0B);"></div>
|
||
<div style="min-width:120px; height:70px; border-radius:10px; background:linear-gradient(135deg,#C4F1BE,#22C55E);"></div>
|
||
<div style="min-width:120px; height:70px; border-radius:10px; background:linear-gradient(135deg,#E9D5FF,#A855F7);"></div>
|
||
</div>
|
||
<div style="position:absolute; left:16px; right:16px; bottom:16px; display:flex; justify-content:center;">
|
||
<div style="position:relative; display:inline-flex; background:rgba(255,255,255,0.55); backdrop-filter:blur(46px) saturate(1.6); -webkit-backdrop-filter:blur(46px) saturate(1.6); border-radius:999px; padding:5px; gap:2px; box-shadow:inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.04), 0 8px 20px rgba(15,20,30,0.05);">
|
||
<div style="font-size:13px; font-weight:600; padding:0 18px; min-height:44px; display:flex; align-items:center; border-radius:999px; background:rgba(255,255,255,0.78); color:#15171C; box-shadow:inset 0 1px 0 rgba(255,255,255,0.7);">Aperçu</div>
|
||
<div style="font-size:13px; font-weight:600; padding:0 18px; min-height:44px; display:flex; align-items:center; border-radius:999px; color:rgba(0,0,0,0.6);">Activité</div>
|
||
<div style="font-size:13px; font-weight:600; padding:0 18px; min-height:44px; display:flex; align-items:center; border-radius:999px; color:rgba(0,0,0,0.6);">Réglages</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div style="font-size:11px; color:rgba(0,0,0,0.3); margin-top:8px;">Le contenu coloré derrière reste visible en transparence — c'est ce qui justifie le flou, pas la décoration seule.</div>
|
||
</div>
|
||
|
||
<!-- COMPONENTS -->
|
||
<div style="margin-bottom:40px; padding-bottom:36px; border-bottom:1px solid #E2E4EA;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:rgba(0,0,0,0.6); margin-bottom:6px;">Composants — cibles tactiles 44×44pt</div>
|
||
<p style="font-size:13px; color:rgba(0,0,0,0.3); margin:0 0 16px; max-width:640px;">Chaque élément interactif est dimensionné pour une cible d'au moins 44×44pt, quelle que soit sa taille visuelle apparente.</p>
|
||
<div style="display:flex; gap:24px; align-items:flex-start;">
|
||
|
||
<div style="display:flex; flex-direction:column; gap:8px; align-items:center;">
|
||
<button style="font-family:'Manrope',sans-serif; font-weight:700; font-size:14px; color:#FFFFFF; background:#0B6CFF; border:none; border-radius:999px; padding:0 22px; min-height:44px; cursor:pointer;">Créer un projet</button>
|
||
<div style="font-size:10px; color:rgba(0,0,0,0.3);">primaire</div>
|
||
</div>
|
||
|
||
<div style="display:flex; flex-direction:column; gap:8px; align-items:center;">
|
||
<button style="font-family:'Manrope',sans-serif; font-weight:700; font-size:14px; color:#0B6CFF; background:rgba(0,0,0,0.12); border:none; border-radius:999px; padding:0 22px; min-height:44px; cursor:pointer;">Annuler</button>
|
||
<div style="font-size:10px; color:rgba(0,0,0,0.3);">secondaire — fond translucide, pas un contour</div>
|
||
</div>
|
||
|
||
<div style="width:240px; background:#FFFFFF; border:1px solid #E2E4EA; border-radius:14px; padding:18px;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:15px; margin-bottom:6px;">Facturation</div>
|
||
<div style="font-size:13px; color:rgba(0,0,0,0.6); line-height:1.5;">Prochaine échéance dans 12 jours.</div>
|
||
<div style="display:inline-block; margin-top:12px; font-size:11px; font-weight:600; color:#0B6CFF; background:rgba(11,108,255,0.10); padding:3px 9px; border-radius:8px;">À jour</div>
|
||
</div>
|
||
|
||
<div style="display:flex; flex-direction:column; gap:6px; width:200px;">
|
||
<label style="font-size:12px; font-weight:600; color:rgba(0,0,0,0.6);">Adresse e-mail</label>
|
||
<input type="text" placeholder="vous@napps.fr" style="font-family:'Manrope',sans-serif; font-size:14px; padding:0 13px; min-height:44px; border:1.5px solid #0B6CFF; border-radius:12px; outline:none;" />
|
||
</div>
|
||
|
||
<div style="display:flex; background:rgba(0,0,0,0.12); border-radius:999px; padding:3px; gap:2px;">
|
||
<div style="font-size:13px; font-weight:600; padding:0 16px; min-height:38px; display:flex; align-items:center; border-radius:999px; background:#FFFFFF; color:#15171C; box-shadow:0 2px 10px rgba(0,0,0,0.06);">Aperçu</div>
|
||
<div style="font-size:13.3px; font-weight:510; padding:0 16px; min-height:38px; display:flex; align-items:center; border-radius:999px; color:#15171C;">Activité</div>
|
||
<div style="font-size:13.3px; font-weight:510; padding:0 16px; min-height:38px; display:flex; align-items:center; border-radius:999px; color:#15171C;">Réglages</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<!-- DEPTH & ICON -->
|
||
<div>
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:rgba(0,0,0,0.6); margin-bottom:6px;">Profondeur & signe hiérarchique</div>
|
||
<p style="font-size:13px; color:rgba(0,0,0,0.3); margin:0 0 16px; max-width:640px;">Une seule ombre douce, réservée aux surfaces réellement au-dessus du reste (popover, menu) — le reste du temps, un hairline suffit.</p>
|
||
<div style="display:flex; gap:32px; align-items:center;">
|
||
<div style="display:flex; flex-direction:column; gap:8px; align-items:center;">
|
||
<div style="width:80px; height:80px; border-radius:18px; background:#FFFFFF; border:1px solid #E2E4EA;"></div>
|
||
<div style="font-size:11px; color:rgba(0,0,0,0.3); text-align:center; max-width:120px;">Surface normale — hairline seul</div>
|
||
</div>
|
||
<div style="display:flex; flex-direction:column; gap:8px; align-items:center;">
|
||
<div style="width:80px; height:80px; border-radius:18px; background:#FFFFFF; box-shadow:0 8px 15px rgba(0,0,0,0.03);"></div>
|
||
<div style="font-size:11px; color:rgba(0,0,0,0.3); text-align:center; max-width:120px;">Surface flottante (popover) — ombre quasi imperceptible, valeur réelle vérifiée</div>
|
||
</div>
|
||
<div style="display:flex; flex-direction:column; gap:8px; align-items:center;">
|
||
<svg viewBox="0 0 24 24" width="56" height="56" fill="none">
|
||
<rect x="3" y="13" width="4" height="8" rx="2" fill="#0B6CFF"/>
|
||
<rect x="10" y="8" width="4" height="13" rx="2" fill="#0B6CFF" opacity="0.55"/>
|
||
<rect x="17" y="4" width="4" height="17" rx="2" fill="#0B6CFF" opacity="0.3"/>
|
||
</svg>
|
||
<div style="font-size:11px; color:rgba(0,0,0,0.3); text-align:center; max-width:150px;">Signe maison — rendu hiérarchique (opacité dégressive), grille cohérente avec le poids du texte</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</x-dc>
|
||
</body>
|
||
</html>
|