ATSvg

Line, filled, duotone, colour: how to keep icon style consistent

Search intent: Style decision

Home › SVG guides › Line, filled, duotone, colour: how to keep icon style consistent

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

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.

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.

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.

FAQ

Can I mix line and filled styles site-wide?Not advisable. If you must use two styles to express selected versus unselected, write that as an explicit paired rule in the spec rather than mixing casually.
There are too many colour icons and it looks busy — what now?Limit the count, give them a consistent container shape (rounded tile, for instance), and reserve colour for entry-level positions only.

← All SVG guides · Licence and usage FAQ →

Related assets · 12 assets

Keep reading

All guides