When to Use
- Use when: starting a new project with no design tokens defined
- Use when: user asks "what design system should I use for a [type] app?"
- Use when: user says "set up colors and fonts for this project"
- Do NOT use when: design tokens already exist — extend or refactor them instead
- Do NOT use when: an aesthetic anchor has already been set — use
aesthetic-anchor to derive tokens from that anchor instead
Product Type Reference
Choose the product category first — it determines the emotional register of the system.
| Type |
Tone |
Color tendency |
Typography |
| SaaS / Dev Tool |
Confident, precise |
Neutral base + one blue/violet accent |
Inter, Geist, DM Sans |
| Fintech / Finance |
Trustworthy, stable |
Deep navy + gold or green accent |
Sora, IBM Plex Sans |
| Healthcare |
Calm, clear, reassuring |
Soft blue/teal + high contrast text |
Source Sans, Nunito |
| E-commerce |
Energetic, conversion-focused |
Brand color + high-contrast CTA |
Poppins, Plus Jakarta Sans |
| Creative / Portfolio |
Expressive, distinctive |
Monochrome + one bold accent or full aesthetic anchor |
Clash Display, Cabinet Grotesk |
| Marketplace |
Friendly, trustworthy |
Warm neutral + accent |
Outfit, Manrope |
| AI / Data |
Intelligent, technical |
Dark with electric blue/green |
Space Grotesk, Geist Mono |
| Lifestyle / Wellness |
Warm, human, approachable |
Warm pastels + muted tones |
Lato, Raleway, Quicksand |
How It Works
- Identify product type — ask if not stated
- Choose aesthetic register (see table above)
- Generate the 5 token layers in order
- Validate against WCAG AA — text/background contrast ≥ 4.5:1
- Output as CSS custom properties — or Tailwind config if requested
The 5 Token Layers
Layer 1 — Color
--color-bg-base: (page background)
--color-bg-surface: (card, panel — slightly elevated from base)
--color-bg-overlay: (modal, tooltip — highest elevation)
--color-text-primary: (headings, main content)
--color-text-secondary:(labels, captions — lower contrast)
--color-text-muted: (placeholders, disabled)
--color-accent: (primary action, links, active states)
--color-accent-hover: (10-15% darker than accent)
--color-danger: (errors, destructive actions — #E53E3E baseline)
--color-success: (confirmations — #38A169 baseline)
--color-warning: (caution — #D69E2E baseline)
--color-border: (dividers, input borders)
Layer 2 — Typography
--font-display: (headings — personality font)
--font-body: (body copy — readable font)
--font-mono: (code, data — monospace)
--text-xs: 0.75rem / line-height: 1.0rem
--text-sm: 0.875rem / line-height: 1.25rem
--text-base: 1rem / line-height: 1.5rem
--text-lg: 1.125rem / line-height: 1.75rem
--text-xl: 1.25rem / line-height: 1.75rem
--text-2xl: 1.5rem / line-height: 2rem
--text-3xl: 1.875rem / line-height: 2.25rem
--text-4xl: 2.25rem / line-height: 2.5rem
Layer 3 — Spacing
4px base unit. All values are multiples.
--space-1: 4px --space-2: 8px --space-3: 12px --space-4: 16px
--space-5: 20px --space-6: 24px --space-8: 32px --space-10: 40px
--space-12: 48px --space-16: 64px --space-20: 80px --space-24: 96px
Layer 4 — Elevation (Shadows)
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05)
--shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05)
--shadow-lg: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05)
--shadow-xl: 0 20px 25px rgba(0,0,0,0.10), 0 10px 10px rgba(0,0,0,0.04)
Layer 5 — Shape
--radius-sm: 4px (inputs, small badges)
--radius-md: 8px (cards, buttons)
--radius-lg: 12px (panels, modals)
--radius-xl: 16px (large cards)
--radius-full: 9999px (pills, avatars)
Output Format
Output in this order:
- Product type identified + rationale (2 sentences)
- Complete
:root { } block with all tokens filled in
- Font import line (Google Fonts or system stack)
- Contrast check: text-primary on bg-base ratio (must be ≥ 4.5:1)
/* Design System — [Product Type] | [Tone] */
/* Generated by YAMTAM design-system-gen */
@import url('...'); /* font import */
:root {
/* Color */
--color-bg-base: ...;
...
/* Typography */
--font-display: ...;
...
/* Spacing — 4px base */
--space-1: 4px;
...
/* Elevation */
--shadow-sm: ...;
...
/* Shape */
--radius-md: 8px;
...
}
/* Contrast check: --color-text-primary on --color-bg-base = X.X:1 ✓/✗ */
Gotchas
- Never use pure black (#000000) for body text — use #1A1A1A or #111827 for softer reading
- Never use pure white (#FFFFFF) for backgrounds in wellness/organic products — use a warm off-white
- Accent color must work on both light and dark surfaces — verify both contrast ratios
- If adapting this system to Tailwind: map tokens to
extend.colors and extend.fontFamily, not override
- Healthcare: avoid red as accent — red triggers alarm responses; use teal or blue instead
Anti-Fake-Pass Rules
Before claiming the design system is done, you MUST show:
Reference: gates/anti-fake-pass-gate.md | gates/ui-quality-gate.md
1---
2name: design-system-gen
3description: >
4 Generate a complete design token system for a new project — color palette,
5 typography scale, spacing, shadows, and border radius — tailored to the
6 product type (SaaS, e-commerce, healthcare, fintech, creative, etc.).
7 Use when starting a new project with no design system, when the user asks
8 to "set up design tokens", "create a design system", or "what colors/fonts
9 should I use for a [product type]".
10 Do NOT use when the project already has tokens — use ui-redesign instead.
11origin: adapted:ui-ux-pro-max
12license: MIT © 2026 nextlevelbuilder
13version: 1.0.0
14compatibility: "Outputs CSS custom properties. Adaptable to Tailwind config, Figma tokens, or JS theme objects."
15metadata:
16 source: https://skillmd.com/skills/yanacuti1121/design-system-gen
17---
18
19<!-- Adapted from nextlevelbuilder/ui-ux-pro-max-skill (MIT) — product-type taxonomy and
20 design system generation concept. All content written original for YAMTAM.
21 No Python code or search engine logic ported. -->
22
23## When to Use
24
25- Use when: starting a new project with no design tokens defined
26- Use when: user asks "what design system should I use for a [type] app?"
27- Use when: user says "set up colors and fonts for this project"
28- Do NOT use when: design tokens already exist — extend or refactor them instead
29- Do NOT use when: an aesthetic anchor has already been set — use `aesthetic-anchor` to derive tokens from that anchor instead
30
31## Product Type Reference
32
33Choose the product category first — it determines the emotional register of the system.
34
35| Type | Tone | Color tendency | Typography |
36|------|------|----------------|------------|
37| **SaaS / Dev Tool** | Confident, precise | Neutral base + one blue/violet accent | Inter, Geist, DM Sans |
38| **Fintech / Finance** | Trustworthy, stable | Deep navy + gold or green accent | Sora, IBM Plex Sans |
39| **Healthcare** | Calm, clear, reassuring | Soft blue/teal + high contrast text | Source Sans, Nunito |
40| **E-commerce** | Energetic, conversion-focused | Brand color + high-contrast CTA | Poppins, Plus Jakarta Sans |
41| **Creative / Portfolio** | Expressive, distinctive | Monochrome + one bold accent or full aesthetic anchor | Clash Display, Cabinet Grotesk |
42| **Marketplace** | Friendly, trustworthy | Warm neutral + accent | Outfit, Manrope |
43| **AI / Data** | Intelligent, technical | Dark with electric blue/green | Space Grotesk, Geist Mono |
44| **Lifestyle / Wellness** | Warm, human, approachable | Warm pastels + muted tones | Lato, Raleway, Quicksand |
45
46## How It Works
47
481. **Identify product type** — ask if not stated
492. **Choose aesthetic register** (see table above)
503. **Generate the 5 token layers** in order
514. **Validate against WCAG AA** — text/background contrast ≥ 4.5:1
525. **Output as CSS custom properties** — or Tailwind config if requested
53
54## The 5 Token Layers
55
56### Layer 1 — Color
57```
58--color-bg-base: (page background)
59--color-bg-surface: (card, panel — slightly elevated from base)
60--color-bg-overlay: (modal, tooltip — highest elevation)
61--color-text-primary: (headings, main content)
62--color-text-secondary:(labels, captions — lower contrast)
63--color-text-muted: (placeholders, disabled)
64--color-accent: (primary action, links, active states)
65--color-accent-hover: (10-15% darker than accent)
66--color-danger: (errors, destructive actions — #E53E3E baseline)
67--color-success: (confirmations — #38A169 baseline)
68--color-warning: (caution — #D69E2E baseline)
69--color-border: (dividers, input borders)
70```
71
72### Layer 2 — Typography
73```
74--font-display: (headings — personality font)
75--font-body: (body copy — readable font)
76--font-mono: (code, data — monospace)
77
78--text-xs: 0.75rem / line-height: 1.0rem
79--text-sm: 0.875rem / line-height: 1.25rem
80--text-base: 1rem / line-height: 1.5rem
81--text-lg: 1.125rem / line-height: 1.75rem
82--text-xl: 1.25rem / line-height: 1.75rem
83--text-2xl: 1.5rem / line-height: 2rem
84--text-3xl: 1.875rem / line-height: 2.25rem
85--text-4xl: 2.25rem / line-height: 2.5rem
86```
87
88### Layer 3 — Spacing
89```
904px base unit. All values are multiples.
91--space-1: 4px --space-2: 8px --space-3: 12px --space-4: 16px
92--space-5: 20px --space-6: 24px --space-8: 32px --space-10: 40px
93--space-12: 48px --space-16: 64px --space-20: 80px --space-24: 96px
94```
95
96### Layer 4 — Elevation (Shadows)
97```
98--shadow-sm: 0 1px 2px rgba(0,0,0,0.05)
99--shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05)
100--shadow-lg: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05)
101--shadow-xl: 0 20px 25px rgba(0,0,0,0.10), 0 10px 10px rgba(0,0,0,0.04)
102```
103
104### Layer 5 — Shape
105```
106--radius-sm: 4px (inputs, small badges)
107--radius-md: 8px (cards, buttons)
108--radius-lg: 12px (panels, modals)
109--radius-xl: 16px (large cards)
110--radius-full: 9999px (pills, avatars)
111```
112
113## Output Format
114
115Output in this order:
1161. Product type identified + rationale (2 sentences)
1172. Complete `:root { }` block with all tokens filled in
1183. Font import line (Google Fonts or system stack)
1194. Contrast check: text-primary on bg-base ratio (must be ≥ 4.5:1)
120
121```css
122/* Design System — [Product Type] | [Tone] */
123/* Generated by YAMTAM design-system-gen */
124
125@import url('...'); /* font import */
126
127:root {
128 /* Color */
129 --color-bg-base: ...;
130 ...
131
132 /* Typography */
133 --font-display: ...;
134 ...
135
136 /* Spacing — 4px base */
137 --space-1: 4px;
138 ...
139
140 /* Elevation */
141 --shadow-sm: ...;
142 ...
143
144 /* Shape */
145 --radius-md: 8px;
146 ...
147}
148
149/* Contrast check: --color-text-primary on --color-bg-base = X.X:1 ✓/✗ */
150```
151
152## Gotchas
153
154- Never use pure black (#000000) for body text — use #1A1A1A or #111827 for softer reading
155- Never use pure white (#FFFFFF) for backgrounds in wellness/organic products — use a warm off-white
156- Accent color must work on both light and dark surfaces — verify both contrast ratios
157- If adapting this system to Tailwind: map tokens to `extend.colors` and `extend.fontFamily`, not override
158- Healthcare: avoid red as accent — red triggers alarm responses; use teal or blue instead
159
160## Anti-Fake-Pass Rules
161
162Before claiming the design system is done, you MUST show:
163- [ ] Product type identified and stated
164- [ ] All 5 layers output — no layer skipped
165- [ ] Contrast ratio shown for text-primary on bg-base (number, not just "✓")
166- [ ] Font names are real, loadable fonts (Google Fonts, system stack, or specified CDN)
167
168Reference: `gates/anti-fake-pass-gate.md` | `gates/ui-quality-gate.md`