Icon and Illustration Systems
Mental model
An icon is a compression of meaning, and compression only works when the reader
already has the key. Most icon failures are the designer assuming a metaphor is
universal when it is learned.
- Universal metaphors are a short list. Home, search, close, play, plus,
trash, settings, back. Everything else is learned, and learned means a label.
- If you have to debate whether an icon is self-explanatory, add a label.
The debate is the evidence. Icon-only navigation measurably reduces
discoverability; icon-plus-label costs a few pixels and removes the problem.
- Optical alignment beats mathematical alignment. A triangle centred by
bounding box looks off-centre. Centre by visual mass, which for a play glyph
means nudging right.
- One grid, one stroke weight, one corner radius. Mixing icon sets is the
fastest way to make an interface look assembled rather than designed.
- Decorative icons are invisible to screen readers, meaningful ones are not.
That distinction is a decision you make per icon, not a default.
Constants
Every recipe in the reference files emits these.
| Token |
Size |
Line Height |
Use Cases |
Touch Target |
icon-xs |
12px |
12px |
Status dots, inline indicators, badge counts, color swatches |
N/A (not interactive) |
icon-sm |
16px |
16px |
Inline with small text (12-13px), table row icons, tag icons, breadcrumb separators |
24x24px min |
icon-md |
20px |
20px |
Default size — nav items, buttons, form field icons, list item icons, dropdown arrows |
32x32px min |
icon-lg |
24px |
24px |
Prominent actions, card header icons, section markers, tab bar icons (mobile) |
44x44px min (mobile) |
icon-xl |
32px |
32px |
Feature icons, section headers, sidebar category icons, dialog icons |
44x44px min |
icon-2xl |
40px |
40px |
Hero feature icons, onboarding step icons, empty state accents |
N/A (usually decorative) |
icon-3xl |
48px |
48px |
Large empty state illustrations, marketing feature blocks, landing page icons |
N/A (usually decorative) |
Sizing Rules
- Icons below 16px should use simplified glyphs (fewer details, thicker relative strokes)
- Icons at 12px may need to be redesigned as filled shapes rather than stroked outlines
- At 32px+, icons can support more detail (inner strokes, secondary elements)
- Never scale a 24px icon down to 12px by setting width/height — use a dedicated small variant
- Design at 24px, then create size-specific variants for 16px and 12px
4. Icon Design Rules
| State |
Opacity |
Color Token |
Transform |
Cursor |
Additional |
| Default |
100% |
--icon-default (gray-600) |
none |
default |
— |
| Hover |
100% |
--icon-hover (gray-900) |
none |
pointer |
transition: color 150ms ease |
| Active / Pressed |
100% |
--icon-active (primary-600) |
scale(0.95) |
pointer |
transition: transform 100ms ease |
| Disabled |
38% |
--icon-disabled (gray-400) |
none |
not-allowed |
pointer-events: none |
| Selected / On |
100% |
--icon-selected (primary-600) |
none |
pointer |
Switch to filled variant if available |
| Focus-visible |
100% |
--icon-focus (gray-900) |
none |
pointer |
2px focus ring offset 2px |
| Drag |
80% |
--icon-default |
scale(1.05) |
grabbing |
drop-shadow for lift effect |
State Transition CSS
.icon-button {
color: var(--icon-default);
transition: color 150ms ease, transform 100ms ease, opacity 150ms ease;
}
.icon-button:hover { color: var(--icon-hover); }
.icon-button:active { color: var(--icon-active); transform: scale(0.95); }
.icon-button:disabled { color: var(--icon-disabled); opacity: 0.38; pointer-events: none; }
.icon-button[aria-selected="true"] { color: var(--icon-selected); }
.icon-button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
8. Animated Icons
Index
| Need |
Reference |
| Choose an icon set (Lucide, Heroicons, Phosphor, Tabler) |
icon-library-catalog.md |
| SF Symbols and Material Symbols conventions |
icon-library-catalog.md |
| Licence and coverage comparison |
icon-library-catalog.md |
| React icon component, inline vs sprite vs font |
icon-implementation-recipes.md |
| Animated icons: spinner, toggle, hamburger morph |
icon-implementation-recipes.md |
| SVGO config and size targets |
icon-implementation-recipes.md |
| Choosing an illustration style |
illustration-systems.md |
| Empty-state and spot illustrations |
illustration-systems.md |
| The 24x24 grid, keyline shapes, safe zones |
icon-geometry-and-color.md |
| currentColor, multi-colour icons, dark mode |
icon-geometry-and-color.md |
Reference architecture
| File |
Covers |
Lines |
references/icon-library-catalog.md |
6 libraries + platform conventions |
237 |
references/icon-implementation-recipes.md |
component, states, animation, SVGO |
206 |
references/illustration-systems.md |
16 styles, empty states, spot art |
168 |
references/icon-geometry-and-color.md |
grid, keylines, colour |
71 |
What every reference file contains
- When to reach for it, and the simpler option to try first
- Complete code, not fragments
- The accessibility wiring for that specific case
- Dark-mode behaviour
- The mistake that case invites
Meaningful vs Decorative Icons
Every icon is either meaningful (conveys information) or decorative (visual embellishment). The treatment differs completely:
Meaningful icons (icon is the only way to understand the action):
<!-- Method 1: aria-label on the button -->
<button aria-label="Search">
<svg aria-hidden="true"><!-- icon --></svg>
</button>
<!-- Method 2: title element inside SVG -->
<svg role="img" aria-labelledby="search-title">
<title id="search-title">Search</title>
<!-- icon paths -->
</svg>
<!-- Method 3: Visually hidden text -->
<button>
<svg aria-hidden="true"><!-- icon --></svg>
<span class="sr-only">Search</span>
</button>
Decorative icons (icon accompanies visible text):
<button>
<svg aria-hidden="true" focusable="false"><!-- icon --></svg>
<span>Search</span>
</button>
Accessibility Rules
- Every icon must have either
aria-hidden="true" (decorative) or an accessible name (meaningful)
- Add
focusable="false" to inline SVGs in IE/Edge legacy to prevent tab-stop issues
- Use
role="img" when the SVG is meaningful and uses <title> for its label
- Toggle icons must announce their state:
aria-pressed="true/false" or aria-expanded
- Icon-only buttons require a minimum 44x44px touch target (WCAG 2.5.8)
- Color alone must not be the only indicator — pair colored icons with shape changes (e.g., filled vs outline for selected)
- Animated icons must respect
prefers-reduced-motion (WCAG 2.3.3)
14. Icon Color
Routing
For choosing an icon set -- style, weights, coverage, licence, import
pattern, and the SF Symbols and Material Symbols platform conventions: read
references/icon-library-catalog.md.
For getting icons into the codebase -- the React component, inline vs sprite
vs font, state transitions, animated icons, and SVG optimization: read
references/icon-implementation-recipes.md.
For illustration -- sixteen styles with the brands that use them, plus
empty-state and spot illustration practice: read
references/illustration-systems.md.
For drawing icons -- the 24x24 grid, pixel alignment, keyline shapes, safe
zones, and how icons take colour across themes: read
references/icon-geometry-and-color.md.
Cross-References
ui-visual-design-system -- where iconography sits in the visual language
platform-visual-standards -- SF Symbols and Material Symbols in their native context
animation-recipe-library -- the easing tokens animated icons use
accessibility-inclusive-design -- the full decorative-vs-meaningful story
design-systems-architecture -- icon size tokens in the three-tier model
1---2name: icon-illustration-systems3description: Icon and illustration systems: grid and sizing scales, library selection (Lucide, Heroicons, Phosphor, SF Symbols, Material Symbols), illustration style guides, SVG optimization, and accessible iconography. Use when choosing an icon set, sizing icons, or establishing an illustration style.4---5# Icon and Illustration Systems67## Mental model89An icon is a compression of meaning, and compression only works when the reader10already has the key. Most icon failures are the designer assuming a metaphor is11universal when it is learned.1213- **Universal metaphors are a short list.** Home, search, close, play, plus,14 trash, settings, back. Everything else is learned, and learned means a label.15- **If you have to debate whether an icon is self-explanatory, add a label.**16 The debate is the evidence. Icon-only navigation measurably reduces17 discoverability; icon-plus-label costs a few pixels and removes the problem.18- **Optical alignment beats mathematical alignment.** A triangle centred by19 bounding box looks off-centre. Centre by visual mass, which for a play glyph20 means nudging right.21- **One grid, one stroke weight, one corner radius.** Mixing icon sets is the22 fastest way to make an interface look assembled rather than designed.23- **Decorative icons are invisible to screen readers, meaningful ones are not.**24 That distinction is a decision you make per icon, not a default.2526## Constants2728Every recipe in the reference files emits these.293031| Token | Size | Line Height | Use Cases | Touch Target |32|-------|------|-------------|-----------|--------------|33| `icon-xs` | 12px | 12px | Status dots, inline indicators, badge counts, color swatches | N/A (not interactive) |34| `icon-sm` | 16px | 16px | Inline with small text (12-13px), table row icons, tag icons, breadcrumb separators | 24x24px min |35| `icon-md` | 20px | 20px | Default size — nav items, buttons, form field icons, list item icons, dropdown arrows | 32x32px min |36| `icon-lg` | 24px | 24px | Prominent actions, card header icons, section markers, tab bar icons (mobile) | 44x44px min (mobile) |37| `icon-xl` | 32px | 32px | Feature icons, section headers, sidebar category icons, dialog icons | 44x44px min |38| `icon-2xl` | 40px | 40px | Hero feature icons, onboarding step icons, empty state accents | N/A (usually decorative) |39| `icon-3xl` | 48px | 48px | Large empty state illustrations, marketing feature blocks, landing page icons | N/A (usually decorative) |4041### Sizing Rules42- Icons below 16px should use simplified glyphs (fewer details, thicker relative strokes)43- Icons at 12px may need to be redesigned as filled shapes rather than stroked outlines44- At 32px+, icons can support more detail (inner strokes, secondary elements)45- Never scale a 24px icon down to 12px by setting width/height — use a dedicated small variant46- Design at 24px, then create size-specific variants for 16px and 12px4748---4950## 4. Icon Design Rules515253| State | Opacity | Color Token | Transform | Cursor | Additional |54|-------|---------|-------------|-----------|--------|------------|55| **Default** | 100% | `--icon-default` (gray-600) | none | default | — |56| **Hover** | 100% | `--icon-hover` (gray-900) | none | pointer | transition: color 150ms ease |57| **Active / Pressed** | 100% | `--icon-active` (primary-600) | scale(0.95) | pointer | transition: transform 100ms ease |58| **Disabled** | 38% | `--icon-disabled` (gray-400) | none | not-allowed | pointer-events: none |59| **Selected / On** | 100% | `--icon-selected` (primary-600) | none | pointer | Switch to filled variant if available |60| **Focus-visible** | 100% | `--icon-focus` (gray-900) | none | pointer | 2px focus ring offset 2px |61| **Drag** | 80% | `--icon-default` | scale(1.05) | grabbing | drop-shadow for lift effect |6263### State Transition CSS64```css65.icon-button {66 color: var(--icon-default);67 transition: color 150ms ease, transform 100ms ease, opacity 150ms ease;68}69.icon-button:hover { color: var(--icon-hover); }70.icon-button:active { color: var(--icon-active); transform: scale(0.95); }71.icon-button:disabled { color: var(--icon-disabled); opacity: 0.38; pointer-events: none; }72.icon-button[aria-selected="true"] { color: var(--icon-selected); }73.icon-button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }74```7576---7778## 8. Animated Icons7980## Index8182| Need | Reference |83|---|---|84| Choose an icon set (Lucide, Heroicons, Phosphor, Tabler) | `icon-library-catalog.md` |85| SF Symbols and Material Symbols conventions | `icon-library-catalog.md` |86| Licence and coverage comparison | `icon-library-catalog.md` |87| React icon component, inline vs sprite vs font | `icon-implementation-recipes.md` |88| Animated icons: spinner, toggle, hamburger morph | `icon-implementation-recipes.md` |89| SVGO config and size targets | `icon-implementation-recipes.md` |90| Choosing an illustration style | `illustration-systems.md` |91| Empty-state and spot illustrations | `illustration-systems.md` |92| The 24x24 grid, keyline shapes, safe zones | `icon-geometry-and-color.md` |93| currentColor, multi-colour icons, dark mode | `icon-geometry-and-color.md` |9495## Reference architecture9697| File | Covers | Lines |98|---|---|---|99| `references/icon-library-catalog.md` | 6 libraries + platform conventions | 237 |100| `references/icon-implementation-recipes.md` | component, states, animation, SVGO | 206 |101| `references/illustration-systems.md` | 16 styles, empty states, spot art | 168 |102| `references/icon-geometry-and-color.md` | grid, keylines, colour | 71 |103104## What every reference file contains1051061. When to reach for it, and the simpler option to try first1072. Complete code, not fragments1083. The accessibility wiring for that specific case1094. Dark-mode behaviour1105. The mistake that case invites111112113### Meaningful vs Decorative Icons114Every icon is either **meaningful** (conveys information) or **decorative** (visual embellishment). The treatment differs completely:115116**Meaningful icons** (icon is the only way to understand the action):117```html118<!-- Method 1: aria-label on the button -->119<button aria-label="Search">120 <svg aria-hidden="true"><!-- icon --></svg>121</button>122123<!-- Method 2: title element inside SVG -->124<svg role="img" aria-labelledby="search-title">125 <title id="search-title">Search</title>126 <!-- icon paths -->127</svg>128129<!-- Method 3: Visually hidden text -->130<button>131 <svg aria-hidden="true"><!-- icon --></svg>132 <span class="sr-only">Search</span>133</button>134```135136**Decorative icons** (icon accompanies visible text):137```html138<button>139 <svg aria-hidden="true" focusable="false"><!-- icon --></svg>140 <span>Search</span>141</button>142```143144### Accessibility Rules1451. **Every icon** must have either `aria-hidden="true"` (decorative) or an accessible name (meaningful)1462. Add `focusable="false"` to inline SVGs in IE/Edge legacy to prevent tab-stop issues1473. Use `role="img"` when the SVG is meaningful and uses `<title>` for its label1484. Toggle icons must announce their state: `aria-pressed="true/false"` or `aria-expanded`1495. Icon-only buttons require a minimum 44x44px touch target (WCAG 2.5.8)1506. Color alone must not be the only indicator — pair colored icons with shape changes (e.g., filled vs outline for selected)1517. Animated icons must respect `prefers-reduced-motion` (WCAG 2.3.3)152153---154155## 14. Icon Color156157## Routing158159For **choosing an icon set** -- style, weights, coverage, licence, import160pattern, and the SF Symbols and Material Symbols platform conventions: read161`references/icon-library-catalog.md`.162163For **getting icons into the codebase** -- the React component, inline vs sprite164vs font, state transitions, animated icons, and SVG optimization: read165`references/icon-implementation-recipes.md`.166167For **illustration** -- sixteen styles with the brands that use them, plus168empty-state and spot illustration practice: read169`references/illustration-systems.md`.170171For **drawing icons** -- the 24x24 grid, pixel alignment, keyline shapes, safe172zones, and how icons take colour across themes: read173`references/icon-geometry-and-color.md`.174175## Cross-References176177- `ui-visual-design-system` -- where iconography sits in the visual language178- `platform-visual-standards` -- SF Symbols and Material Symbols in their native context179- `animation-recipe-library` -- the easing tokens animated icons use180- `accessibility-inclusive-design` -- the full decorative-vs-meaningful story181- `design-systems-architecture` -- icon size tokens in the three-tier model