Skip to content

Strokes and effects

Strokes outline a shape, and effects add depth with shadows, glows and blurs. Some effects are fills, which decides where they sit in the stack.

How do I add a stroke?

Press ⇧S or click + in the Strokes section of the right panel. Press ⌥S to remove one. An element can carry several strokes, and each can be a solid, a gradient or an image.

A selected shape with a stroke, and the Strokes section of the right panel
The Strokes section, with a stroke on the selected element.
SettingWhat it does
WeightThe thickness in pixels. Rectangles and frames can set each side.
PositionInside the edge, on center (the default) or outside it.
DashSolid, dashed or dotted, with dash length, gap length and dash cap.
CapsOn open paths and arcs only: round by default, or none, square, arrow and more.
JoinHow corners meet.

Press ⇧X to swap an element’s fill and stroke.

What is the difference between an effect and a fill effect?

Effects sit at a fixed place in the stack, while fill effects are fills, so they can sit between your other fills. An inner shadow can go between two solids.

A selected shape with a shadow, and the Effects section of the right panel
The Effects section with a drop shadow.

Effects

Add these with + in the Effects section.

EffectWhat it doesStarts at
Drop shadowCasts a shadow behind the elementOffset 0, 4; blur 8; 25% black
Outer glowRadiates light from the edgeBlur 8; 60% white; Screen blend
Element blurBlurs the whole elementRadius 4
A still of the live example. Open this page on a desktop browser with WebGPU to try it.
Shadow, glow, and blur, live, in its opening state
Drop shadow
Outer glow
Orb blur
Shadow, glow, and blur, live. Live on a desktop browser with WebGPU. Flip a control and the canvas recompiles in place.

Try it: deepen the shadow, light the glow and blur the orb on a real card.

Fill effects

Add these from the Effect category of the color picker.

Fill effectWhat it doesStarts at
Liquid GlassA refractive glass surfaceTuned defaults
Inner shadowCasts a shadow inside the edgeOffset 0, 2; blur 4; 50% black
Inner glowGlows inward from the edgeBlur 4; 60% white; Screen blend
Background blurFrosts what is behind the elementRadius 8

Offsets and blur run to 200 pixels, and spread from -100 to 100. Background blur has no color: it samples what is behind it.

Where do I set a blend mode?

Each level has its own: the element in the Element section, a fill or stroke in the Settings section of the color picker, and a drop shadow or glow in its expanded row. Normal is the default, and there are 18 modes.

Sixteen of the 18 blend modes: the same circle over the same backdrop, from Normal to Luminosity
Sixteen of the 18 blend modes: the same circle over the same backdrop, from Normal to Luminosity

How does opacity work?

Element opacity fades the whole element, while paint opacity fades one fill or stroke from the color picker. The two compound.

To set element opacityPress
Higher⌘⇧+
Lower⌘⇧-
To a preset level⌘⇧0 to ⌘⇧9 (on text, 7 and 8 make lists)

Where next?