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.
161 lines
13 KiB
HTML
Executable File
161 lines
13 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: #0D0E12; }
|
||
a { color: #4C93FF; text-decoration: none; }
|
||
a:hover { color: #7CB0FF; }
|
||
</style>
|
||
</helmet>
|
||
<div style="width:1160px; padding:60px; background:#15171C; font-family:'Manrope',sans-serif; color:#F2F3F6;">
|
||
|
||
<!-- HEADER -->
|
||
<div style="display:flex; flex-direction:column; gap:6px; padding-bottom:36px; border-bottom:1px solid #2A2D34; margin-bottom:40px;">
|
||
<div style="font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:rgba(255,255,255,0.6);">A4 — Précision / Vibrance — Dark — révisée HIG</div>
|
||
<h1 style="font-family:'Manrope',sans-serif; font-weight:800; font-size:38px; margin:0; letter-spacing:-0.02em;">Même logique, en obscurité.</h1>
|
||
<p style="font-size:15px; line-height:1.6; color:rgba(255,255,255,0.6); margin:4px 0 0; max-width:740px;">Les couches de couleur s'inversent : chaque niveau de surface devient <em>plus clair</em>, jamais plus sombre, à mesure qu'il s'élève. Et les tokens de fill eux-mêmes changent de valeur entre les deux thèmes — 0.12 en light devient 0.16 en dark, pas juste "la même valeur sur fond sombre".</p>
|
||
</div>
|
||
|
||
<!-- COLOR & ELEVATION LAYERS -->
|
||
<div style="margin-bottom:40px; padding-bottom:36px; border-bottom:1px solid #2A2D34;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:rgba(255,255,255,0.6); margin-bottom:6px;">Couches de couleur — élévation par éclaircissement</div>
|
||
<p style="font-size:13px; color:rgba(255,255,255,0.3); margin:0 0 16px; max-width:640px;">Fond → surface groupée → surface imbriquée : chaque niveau est plus clair que le précédent, séparé par un trait de 1px.</p>
|
||
<div style="background:#15171C; border:1px solid #2A2D34; border-radius:16px; padding:16px; max-width:560px;">
|
||
<div style="font-size:11px; font-weight:600; color:rgba(255,255,255,0.6); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:10px;">Fond de page — #15171C</div>
|
||
<div style="background:#1D1F26; border:1px solid #2A2D34; border-radius:12px; padding:14px;">
|
||
<div style="font-size:11px; font-weight:600; color:rgba(255,255,255,0.6); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:10px;">Surface groupée — #1D1F26</div>
|
||
<div style="background:#262930; border-radius:9px; padding:12px; font-size:13px; color:rgba(255,255,255,0.6);">Surface imbriquée — #262930</div>
|
||
</div>
|
||
</div>
|
||
<div style="display:flex; gap:12px; margin-top:14px;">
|
||
<div style="flex-grow:1; background:#1D1F26; border:1px solid #2A2D34; border-radius:12px; padding:12px 14px; display:flex; align-items:center; gap:8px;">
|
||
<div style="width:8px; height:8px; border-radius:50%; background:#43C283;"></div>
|
||
<div style="font-size:12px; color:#F2F3F6;">Succès</div>
|
||
</div>
|
||
<div style="flex-grow:1; background:#1D1F26; border:1px solid #2A2D34; border-radius:12px; padding:12px 14px; display:flex; align-items:center; gap:8px;">
|
||
<div style="width:8px; height:8px; border-radius:50%; background:#E8AC52;"></div>
|
||
<div style="font-size:12px; color:#F2F3F6;">Attention</div>
|
||
</div>
|
||
<div style="flex-grow:1; background:#1D1F26; border:1px solid #2A2D34; border-radius:12px; padding:12px 14px; display:flex; align-items:center; gap:8px;">
|
||
<div style="width:8px; height:8px; border-radius:50%; background:#F17B70;"></div>
|
||
<div style="font-size:12px; color:#F2F3F6;">Erreur</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- TYPE SCALE -->
|
||
<div style="margin-bottom:40px; padding-bottom:36px; border-bottom:1px solid #2A2D34;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:rgba(255,255,255,0.6); margin-bottom:6px;">Échelle typographique — hiérarchie par le poids</div>
|
||
<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(255,255,255,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:17px; flex-grow:1;">En-tête de liste</div>
|
||
<div style="font-family:'IBM Plex Mono',monospace; font-size:11px; color:rgba(255,255,255,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(255,255,255,0.6); flex-grow:1;">Corps de texte — même taille, poids différent</div>
|
||
<div style="font-family:'IBM Plex Mono',monospace; font-size:11px; color:rgba(255,255,255,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(255,255,255,0.6); flex-grow:1;">Note de bas de bloc</div>
|
||
<div style="font-family:'IBM Plex Mono',monospace; font-size:11px; color:rgba(255,255,255,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 #2A2D34;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:rgba(255,255,255,0.6); margin-bottom:6px;">Matière & vibrancy — recette calibrée sur le vrai verre liquide</div>
|
||
<p style="font-size:13px; color:rgba(255,255,255,0.3); margin:0 0 16px; max-width:680px;">Même recette qu'en light — flou à 46px, pilule, pas de bordure visible — le contraste des rehauts internes s'inverse pour rester lisible sur fond sombre.</p>
|
||
<div style="position:relative; height:180px; border-radius:16px; overflow:hidden; background:#1D1F26; border:1px solid #2A2D34;">
|
||
<div style="display:flex; gap:10px; padding:16px; overflow:hidden;">
|
||
<div style="min-width:120px; height:70px; border-radius:10px; background:linear-gradient(135deg,#7C3F35,#B94A3A);"></div>
|
||
<div style="min-width:120px; height:70px; border-radius:10px; background:linear-gradient(135deg,#1E4E6B,#1F6FB0);"></div>
|
||
<div style="min-width:120px; height:70px; border-radius:10px; background:linear-gradient(135deg,#7A5A16,#B4841F);"></div>
|
||
<div style="min-width:120px; height:70px; border-radius:10px; background:linear-gradient(135deg,#215C3B,#2E8A57);"></div>
|
||
<div style="min-width:120px; height:70px; border-radius:10px; background:linear-gradient(135deg,#4B2D66,#7A47A6);"></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(38,41,48,0.5); backdrop-filter:blur(46px) saturate(1.4); -webkit-backdrop-filter:blur(46px) saturate(1.4); border-radius:999px; padding:5px; gap:2px; box-shadow:inset 0 1px 0 rgba(255,255,255,0.06), inset 0 -1px 0 rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.35);">
|
||
<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.12); color:#F2F3F6;">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(255,255,255,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(255,255,255,0.6);">Réglages</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- COMPONENTS -->
|
||
<div style="margin-bottom:40px; padding-bottom:36px; border-bottom:1px solid #2A2D34;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:rgba(255,255,255,0.6); margin-bottom:6px;">Composants — cibles tactiles 44×44pt</div>
|
||
<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:#4C93FF; 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(255,255,255,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:#4C93FF; background:rgba(255,255,255,0.16); border:none; border-radius:999px; padding:0 22px; min-height:44px; cursor:pointer;">Annuler</button>
|
||
<div style="font-size:10px; color:rgba(255,255,255,0.3);">secondaire — 0.16 en dark (2× le light)</div>
|
||
</div>
|
||
|
||
<div style="width:240px; background:#1D1F26; border:1px solid #2A2D34; border-radius:14px; padding:18px;">
|
||
<div style="font-family:'Manrope',sans-serif; font-weight:700; font-size:15px; margin-bottom:6px; color:#F2F3F6;">Facturation</div>
|
||
<div style="font-size:13px; color:rgba(255,255,255,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:#4C93FF; background:rgba(76,147,255,0.14); 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(255,255,255,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 #4C93FF; border-radius:12px; outline:none; background:#1D1F26; color:#F2F3F6;" />
|
||
</div>
|
||
|
||
<div style="display:flex; background:rgba(255,255,255,0.16); 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:#3A3E48; color:#F2F3F6; box-shadow:0 2px 10px rgba(0,0,0,0.3);">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:#F2F3F6;">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:#F2F3F6;">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(255,255,255,0.6); margin-bottom:6px;">Profondeur & signe hiérarchique</div>
|
||
<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:#1D1F26; border:1px solid #2A2D34;"></div>
|
||
<div style="font-size:11px; color:rgba(255,255,255,0.6); 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:#262930; box-shadow:0 8px 20px rgba(0,0,0,0.35);"></div>
|
||
<div style="font-size:11px; color:rgba(255,255,255,0.6); text-align:center; max-width:120px;">Surface flottante (popover) — ombre douce, un peu plus marquée qu'en light pour rester lisible</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="#4C93FF"/>
|
||
<rect x="10" y="8" width="4" height="13" rx="2" fill="#4C93FF" opacity="0.55"/>
|
||
<rect x="17" y="4" width="4" height="17" rx="2" fill="#4C93FF" opacity="0.3"/>
|
||
</svg>
|
||
<div style="font-size:11px; color:rgba(255,255,255,0.6); text-align:center; max-width:150px;">Signe maison — même rendu hiérarchique, accent éclairci</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</x-dc>
|
||
</body>
|
||
</html>
|