Visual design · Step 5 · 9 min read
Icons: style, size and optical alignment
Icons look simple. That's why the mistakes are expensive. This lesson defines the three parameters that determine whether an icon set works — style, size and optical alignment — and shows what each requires in practice.
Icons look simple; that is why the mistakes are expensive. This lesson defines the three parameters that matter.
What you'll be able to do after reading:
- Choose an icon style that fits your product's visual language and stick to it
- Size icons consistently for inline, button and standalone uses
- Adjust icon position for optical alignment, not geometric center
- Explain why geometric center ≠ optical center and show the difference
1. Why icons go wrong
Icons fail in one of three ways. The set uses outline icons in some places and filled icons in others — not because there is a rule, but because whoever dropped them in chose whatever "felt right". The icons are sized by eye instead of from a grid, so a 20px chevron sits next to a 22px pencil and both look slightly off. Or an icon inside a circular button looks like it shifted down and left, even though the numbers say it is exactly centred.
Each failure has a cause. And each cause corresponds to one of the three parameters in the model.
2. The icon triangle
The icon triangle names the three parameters that determine whether an icon set works as a system.
- Style (outline / fill / duotone): whether the icons draw with strokes, solid fills, or a combination
- Size (px and touch target): the grid size — 16, 20 or 24px — and the minimum tappable area around it (touch target, defined in full in Density and touch targets)
- Optical alignment (optical center ≠ geometric center): the manual position adjustment that makes an icon look centered to the eye
The three interact. A 24px outline icon with 1.5px stroke weight looks light next to 14px bold text; reducing to 20px and 1.75px weight brings them into balance. An icon sized to 24px but placed in a 44×44px tappable area needs optical correction because the asymmetric padding changes where the eye expects the center to be. Solving one parameter in isolation leaves the other two out of calibration.
3. Style: outline, fill, duotone
The three common styles each communicate a different level of formality.
Outline (stroked) icons read as lighter, more precise and more neutral. They suit dense product UIs where content competes for attention — the icons label without shouting. Most popular sets ship outline-first: Heroicons, Feather, Phosphor and Material Symbols in their outlined variant.
Fill (solid) icons carry more visual weight. They work well as active-state indicators — an outline bookmark becomes a filled bookmark when saved — and in navigation bars where the active destination needs to stand out from the rest.
Duotone (two-toned, often a filled shape with a lighter accent) is a style choice that tends to age quickly. It suits marketing and illustration contexts more than dense product UIs.
The rule that matters more than which style you choose: use one style consistently. A set that mixes outline and filled icons for no structural reason reads as unfinished. The exception is a deliberate pairing: outline = inactive, fill = active. That is a system, not a mix.
If your product already has an icon set, match it. If you are choosing one, pick the style that matches the weight of your typeface. Inter at weight 400 with 1.5px stroke outline icons has balance. Inter at weight 600 with the same icon weight looks like the text is shouting at the icons.
4. Size: 16, 20 and 24px
Icon sets are drawn on a grid. The most common grids are 16, 20 and 24px. Each has a use case:
| Grid size | Use case | Example |
|---|---|---|
| 16px | Inline with small text, table cells | A status dot or a sort indicator in a 12px table |
| 20px | Inline with body text, compact buttons | A label icon next to 14px text |
| 24px | Standalone, larger buttons, navigation | A main navigation icon, a hero icon |
The grid size is not the icon's visual size — it is the bounding box. Some icons fill that box completely; asymmetric icons (an arrow, a minus sign) fill less. The grid exists so icons from the same set, at the same size, sit on the same baseline and align with text.
Matching size to the adjacent text weight is as important as matching style. A 24px icon next to 14px text overwhelms it. A 16px icon next to 20px text disappears. The rule of thumb: the icon's visual weight should feel like it belongs at the same level of emphasis as the adjacent text.
Icons as buttons introduce a second size requirement: the tappable area. The icon might be 20px visually, but its clickable area must be at minimum 44×44 CSS pixels (WCAG 2.1 SC 2.5.5, Level AAA). WCAG 2.2 added SC 2.5.8 at Level AA, which requires at least 24×24 CSS pixels, with exceptions for inline and user-agent-controlled targets (WCAG 2.2 SC 2.5.8).
The practical approach: add padding to the icon button's container so the visual icon can be 20px while the tappable zone is 44×44px. Never shrink the icon to meet the size requirement — shrink the gap, not the icon.
5. Optical alignment: the adjustment that removes the wobble
The hardest parameter. An icon can be geometrically centered — the browser says margin: auto and the numbers agree — and still look slightly off. This happens because icons are not geometric squares. An arrow points right; most of its visual mass is on the left side. A heart icon has more mass in its top half. A circle looks smaller than a square at the same size.
Optical alignment is the manual position adjustment that makes the icon look centred to the eye. It is the first definition of this term in the course.
Three cases where geometric center fails:
Asymmetric shapes. A right-pointing chevron has more empty space on the left side. Centering it geometrically makes it look left-biased. The fix: shift it 1–2px to the right. The numbers will say it's off-center; the eye will say it's right.
Optical size illusion. A circle centered inside a square looks lower and smaller than it is. The fix for circular icon buttons: shift the circle content up by 1px and use slightly more weight in the stroke. This is why most icon libraries ship icons as SVGs that are already optically corrected — the apparent center is not always at cx="12" cy="12".
Padding asymmetry. When an icon sits inside a container with unequal padding (more space above than below, or more on the right than the left), the perceived center shifts. The fix is to adjust the icon's position offset, not the padding.
The key distinction: optical alignment is a correction, not a decoration. It is not moving the icon because it looks nicer — it is counteracting a systematic visual illusion. The same correction recurs every time you place an asymmetric icon or a circle in a square container.
One practical tool: squint at the placed icon. If it looks off, it is off. The measurements may be perfect; the perception is what matters. Adjust by 1–2px and squint again.
Icons are set. The last shape detail is density: how much space a component needs to work.
6. Common mistakes
- Mixing outline and filled icons without a rule (usually because icons came from two different downloads)
- Using 24px icons inline with 12px table text, then complaining that the rows feel crowded
- Making the icon fill the entire 44×44px tappable area, so the icon looks huge at 44px when it should be 20–24px visually
- Applying
transform: translate(-50%, -50%)to center an asymmetric icon and accepting the result without an optical check - Using a different icon set for each feature as the product grows, because "it was faster"
7. Vocabulary
| Term | Meaning |
|---|---|
| Optical alignment | The manual position adjustment that makes something look centred to the eye; the geometric center and the optical center are not the same point |
8. Try it (no tools needed)
- Open any icon-heavy product you use: a navigation bar, a toolbar, a data table with inline icons.
- Screenshot one screen that has at least three different icons.
- For each icon, note: outline or fill? What approximate size in px? Does the icon appear centered in its container?
- Find one icon that looks slightly off-center, even though it is probably geometrically centered. What shape asymmetry might be causing it?
- Write one sentence: "The [icon name] looks [direction]-biased because [shape reason]. An optical correction of [1–2px direction] would improve it."
You do not need to fix it. The goal is to see the difference between geometric center and optical center in something you already use.
9. If you already practise
- When evaluating an icon set before adopting it, test it at every size you will use — icons that look fine at 24px can blur or lose detail at 16px. Many sets have a separate
size-16ormicrovariant designed for this. - Optical alignment is a conversation. Present the corrected version alongside the geometric one and explain the reason. Without that explanation, "I moved it 1px" sounds like a personal preference.
- Duotone and colorful icon libraries (like some variants of Phosphor or Noto Emoji) carry visual weight that can flatten your product's hierarchy. Test them in context before committing to the whole set.
- For icon accessibility: every icon that conveys information needs an accessible label. Decorative icons get
aria-hidden="true". See Accessible components for the full rule.
Checklist
Learn more
- Touch targets: WCAG 2.1 SC 2.5.5 — Target Size (Level AAA) · WCAG 2.2 SC 2.5.8 — Target Size Minimum (Level AA)
- Icon sets: Material Symbols · Phosphor Icons · Heroicons
- Optical size in type and icon: Oliver Schöndorfer, Optical Size (Google Fonts Knowledge) — explains the same optical correction principle applied to variable fonts
Books, courses and videos to go deeper
- The Icon HandbookJon HicksBook · Five Simple Steps, 2011 · — still the most focused book on designing icons for interfaces (Amazon)
- Icon design for the original MacSusan Kareportfolio · — the original systematic icon decisions for a software UI (external site)
Book links go to Amazon. As an Amazon Associate I earn from qualifying purchases, at no extra cost to you.
Related
Corners, borders and shadows with a rule · Density and touch targets · Visual consistency across components · Accessible components