Exemple complet
Copiez le document ci-dessous comme modèle de départ pour votre propre projet. Chaque référence {token} est résolue et toutes les paires couleur de premier plan/arrière-plan passent le contraste WCAG AA (>= 4,5:1) dans le Validateur DesignMD Pro.
---
version: alpha
name: Meridian Workspace
description: High-clarity product interface built on warm paper neutrals, indigo primary actions, and crisp hairline borders.
colors:
primary: "#4338ca"
on-primary: "#ffffff"
secondary: "#52525b"
accent: "#b45309"
background: "#ffffff"
surface: "#f6f5f4"
text: "#18181b"
text-muted: "#52525b"
border: "#e5e3df"
dark:
primary: "#818cf8"
on-primary: "#0f172a"
background: "#0f172a"
surface: "#1e293b"
text: "#f8fafc"
text-muted: "#94a3b8"
border: "#334155"
typography:
headline-display:
fontFamily: Inter
fontSize: 40px
fontWeight: 600
lineHeight: 1.15
letterSpacing: -0.02em
headline-section:
fontFamily: Inter
fontSize: 24px
fontWeight: 600
lineHeight: 1.25
letterSpacing: -0.015em
body-md:
fontFamily: Inter
fontSize: 16px
fontWeight: 400
lineHeight: 1.6
label-md:
fontFamily: Inter
fontSize: 14px
fontWeight: 500
lineHeight: 1.4
code-sm:
fontFamily: JetBrains Mono
fontSize: 13px
fontWeight: 400
lineHeight: 1.5
rounded:
sm: 4px
md: 8px
lg: 12px
full: 9999px
spacing:
xs: 4px
sm: 8px
md: 16px
lg: 24px
xl: 48px
motion:
hover-quick:
duration: 150ms
timingFunction: cubic-bezier(0.2, 0, 0, 1)
panel-enter:
duration: 220ms
delay: 0ms
timingFunction: ease-out
components:
button-primary:
backgroundColor: "{colors.primary}"
textColor: "{colors.on-primary}"
typography: "{typography.label-md}"
rounded: "{rounded.md}"
padding: 12px
button-primary-hover:
backgroundColor: "#3730a3"
textColor: "{colors.on-primary}"
typography: "{typography.label-md}"
rounded: "{rounded.md}"
padding: 12px
card-surface:
backgroundColor: "{colors.surface}"
textColor: "{colors.text}"
rounded: "{rounded.lg}"
padding: 24px
---
## Overview
Meridian Workspace prioritizes information density without visual noise. Content sits on crisp white canvases separated by warm gray surfaces (`#f6f5f4`) and `1px` structural hairlines rather than heavy drop shadows.
## Colors
- **Primary (`#4338ca` / `on-primary` `#ffffff`):** Reserved strictly for primary CTAs, active navigation indicators, and focus rings.
- **Background (`#ffffff`) & Surface (`#f6f5f4`):** Use white as the default page canvas and `surface` for secondary sidebars, callouts, and table headers.
- **Text (`#18181b`) & Muted Text (`#52525b`):** Maintain at least WCAG AA (`4.5:1`) contrast across both `background` and `surface`.
- **Dark Mode:** Map `colors.dark.*` into `.dark` overrides; avoid inverting brand hues blindly.
## Typography
- Pair **Inter** for interface copy and headings with **JetBrains Mono** for tokens, API paths, and tabular metrics.
- Constrain long-form prose to `68ch` max measure (`body-md`, `16px`, `1.6` line height).
- Enable `tabular-nums` inside pricing tables and numeric status badges.
## Layout
- Max desktop container width is `1280px` with `24px` horizontal gutter on desktop and `16px` on mobile.
- Keep vertical rhythm snapped to multiples of `8px` (`sm`, `md`, `lg`, `xl`).
- Let comparison tables and code blocks expand to the full inner container width.
## Elevation & Depth
- Use `1px solid {colors.border}` hairlines instead of drop shadows for cards, sidebars, and panels.
- Reserve layered elevation (`box-shadow`) strictly for floating popovers, command palettes, and modal dialogs.
## Shapes
- Use `{rounded.sm}` (`4px`) for inline badges and keyboard shortcut tags.
- Use `{rounded.md}` (`8px`) for buttons, form inputs, and navigation items.
- Use `{rounded.lg}` (`12px`) for cards and modal containers; reserve `{rounded.full}` for pills and user avatars.
## Motion & Micro-interaction
- Apply `{motion.hover-quick}` (`150ms`) to color and border transitions on interactive controls.
- Use `{motion.panel-enter}` (`220ms`) for drawers and dialogs, and disable non-essential transforms under `prefers-reduced-motion: reduce`.
## Voice & Content Strategy
- Write concise, direct UI labels in sentence case (for example, `Copy tokens` instead of `Click here to copy your tokens`).
- Keep destructive confirmations explicit (`Delete API key`) and pair empty states with a single primary next step.
## Components
- **Primary Button (`button-primary`):** Minimum horizontal padding `16px`, `8px` icon-to-label gap, and `1px` transparent border so primary and outlined secondary buttons share identical heights.
- **Card Surface (`card-surface`):** Combine `{colors.surface}` or `{colors.background}` with a `1px solid {colors.border}` hairline and `24px` internal padding.
## Do's and Don'ts
- **Do** reuse defined tokens (`{colors.*}`, `{spacing.*}`, `{rounded.*}`) across every generated component.
- **Do** place dark-mode overrides inside `colors.dark` so code generators emit matching `.dark` rules.
- **Don't** introduce unapproved gradients, decorative purple glows, or arbitrary hex codes outside the palette.
- **Don't** center-align multi-paragraph descriptions or dashboard table columns.Essayer cet exemple dans DesignMD Pro
- Collez-le dans le Validateur pour inspecter la table des symboles et la matrice de contraste WCAG (
0erreur,0avertissement). - Exportez directement les feuilles de style avec le Générateur Tailwind v4, le Générateur de CSS Variables ou le Générateur de thème shadcn.
- Comparez avec des systèmes en production dans la Galerie Découvrir.
Last updated on