Initial commit — direction A4, design tokens, et package @napps/design-system

Direction artistique explorée (A1-A4), audit complet du kit Figma iOS 27
d'Apple pour calibrer les mécaniques du design system (hiérarchie de texte
par opacité, échelle de fills, deux familles de matière), tokens formalisés
dans tokens.css, et première version du package de composants React.
This commit is contained in:
2026-09-16 11:15:30 +02:00
commit 7878054b70
34 changed files with 26516 additions and 0 deletions
+174
View File
@@ -0,0 +1,174 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script src="./support.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap">
</head>
<body>
<x-dc>
<helmet>
<style>
* { box-sizing: border-box; }
body { margin: 0; background: #EDEEF1; }
a { color: #375FE0; text-decoration: none; }
a:hover { color: #2A49B3; }
</style>
</helmet>
<div style="width:1160px; padding:56px; background:#F7F8FA; font-family:'IBM Plex Sans',sans-serif; color:#16181C;">
<!-- HEADER -->
<div style="display:flex; flex-direction:column; gap:6px; padding-bottom:36px; border-bottom:1px solid #E4E6EA; margin-bottom:40px;">
<div style="font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:#62636B;">A2 — Précision / Cobalt</div>
<h1 style="font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:36px; margin:0; letter-spacing:-0.01em;">Même rigueur, accent plus froid.</h1>
<p style="font-size:15px; line-height:1.6; color:#62636B; margin:4px 0 0; max-width:680px;">Même socle que A1 (typographie, densité, structure) — seul l'accent change : un cobalt profond plutôt qu'un émeraude, plus proche du bleu système d'Apple mais désaturé pour rester premium et non générique.</p>
</div>
<!-- PALETTE -->
<div style="margin-bottom:40px;">
<div style="font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:#62636B; margin-bottom:16px;">Palette — Light / Dark</div>
<div style="display:flex; flex-direction:column; gap:14px;">
<div style="display:flex; align-items:center; gap:16px;">
<div style="width:54px; font-family:'IBM Plex Mono',monospace; font-size:11px; color:#9A9BA3;">Light</div>
<div style="display:flex; gap:10px; flex-grow:1;">
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#F7F8FA; border:1px solid #E4E6EA;"></div>
<div style="font-size:10px; color:#9A9BA3;">Fond</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#FFFFFF; border:1px solid #E4E6EA;"></div>
<div style="font-size:10px; color:#9A9BA3;">Surface</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#16181C;"></div>
<div style="font-size:10px; color:#9A9BA3;">Texte</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#62636B;"></div>
<div style="font-size:10px; color:#9A9BA3;">Texte 2</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#375FE0;"></div>
<div style="font-size:10px; color:#9A9BA3;">Accent</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#1C9C6B;"></div>
<div style="font-size:10px; color:#9A9BA3;">Succès</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#C7821A;"></div>
<div style="font-size:10px; color:#9A9BA3;">Attention</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#D1453B;"></div>
<div style="font-size:10px; color:#9A9BA3;">Erreur</div>
</div>
</div>
</div>
<div style="display:flex; align-items:center; gap:16px; padding:14px; background:#16181C; border-radius:10px;">
<div style="width:54px; font-family:'IBM Plex Mono',monospace; font-size:11px; color:#9A9BA3;">Dark</div>
<div style="display:flex; gap:10px; flex-grow:1;">
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#16181C; border:1px solid #2C2F35;"></div>
<div style="font-size:10px; color:#9A9BA3;">Fond</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#1E2024; border:1px solid #2C2F35;"></div>
<div style="font-size:10px; color:#9A9BA3;">Surface</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#F2F3F5;"></div>
<div style="font-size:10px; color:#9A9BA3;">Texte</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#9A9BA3;"></div>
<div style="font-size:10px; color:#9A9BA3;">Texte 2</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#6E8CFA;"></div>
<div style="font-size:10px; color:#9A9BA3;">Accent</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#35C98B;"></div>
<div style="font-size:10px; color:#9A9BA3;">Succès</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#E3A23F;"></div>
<div style="font-size:10px; color:#9A9BA3;">Attention</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; align-items:center;">
<div style="width:52px; height:52px; border-radius:8px; background:#F06A5F;"></div>
<div style="font-size:10px; color:#9A9BA3;">Erreur</div>
</div>
</div>
</div>
</div>
</div>
<!-- TYPOGRAPHY -->
<div style="margin-bottom:40px; padding-bottom:36px; border-bottom:1px solid #E4E6EA;">
<div style="font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:#62636B; margin-bottom:16px;">Typographie — inchangée</div>
<div style="display:flex; gap:40px;">
<div style="flex-grow:1;">
<div style="font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:44px; letter-spacing:-0.01em; line-height:1.1;">Espace Grotesk</div>
<div style="font-size:12px; color:#9A9BA3; margin-top:8px;">Titres — identique à A1, la variation porte uniquement sur la couleur.</div>
</div>
<div style="flex-grow:1;">
<div style="font-family:'IBM Plex Sans',sans-serif; font-size:15px; line-height:1.7; color:#3A3B41;">IBM Plex Sans — texte courant, inchangé. La cohérence typographique reste la colonne vertébrale de toute la famille A.</div>
<div style="font-size:12px; color:#9A9BA3; margin-top:8px;">Texte — identique à A1.</div>
</div>
</div>
</div>
<!-- COMPONENTS -->
<div style="margin-bottom:40px; padding-bottom:36px; border-bottom:1px solid #E4E6EA;">
<div style="font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:#62636B; margin-bottom:16px;">Composants</div>
<div style="display:flex; gap:24px; align-items:flex-start;">
<button style="font-family:'IBM Plex Sans',sans-serif; font-weight:500; font-size:14px; color:#FFFFFF; background:#375FE0; border:none; border-radius:8px; padding:11px 20px; cursor:pointer;">Créer un projet</button>
<div style="width:240px; background:#FFFFFF; border:1px solid #E4E6EA; border-radius:12px; padding:18px; box-shadow:0 1px 2px rgba(15,20,25,0.04);">
<div style="font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:15px; margin-bottom:6px;">Facturation</div>
<div style="font-size:13px; color:#62636B; line-height:1.5;">Prochaine échéance dans 12 jours.</div>
<div style="display:inline-block; margin-top:12px; font-size:11px; font-weight:500; color:#375FE0; background:#E7EDFC; padding:3px 8px; border-radius:5px;">À jour</div>
</div>
<div style="display:flex; flex-direction:column; gap:6px; width:200px;">
<label style="font-size:12px; font-weight:500; color:#3A3B41;">Adresse e-mail</label>
<input type="text" placeholder="vous@napps.fr" style="font-family:'IBM Plex Sans',sans-serif; font-size:14px; padding:9px 12px; border:1px solid #375FE0; border-radius:8px; outline:none;" />
</div>
<div style="display:flex; background:#EDEEF1; border-radius:9px; padding:3px; gap:2px;">
<div style="font-size:13px; font-weight:500; padding:7px 14px; border-radius:7px; background:#FFFFFF; color:#16181C; box-shadow:0 1px 2px rgba(15,20,25,0.06);">Aperçu</div>
<div style="font-size:13px; font-weight:500; padding:7px 14px; border-radius:7px; color:#62636B;">Activité</div>
<div style="font-size:13px; font-weight:500; padding:7px 14px; border-radius:7px; color:#62636B;">Réglages</div>
</div>
</div>
</div>
<!-- DEPTH & ICON -->
<div>
<div style="font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:#62636B; margin-bottom:16px;">Profondeur &amp; signe</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:8px; background:#FFFFFF; border:1px solid #E4E6EA; box-shadow:0 1px 2px rgba(15,20,25,0.04);"></div>
<div style="font-size:11px; color:#9A9BA3;">Rayon 8px · inchangé</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="1" fill="#375FE0"/>
<rect x="10" y="8" width="4" height="13" rx="1" fill="#375FE0"/>
<rect x="17" y="4" width="4" height="17" rx="1" fill="#375FE0"/>
</svg>
<div style="font-size:11px; color:#9A9BA3;">Signe maison — même mark, couleur cobalt</div>
</div>
</div>
</div>
</div>
</x-dc>
</body>
</html>