Line, filled, duotone, colour: how to keep icon style consistent
Search intent: Style decision
Inconsistency almost never shows in a single icon — it shows the moment you line them up: 1.5 and 2 mixed, rounded and square caps mixed, some with a background shape and some without. Writing a standard matters more than picking attractive individual icons.
Contents
- Start with a three-line spec
- Where each style belongs
- Mixing icons across source libraries without a mess
- Dark mode is the real test
- Put the spec in the component library, not in a document
Start with a three-line spec
Fix three things — stroke width, cap style (round / square / butt) and canvas (viewBox plus padding) — and filter every icon against them. Then add two softer constraints: consistent corner radius, and similar ratio of solid to negative space. With those five, even cross-library picking stays coherent.
- Stroke width: one value for the whole set — 1.5 or 2, never both
- Caps: rounded feels friendlier, square feels more technical — pick one
- Canvas: one 24 grid with identical padding on all sides
- Corner radius: keep card and icon radii in the same order of magnitude
- Negative space: filled icons should have comparable hole ratios
Where each style belongs
Line is the most versatile and suits functional buttons and admin screens. Filled reads better at small sizes and in high-contrast interfaces. Duotone suits feature cards and empty states that need a little depth without shouting. Colour suits category entries and seasonal campaigns — and no more than six of them on one screen.
- Product interface: line or filled — pick one as the primary style site-wide
- States and tags: filled
- Onboarding and empty states: duotone or flat illustration
- Seasonal and campaign: colour, with two or three dominant hues
Mixing icons across source libraries without a mess
ATSvg aggregates icons from many source libraries, and their grids and stroke widths differ by design. The safest route is to take a full set from one library at a time. When you must cross libraries, normalise size and stroke-width in CSS first, and replace the visibly heavier or rounder outliers. Each asset page states its source and style so you can filter on that.
Dark mode is the real test
Put the whole set on a dark background and look: pure black fills disappear, thin strokes look thinner, colour icons can glare. A set that holds up in both light and dark usually means the stroke width and padding were chosen sensibly. See “Handling icons in dark mode” for the mechanics.
Put the spec in the component library, not in a document
Specs written in documents expire: newcomers never read them and veterans cannot be bothered. A more effective approach is to bake the rules into the component — expose only size, color and state; limit size to the four steps; accept only theme variables for color; hard-code stroke width and caps inside. That turns “inconsistent style” from a review argument into something that fails at build time. When picking assets on ATSvg, group by the source and style stated on the detail page, then normalise naming on import so maintenance stays cheap.
- Component exposes only size / color / state
- Size limited to four steps — no ad-hoc 22px
- Color accepts theme variables only, never raw #hex
- Manage assets grouped by source and style; cross-library mixing needs explicit review
FAQ
Related assets · 12 assets