Skip to content
Tutorials Center
My learning

Topics

Lesson 17 of 36 ยท Colour and Gradients

Fills, Strokes and the Appearance of Objects

Master fills and strokes in Illustrator: stroke weight, caps, corners, dashes, arrowheads, alignment, width profiles, opacity and the Appearance panel with multiple fills.

Every path in Illustrator has an appearance: a fill (the inside), a stroke (the outline), and optional effects and opacity. Understanding this model unlocks lines, borders, dashed shapes and layered effects.

Fill and stroke basics

The Tools panel (and Properties panel) shows two overlapping squares: fill in the front-left and stroke at the back-right. A red slash means none. You can:

  • Click a square to make it active, then pick a swatch or colour.
  • Press X to switch active square, Shift + X to swap the colours.
  • Press < for solid colour, > for gradient and / for none.

Open Window > Stroke (Ctrl/Cmd + F10) for stroke settings.

Stroke weight, caps and corners

  • Weight: line thickness in points.
  • Cap: shape of an open path's ends: Butt (flat, ends exactly at the point), Round (semi-circle) and Projecting (square, extends half the weight).
  • Corner: how corners are joined: Miter (sharp), Round and Bevel (cut).
  • Miter limit: when a sharp corner gets too long, Illustrator bevels it automatically.

Align stroke

For closed shapes, you can place the stroke centred on the path (default), inside or outside. Inside and outside change the visual size of an object without moving its path, and are essential for crisp pixel-aligned UI shapes. For open paths only centred is possible.

Dashes and arrowheads

Tick Dashed Line to enter dash and gap lengths. Turn on Round Cap with a dash of 0 pt to get dotted lines with perfect round dots. The Arrowheads menus add arrows, circles and other terminals at the start and end, with scale and alignment controls. Use the Profile menu to apply width profiles for tapered strokes.

JS Stand-in: dash pattern lengths

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Illustrator has a "Preserves exact dash and gap lengths" and an "Aligns dashes to corners and path ends" option, so dashes can be adjusted to fit neatly.

Variable-width strokes

The Width tool (Shift + W) or the Profile menu make a stroke thicker or thinner along its length. This turns a plain line into a brush-like stroke without using brushes.

The Appearance panel

Open Window > Appearance (Shift + F6). It lists everything that makes an object look the way it does:

  1. Stroke
  2. Fill
  3. Opacity
  4. Effects

You can add multiple fills and strokes to one object using the panel menu or the "Add New Fill/Stroke" buttons. A famous trick: a thick dark stroke under a thinner light stroke makes a road or a cable. The order in the panel is the paint order: top listed is in front.

Use Object > Path > Outline Stroke only when you need a stroke as a shape. Keeping live strokes and multiple appearances makes editing far easier.

Opacity and blending

The Transparency panel (Window > Transparency) sets Opacity from 0 to 100% for the whole object, and offers blend modes such as Multiply, Screen and Overlay. Opacity can also be applied separately to a fill or stroke in the Appearance panel.

Mixing two semi-transparent colours uses the standard over-compositing formula.

JS Stand-in: alpha compositing

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Copying and saving appearances

  • The Eyedropper tool (I) copies the whole appearance of one object to another. Double-click it to choose which attributes to copy.
  • Drag the small appearance thumbnail from the Appearance panel to the Graphic Styles panel (Window > Graphic Styles) to save it as a reusable style.
  • Object > Expand Appearance turns live effects and multiple strokes into plain shapes, similar to flattening.

Common problems

  • Stroke looks wrong when scaling: check Preferences > General > Scale Strokes & Effects. Turn it on to scale line weights with the object, off to keep them fixed.
  • Thin line looks blurry on screen: align to the pixel grid and use even weights.
  • Unexpected corners: set Corner to Round or lower the Miter limit.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which cap makes the ends of an open stroke rounded?

    Round caps add a semi-circle at each end; Butt is flat and Projecting extends by half the weight.
  2. 2. What does aligning a stroke to the inside do?

    The stroke sits inside the path, so the shape's outer size matches the path.
  3. 3. Which panel lets you stack several fills and strokes on one object?

    The Appearance panel lists every fill, stroke and effect on an object.
  4. 4. How do you make dotted lines with round dots?

    A zero-length dash with a round cap draws a circular dot at each dash position.

Summary

  • Each object has a fill, stroke, opacity and effects, all visible in the Appearance panel.
  • Control stroke weight, caps, corners, alignment, dashes, arrowheads and width profiles in the Stroke panel.
  • Use multiple fills and strokes, opacity and blend modes for rich looks without extra objects.
  • Save appearances as graphic styles; set the Scale Strokes preference deliberately.

Next: Gradients