Graphic Design Skill
Patterns for visual design, SVG creation, layout composition, typography, and brand identity.
Design Principles
Visual Hierarchy
| Level |
Purpose |
Techniques |
| Primary |
First thing seen |
Largest, boldest, highest contrast |
| Secondary |
Supporting info |
Medium size, moderate weight |
| Tertiary |
Details |
Smaller, lighter, subtle |
Hierarchy Tools
- Size — Larger = more important
- Weight — Bolder = more attention
- Color — High contrast = focal point
- Position — Top/center = primary
- Whitespace — Isolation = emphasis
Balance Types
| Type |
Characteristics |
Best For |
| Symmetrical |
Mirror image, formal |
Corporate, traditional |
| Asymmetrical |
Visual weight balanced, dynamic |
Modern, creative |
| Radial |
Elements radiate from center |
Logos, icons |
Layout & Composition
Grid Systems
┌─────┬─────┬─────┬─────┐
│ 1 │ 2 │ 3 │ 4 │ 12-column grid
├─────┼─────┼─────┼─────┤ (most flexible)
│ 5 │ 6 │ 7 │ 8 │
├─────┼─────┼─────┼─────┤
│ 9 │ 10 │ 11 │ 12 │
└─────┴─────┴─────┴─────┘
Golden Ratio (1:1.618)
- Use for proportions that feel "right"
- Width to height relationships
- Spacing progressions
- Element sizing
Rule of Thirds
┌─────────┬─────────┬─────────┐
│ │ ● │ │ Place key elements
├─────────┼─────────┼─────────┤ at intersection
│ ● │ │ ● │ points for dynamic
├─────────┼─────────┼─────────┤ composition
│ │ ● │ │
└─────────┴─────────┴─────────┘
Alignment Principles
| Principle |
Rule |
| Edge alignment |
Elements share common edges |
| Center alignment |
Elements share center axis |
| Baseline alignment |
Text shares baseline |
| Optical alignment |
Visually aligned (may differ from mathematical) |
Typography
Type Scale (1.25 ratio)
| Level |
Size |
Use |
| Display |
72px |
Hero headlines |
| H1 |
48px |
Page titles |
| H2 |
36px |
Section headers |
| H3 |
28px |
Subsections |
| Body |
16px |
Main content |
| Caption |
12px |
Supporting text |
Font Pairing Rules
| Combination |
Example |
Vibe |
| Serif + Sans |
Georgia + Helvetica |
Classic, professional |
| Sans + Sans |
Montserrat + Open Sans |
Modern, clean |
| Display + Body |
Playfair + Source Sans |
Elegant, editorial |
Typography Best Practices
- Line height: 1.4–1.6× font size for body
- Line length: 45–75 characters optimal
- Letter spacing: Increase for ALL CAPS
- Contrast: Dark on light or light on dark
- Hierarchy: Max 3 font sizes per design
Color Theory
Color Relationships
Primary
●
/|\
/ | \
/ | \
●───●───●
Secondary Tertiary
Color Schemes
| Scheme |
Description |
Mood |
| Monochromatic |
One hue, varied lightness |
Cohesive, elegant |
| Complementary |
Opposite on wheel |
High contrast, vibrant |
| Analogous |
Adjacent on wheel |
Harmonious, natural |
| Triadic |
Three equidistant |
Balanced, dynamic |
| Split-complementary |
Base + two adjacent to complement |
Softer contrast |
Color Psychology
| Color |
Associations |
Use Cases |
| Blue |
Trust, stability, tech |
Corporate, software |
| Green |
Growth, nature, success |
Health, finance |
| Red |
Energy, urgency, passion |
CTAs, alerts |
| Purple |
Creativity, luxury |
Premium, creative |
| Orange |
Friendly, energetic |
Social, youth |
| Yellow |
Optimism, attention |
Highlights, warnings |
Contrast & Accessibility
| WCAG Level |
Contrast Ratio |
Use |
| AA (normal) |
4.5:1 |
Body text |
| AA (large) |
3:1 |
18px+ or 14px bold |
| AAA |
7:1 |
Maximum accessibility |
Applying Color Theory to Mermaid Diagrams
Color theory principles translate directly to Mermaid diagram styling. The GitHub Pastel Palette v2 (defined in the markdown-mermaid skill) implements these principles:
Semantic Color Mapping (from color psychology):
| Semantic Purpose |
Palette Color |
Fill |
Text |
Stroke |
| Primary actions |
Blue |
#ddf4ff |
#0550ae |
#80ccff |
| Success/output |
Green |
#d3f5db |
#1a7f37 |
#6fdd8b |
| Business logic |
Gold |
#fff8c5 |
#9a6700 |
#d4a72c |
| Special/DevOps |
Purple |
#d8b9ff |
#6639ba |
#bf8aff |
| Errors/critical |
Red |
#ffebe9 |
#cf222e |
#f5a3a3 |
| Raw/ingestion |
Bronze |
#fff1e5 |
#953800 |
#ffb77c |
| Background |
Neutral |
#eaeef2 |
#24292f |
#d0d7de |
Design Principles Applied:
- Triadic harmony: Blue + Gold + Red form a balanced triad
- Analogous groups: Green + Blue are adjacent, creating calm flow sections
- Light fills + dark text: Ensures WCAG AA contrast (4.5:1+)
- Neutral arrows (
#57606a): Don't compete with colored nodes — visual hierarchy preserved
- Consistent stroke family: Each color has a matching mid-tone stroke (not jarring black borders)
When to Override the Palette:
- Diagrams comparing two systems → Use just 2 contrasting colors (complementary scheme)
- Status dashboards → Green/Yellow/Red RAG mapping
- Sequential processes → Monochromatic gradient (light to dark within one hue)
SVG Design
SVG Structure
<svg viewBox="0 0 width height" xmlns="...">
<defs>
<!-- Reusable definitions -->
<linearGradient id="grad1">...</linearGradient>
<filter id="shadow">...</filter>
</defs>
<!-- Background layer -->
<rect .../>
<!-- Main content -->
<g transform="translate(x, y)">
<!-- Grouped elements -->
</g>
<!-- Foreground/overlay -->
</svg>
Common SVG Elements
| Element |
Use |
Key Attributes |
<rect> |
Rectangles, backgrounds |
x, y, width, height, rx (rounded) |
<circle> |
Circles, dots |
cx, cy, r |
<ellipse> |
Ovals |
cx, cy, rx, ry |
<line> |
Straight lines |
x1, y1, x2, y2 |
<path> |
Complex shapes |
d (path data) |
<text> |
Typography |
x, y, text-anchor, dominant-baseline |
<g> |
Grouping |
transform |
SVG Path Commands
| Command |
Meaning |
Example |
| M |
Move to |
M 10 20 |
| L |
Line to |
L 30 40 |
| H |
Horizontal line |
H 50 |
| V |
Vertical line |
V 60 |
| Q |
Quadratic curve |
Q cx cy, x y |
| C |
Cubic curve |
C cx1 cy1, cx2 cy2, x y |
| Z |
Close path |
Z |
SVG Text Alignment
<!-- Horizontal alignment -->
text-anchor="start|middle|end"
<!-- Vertical alignment -->
dominant-baseline="auto|middle|central|hanging"
<!-- Centered text -->
<text x="50%" y="50%" text-anchor="middle" dominant-baseline="central">
Perfectly Centered
</text>
SVG Gradients
<!-- Linear gradient -->
<linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#007ACC"/>
<stop offset="100%" stop-color="#00a8e8"/>
</linearGradient>
<!-- Radial gradient -->
<radialGradient id="glow" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#007ACC" stop-opacity="0.4"/>
<stop offset="100%" stop-color="#007ACC" stop-opacity="0"/>
</radialGradient>
SVG Transforms
| Transform |
Syntax |
Use |
| Translate |
translate(x, y) |
Move element |
| Rotate |
rotate(deg, cx, cy) |
Spin around point |
| Scale |
scale(x, y) |
Resize |
| Skew |
skewX(deg) / skewY(deg) |
Shear |
Banner & Marketing Design
Banner Dimensions
| Platform |
Size |
Aspect |
| VS Code Marketplace |
1280×640 |
2:1 |
| GitHub Social |
1280×640 |
2:1 |
| Twitter Header |
1500×500 |
3:1 |
| LinkedIn Banner |
1584×396 |
4:1 |
| Open Graph |
1200×630 |
~1.9:1 |
Banner Composition
┌─────────────────────────────────────────┐
│ ┌─────────────────────────────────┐ │
│ │ VISUAL ELEMENT │ │ Top third: Logo/Icon
│ └─────────────────────────────────┘ │
│ │
│ MAIN HEADLINE │ Middle: Primary message
│ Subtitle Text │
│ │
│ [Badge 1] [Badge 2] [Badge 3] │ Bottom third: CTAs/Details
└─────────────────────────────────────────┘
Badge/Pill Design
<!-- Rounded pill badge -->
<g>
<rect x="-50" y="-16" width="100" height="32" rx="16"
fill="#007ACC" opacity="0.15"/>
<text x="0" y="0" text-anchor="middle" dominant-baseline="central"
font-size="12" fill="#94a3b8">Label</text>
</g>
Icon Design
Icon Grid
┌────────────────────┐
│ ┌──────────────┐ │ Outer: Padding zone
│ │ │ │ Inner: Safe area
│ │ CONTENT │ │ Content: Icon artwork
│ │ │ │
│ └──────────────┘ │ Standard: 24×24, 16×16
└────────────────────┘
Icon Principles
- Simplicity — Recognize at small sizes
- Consistency — Same stroke weight, style
- Optical balance — Visually centered, not mathematically
- Metaphor — Universally understood symbols
Icon Styles
| Style |
Characteristics |
Use |
| Outlined |
Stroke only, no fill |
Light, modern UI |
| Filled |
Solid shapes |
Bold, clear visibility |
| Duotone |
Two tones/colors |
Distinctive, branded |
| Glyph |
Single color, simplified |
System icons |
Design Systems
Spacing Scale (8px base)
| Token |
Value |
Use |
| xs |
4px |
Tight spacing |
| sm |
8px |
Default gap |
| md |
16px |
Section spacing |
| lg |
24px |
Component gaps |
| xl |
32px |
Major sections |
| 2xl |
48px |
Hero spacing |
Elevation/Shadow
| Level |
Shadow |
Use |
| 0 |
None |
Flat elements |
| 1 |
0 1px 2px |
Subtle lift |
| 2 |
0 2px 4px |
Cards |
| 3 |
0 4px 8px |
Dropdowns |
| 4 |
0 8px 16px |
Modals |
Border Radius Scale
| Token |
Value |
Use |
| none |
0 |
Sharp corners |
| sm |
4px |
Subtle rounding |
| md |
8px |
Standard buttons |
| lg |
16px |
Cards, pills |
| full |
9999px |
Circles, pills |
Illustration Principles
Universal principles for placing illustrations in any document — READMEs, docs, presentations, books.
Principle 1: Contextual Placement
An image should answer: "Why HERE?"
Place images at the exact moment they illustrate. An image that appears next to the content it depicts reinforces understanding; a decorative image placed arbitrarily adds noise.
Principle 2: Visual Variety
Readers should be surprised by each image, not numb to them.
Avoid repeating the same visual formula. Vary: composition, subject matter, perspective, color palette, and image type (diagram, screenshot, illustration, photo).
Principle 3: Narrative Function
Every illustration should serve one of these purposes:
| Function |
Description |
Example |
| Anchor |
Mark a pivotal moment or concept |
Architecture diagram at design section |
| Reveal |
Show something text describes |
Screenshot of the UI being discussed |
| Transition |
Signal a tonal or topic shift |
Banner between major sections |
| Character |
Deepen connection to a person/persona |
Avatar at persona introduction |
| Setting |
Establish context or environment |
Deployment diagram for infrastructure |
| Evidence |
Visual proof or data |
Chart, graph, or test results |
Principle 4: Format Consistency
HTML for precise control:
<p align="center">
<img src="assets/IMAGE.png" alt="Descriptive alt text" width="60%">
</p>
Width guidelines:
| Asset Type |
Width |
Use |
| Full-width banners |
100% |
Section headers, hero images |
| Feature illustrations |
60% |
In-content diagrams, screenshots |
| Spot illustrations |
40-50% |
Inline accents, small diagrams |
| Icons/badges |
20-30% |
Status indicators, inline elements |
Design Review Checklist
Visual Quality
Typography
Color
Technical
1---2name: graphic-design3description: Patterns for visual design, SVG creation, layout composition, typography, and brand identity.4---5
6# Graphic Design Skill
7
8
9> Patterns for visual design, SVG creation, layout composition, typography, and brand identity.
10
11## Design Principles
12
13### Visual Hierarchy
14
15| Level | Purpose | Techniques |
16| ----- | ------- | ---------- |
17| **Primary** | First thing seen | Largest, boldest, highest contrast |
18| **Secondary** | Supporting info | Medium size, moderate weight |
19| **Tertiary** | Details | Smaller, lighter, subtle |
20
21### Hierarchy Tools
22
23- **Size** — Larger = more important
24- **Weight** — Bolder = more attention
25- **Color** — High contrast = focal point
26- **Position** — Top/center = primary
27- **Whitespace** — Isolation = emphasis
28
29### Balance Types
30
31| Type | Characteristics | Best For |
32| ---- | --------------- | -------- |
33| **Symmetrical** | Mirror image, formal | Corporate, traditional |
34| **Asymmetrical** | Visual weight balanced, dynamic | Modern, creative |
35| **Radial** | Elements radiate from center | Logos, icons |
36
37## Layout & Composition
38
39### Grid Systems
40
41```text
42┌─────┬─────┬─────┬─────┐
43│ 1 │ 2 │ 3 │ 4 │ 12-column grid
44├─────┼─────┼─────┼─────┤ (most flexible)
45│ 5 │ 6 │ 7 │ 8 │
46├─────┼─────┼─────┼─────┤
47│ 9 │ 10 │ 11 │ 12 │
48└─────┴─────┴─────┴─────┘
49```
50
51### Golden Ratio (1:1.618)
52
53- Use for proportions that feel "right"
54- Width to height relationships
55- Spacing progressions
56- Element sizing
57
58### Rule of Thirds
59
60```text
61┌─────────┬─────────┬─────────┐
62│ │ ● │ │ Place key elements
63├─────────┼─────────┼─────────┤ at intersection
64│ ● │ │ ● │ points for dynamic
65├─────────┼─────────┼─────────┤ composition
66│ │ ● │ │
67└─────────┴─────────┴─────────┘
68```
69
70### Alignment Principles
71
72| Principle | Rule |
73| --------- | ---- |
74| **Edge alignment** | Elements share common edges |
75| **Center alignment** | Elements share center axis |
76| **Baseline alignment** | Text shares baseline |
77| **Optical alignment** | Visually aligned (may differ from mathematical) |
78
79## Typography
80
81### Type Scale (1.25 ratio)
82
83| Level | Size | Use |
84| ----- | ---- | --- |
85| Display | 72px | Hero headlines |
86| H1 | 48px | Page titles |
87| H2 | 36px | Section headers |
88| H3 | 28px | Subsections |
89| Body | 16px | Main content |
90| Caption | 12px | Supporting text |
91
92### Font Pairing Rules
93
94| Combination | Example | Vibe |
95| ----------- | ------- | ---- |
96| Serif + Sans | Georgia + Helvetica | Classic, professional |
97| Sans + Sans | Montserrat + Open Sans | Modern, clean |
98| Display + Body | Playfair + Source Sans | Elegant, editorial |
99
100### Typography Best Practices
101
102- **Line height**: 1.4–1.6× font size for body
103- **Line length**: 45–75 characters optimal
104- **Letter spacing**: Increase for ALL CAPS
105- **Contrast**: Dark on light or light on dark
106- **Hierarchy**: Max 3 font sizes per design
107
108## Color Theory
109
110### Color Relationships
111
112```text
113 Primary
114 ●
115 /|\
116 / | \
117 / | \
118 ●───●───●
119 Secondary Tertiary
120```
121
122### Color Schemes
123
124| Scheme | Description | Mood |
125| ------ | ----------- | ---- |
126| **Monochromatic** | One hue, varied lightness | Cohesive, elegant |
127| **Complementary** | Opposite on wheel | High contrast, vibrant |
128| **Analogous** | Adjacent on wheel | Harmonious, natural |
129| **Triadic** | Three equidistant | Balanced, dynamic |
130| **Split-complementary** | Base + two adjacent to complement | Softer contrast |
131
132### Color Psychology
133
134| Color | Associations | Use Cases |
135| ----- | ------------ | --------- |
136| **Blue** | Trust, stability, tech | Corporate, software |
137| **Green** | Growth, nature, success | Health, finance |
138| **Red** | Energy, urgency, passion | CTAs, alerts |
139| **Purple** | Creativity, luxury | Premium, creative |
140| **Orange** | Friendly, energetic | Social, youth |
141| **Yellow** | Optimism, attention | Highlights, warnings |
142
143### Contrast & Accessibility
144
145| WCAG Level | Contrast Ratio | Use |
146| ---------- | -------------- | --- |
147| AA (normal) | 4.5:1 | Body text |
148| AA (large) | 3:1 | 18px+ or 14px bold |
149| AAA | 7:1 | Maximum accessibility |
150
151### Applying Color Theory to Mermaid Diagrams
152
153Color theory principles translate directly to Mermaid diagram styling. The **GitHub Pastel Palette v2** (defined in the **markdown-mermaid** skill) implements these principles:
154
155**Semantic Color Mapping** (from color psychology):
156
157| Semantic Purpose | Palette Color | Fill | Text | Stroke |
158| ---------------- | ------------- | ---- | ---- | ------ |
159| Primary actions | Blue | `#ddf4ff` | `#0550ae` | `#80ccff` |
160| Success/output | Green | `#d3f5db` | `#1a7f37` | `#6fdd8b` |
161| Business logic | Gold | `#fff8c5` | `#9a6700` | `#d4a72c` |
162| Special/DevOps | Purple | `#d8b9ff` | `#6639ba` | `#bf8aff` |
163| Errors/critical | Red | `#ffebe9` | `#cf222e` | `#f5a3a3` |
164| Raw/ingestion | Bronze | `#fff1e5` | `#953800` | `#ffb77c` |
165| Background | Neutral | `#eaeef2` | `#24292f` | `#d0d7de` |
166
167**Design Principles Applied**:
168
1691. **Triadic harmony**: Blue + Gold + Red form a balanced triad
1702. **Analogous groups**: Green + Blue are adjacent, creating calm flow sections
1713. **Light fills + dark text**: Ensures WCAG AA contrast (4.5:1+)
1724. **Neutral arrows** (`#57606a`): Don't compete with colored nodes — visual hierarchy preserved
1735. **Consistent stroke family**: Each color has a matching mid-tone stroke (not jarring black borders)
174
175**When to Override the Palette**:
176
177- Diagrams comparing two systems → Use just 2 contrasting colors (complementary scheme)
178- Status dashboards → Green/Yellow/Red RAG mapping
179- Sequential processes → Monochromatic gradient (light to dark within one hue)
180
181## SVG Design
182
183### SVG Structure
184
185```xml
186<svg viewBox="0 0 width height" xmlns="...">
187 <defs>
188 <!-- Reusable definitions -->
189 <linearGradient id="grad1">...</linearGradient>
190 <filter id="shadow">...</filter>
191 </defs>
192
193 <!-- Background layer -->
194 <rect .../>
195
196 <!-- Main content -->
197 <g transform="translate(x, y)">
198 <!-- Grouped elements -->
199 </g>
200
201 <!-- Foreground/overlay -->
202</svg>
203```
204
205### Common SVG Elements
206
207| Element | Use | Key Attributes |
208| ------- | --- | -------------- |
209| `<rect>` | Rectangles, backgrounds | x, y, width, height, rx (rounded) |
210| `<circle>` | Circles, dots | cx, cy, r |
211| `<ellipse>` | Ovals | cx, cy, rx, ry |
212| `<line>` | Straight lines | x1, y1, x2, y2 |
213| `<path>` | Complex shapes | d (path data) |
214| `<text>` | Typography | x, y, text-anchor, dominant-baseline |
215| `<g>` | Grouping | transform |
216
217### SVG Path Commands
218
219| Command | Meaning | Example |
220| ------- | ------- | ------- |
221| M | Move to | M 10 20 |
222| L | Line to | L 30 40 |
223| H | Horizontal line | H 50 |
224| V | Vertical line | V 60 |
225| Q | Quadratic curve | Q cx cy, x y |
226| C | Cubic curve | C cx1 cy1, cx2 cy2, x y |
227| Z | Close path | Z |
228
229### SVG Text Alignment
230
231```xml
232<!-- Horizontal alignment -->
233text-anchor="start|middle|end"
234
235<!-- Vertical alignment -->
236dominant-baseline="auto|middle|central|hanging"
237
238<!-- Centered text -->
239<text x="50%" y="50%" text-anchor="middle" dominant-baseline="central">
240 Perfectly Centered
241</text>
242```
243
244### SVG Gradients
245
246```xml
247<!-- Linear gradient -->
248<linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="0%">
249 <stop offset="0%" stop-color="#007ACC"/>
250 <stop offset="100%" stop-color="#00a8e8"/>
251</linearGradient>
252
253<!-- Radial gradient -->
254<radialGradient id="glow" cx="50%" cy="50%" r="50%">
255 <stop offset="0%" stop-color="#007ACC" stop-opacity="0.4"/>
256 <stop offset="100%" stop-color="#007ACC" stop-opacity="0"/>
257</radialGradient>
258```
259
260### SVG Transforms
261
262| Transform | Syntax | Use |
263| --------- | ------ | --- |
264| Translate | translate(x, y) | Move element |
265| Rotate | rotate(deg, cx, cy) | Spin around point |
266| Scale | scale(x, y) | Resize |
267| Skew | skewX(deg) / skewY(deg) | Shear |
268
269## Banner & Marketing Design
270
271### Banner Dimensions
272
273| Platform | Size | Aspect |
274| -------- | ---- | ------ |
275| VS Code Marketplace | 1280×640 | 2:1 |
276| GitHub Social | 1280×640 | 2:1 |
277| Twitter Header | 1500×500 | 3:1 |
278| LinkedIn Banner | 1584×396 | 4:1 |
279| Open Graph | 1200×630 | ~1.9:1 |
280
281### Banner Composition
282
283```text
284┌─────────────────────────────────────────┐
285│ ┌─────────────────────────────────┐ │
286│ │ VISUAL ELEMENT │ │ Top third: Logo/Icon
287│ └─────────────────────────────────┘ │
288│ │
289│ MAIN HEADLINE │ Middle: Primary message
290│ Subtitle Text │
291│ │
292│ [Badge 1] [Badge 2] [Badge 3] │ Bottom third: CTAs/Details
293└─────────────────────────────────────────┘
294```
295
296### Badge/Pill Design
297
298```xml
299<!-- Rounded pill badge -->
300<g>
301 <rect x="-50" y="-16" width="100" height="32" rx="16"
302 fill="#007ACC" opacity="0.15"/>
303 <text x="0" y="0" text-anchor="middle" dominant-baseline="central"
304 font-size="12" fill="#94a3b8">Label</text>
305</g>
306```
307
308## Icon Design
309
310### Icon Grid
311
312```text
313┌────────────────────┐
314│ ┌──────────────┐ │ Outer: Padding zone
315│ │ │ │ Inner: Safe area
316│ │ CONTENT │ │ Content: Icon artwork
317│ │ │ │
318│ └──────────────┘ │ Standard: 24×24, 16×16
319└────────────────────┘
320```
321
322### Icon Principles
323
324- **Simplicity** — Recognize at small sizes
325- **Consistency** — Same stroke weight, style
326- **Optical balance** — Visually centered, not mathematically
327- **Metaphor** — Universally understood symbols
328
329### Icon Styles
330
331| Style | Characteristics | Use |
332| ----- | --------------- | --- |
333| **Outlined** | Stroke only, no fill | Light, modern UI |
334| **Filled** | Solid shapes | Bold, clear visibility |
335| **Duotone** | Two tones/colors | Distinctive, branded |
336| **Glyph** | Single color, simplified | System icons |
337
338## Design Systems
339
340### Spacing Scale (8px base)
341
342| Token | Value | Use |
343| ----- | ----- | --- |
344| xs | 4px | Tight spacing |
345| sm | 8px | Default gap |
346| md | 16px | Section spacing |
347| lg | 24px | Component gaps |
348| xl | 32px | Major sections |
349| 2xl | 48px | Hero spacing |
350
351### Elevation/Shadow
352
353| Level | Shadow | Use |
354| ----- | ------ | --- |
355| 0 | None | Flat elements |
356| 1 | 0 1px 2px | Subtle lift |
357| 2 | 0 2px 4px | Cards |
358| 3 | 0 4px 8px | Dropdowns |
359| 4 | 0 8px 16px | Modals |
360
361### Border Radius Scale
362
363| Token | Value | Use |
364| ----- | ----- | --- |
365| none | 0 | Sharp corners |
366| sm | 4px | Subtle rounding |
367| md | 8px | Standard buttons |
368| lg | 16px | Cards, pills |
369| full | 9999px | Circles, pills |
370
371## Illustration Principles
372
373Universal principles for placing illustrations in any document — READMEs, docs, presentations, books.
374
375### Principle 1: Contextual Placement
376
377> **An image should answer: "Why HERE?"**
378
379Place images at the exact moment they illustrate. An image that appears next to the content it depicts reinforces understanding; a decorative image placed arbitrarily adds noise.
380
381### Principle 2: Visual Variety
382
383> **Readers should be surprised by each image, not numb to them.**
384
385Avoid repeating the same visual formula. Vary: composition, subject matter, perspective, color palette, and image type (diagram, screenshot, illustration, photo).
386
387### Principle 3: Narrative Function
388
389Every illustration should serve one of these purposes:
390
391| Function | Description | Example |
392|----------|-------------|--------|
393| **Anchor** | Mark a pivotal moment or concept | Architecture diagram at design section |
394| **Reveal** | Show something text describes | Screenshot of the UI being discussed |
395| **Transition** | Signal a tonal or topic shift | Banner between major sections |
396| **Character** | Deepen connection to a person/persona | Avatar at persona introduction |
397| **Setting** | Establish context or environment | Deployment diagram for infrastructure |
398| **Evidence** | Visual proof or data | Chart, graph, or test results |
399
400### Principle 4: Format Consistency
401
402**HTML for precise control:**
403
404```html
405<p align="center">
406<img src="assets/IMAGE.png" alt="Descriptive alt text" width="60%">
407</p>
408```
409
410**Width guidelines:**
411
412| Asset Type | Width | Use |
413|------------|-------|-----|
414| Full-width banners | 100% | Section headers, hero images |
415| Feature illustrations | 60% | In-content diagrams, screenshots |
416| Spot illustrations | 40-50% | Inline accents, small diagrams |
417| Icons/badges | 20-30% | Status indicators, inline elements |
418
419---
420
421## Design Review Checklist
422
423### Visual Quality
424
425- [ ] Consistent spacing throughout
426- [ ] Aligned elements (check edges)
427- [ ] Balanced composition
428- [ ] Clear visual hierarchy
429- [ ] Appropriate whitespace
430
431### Typography
432
433- [ ] Readable font sizes
434- [ ] Proper line height
435- [ ] Consistent font usage
436- [ ] Good contrast ratios
437- [ ] Appropriate letter spacing
438
439### Color
440
441- [ ] Consistent color palette
442- [ ] Sufficient contrast
443- [ ] Meaningful color use
444- [ ] Works in different contexts
445- [ ] Accessible (WCAG compliant)
446
447### Technical
448
449- [ ] Optimized file size
450- [ ] Correct dimensions
451- [ ] Responsive/scalable
452- [ ] Cross-platform compatible
453- [ ] Proper naming conventions