Skip to content
IndexRequest a UIAboutContact

Icon Stroke Style Controls

Three line icons that change together as you adjust stroke weight, line cap, corner join and fill.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Icon set sheet: three line icons (a house, a heart and a bell) drawn on a 24 pixel grid with a consistent 2 pixel stroke, round line caps and round joins, dark charcoal on a pale background, evenly spaced in a row, with small labels below each, flat vector style, no fill, no shadow. Variants: a thicker 3 pixel stroke, square caps with sharp mitre joins, and a filled version. Negative: mixed stroke weights, gradients, perspective, text errors, decorative frames. Reduced motion: static sheet.

About this pattern

Definition

A line icon set looks consistent when every icon shares the same stroke weight, end caps and corner style. Round caps and joins feel friendly; butt caps and miter joins feel precise and technical. One CSS variable per property can restyle a whole set.

When to use it

  • Choose one stroke weight (1.5 or 2px on a 24px grid) and keep it everywhere.
  • Round caps and joins for friendly products; square for technical ones.
  • Never mix filled and outline icons in the same row.

What the controls do

  • A Weight slider, Cap and Join buttons and a Fill checkbox.

Motion & timing

  • Changes are instant; no animation.
  • Reduced motion: nothing to change.

Tips & variations

  • Scale the stroke with the icon; at 16px use 1.5, at 32px use 2 or more.
  • Keep icons on the same grid with the same padding.

Code of this live preview

HTML
<div class="bx"><div class="ic" id="ic"><svg viewBox="0 0 24 24" width="64" height="64" aria-hidden="true"><path d="M3 11l9-8 9 8v10H3z"/><path d="M9 21v-7h6v7"/></svg><svg viewBox="0 0 24 24" width="64" height="64" aria-hidden="true"><path d="M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z"/></svg><svg viewBox="0 0 24 24" width="64" height="64" aria-hidden="true"><path d="M6 17V11a6 6 0 0 1 12 0v6l2 2H4z"/><path d="M10 21a2 2 0 0 0 4 0"/></svg></div><label class="rw">Weight <b id="wv">2</b><input id="wt" type="range" min="1" max="4" step=".5" value="2"></label><div class="two"><div class="pre" id="cp" role="group" aria-label="Line cap"><button data-v="round" aria-pressed="true">Round cap</button><button data-v="butt" aria-pressed="false">Butt cap</button></div><div class="pre" id="jn" role="group" aria-label="Line join"><button data-v="round" aria-pressed="true">Round join</button><button data-v="miter" aria-pressed="false">Miter join</button></div></div><label class="sw"><input id="fl" type="checkbox"> Fill</label></div>

Related patterns

Flat Design Depth Levels

↗
Flat Design Depth LevelsIllustration Styles

Line & Texture Styles

↗
Line & Texture StylesIllustration Styles

Isometric Projection Builder

↗
Isometric Projection BuilderIllustration Styles