Sub topic 2
Line: the basic mark
This chapter assumes you can draw or place simple objects in a design tool, on paper or on screen. It also assumes you know everyday layout words such as "image" and "typography". Here we look at line as the most basic element. Later chapters cover its qualities in more detail.
What a line is
A line is a mark whose length is much greater than its width. It has a start, an end, and a direction. A line can be straight or curved, thick or thin, solid or broken.
Line does four jobs in a design:
- It outlines things and separates one area from another.
- It connects things, as in a diagram or a map route.
- It divides a page into zones, as a rule between a header and a body does.
- It leads the eye from one place to another.
Line is also the building block for the other elements. Closing a line makes a shape. Repeating lines makes a texture. Lines also show up inside type, since every letter is built from strokes.
Actual lines in code
Vector tools such as Figma, Illustrator, and Inkscape store lines as coordinates plus style settings. SVG shows this clearly. The three lines below run in the same direction and have the same length. Only their style settings differ.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="60">
<line x1="10" y1="10" x2="190" y2="10" stroke="black" stroke-width="1"/>
<line x1="10" y1="30" x2="190" y2="30" stroke="black" stroke-width="6" stroke-linecap="round"/>
<line x1="10" y1="50" x2="190" y2="50" stroke="black" stroke-width="3" stroke-dasharray="8 6"/>
</svg>Each attribute controls one property of the mark:
| Attribute | What it controls | Visible effect |
|---|---|---|
| `x1`, `y1`, `x2`, `y2` | Start and end points | Length and direction |
| `stroke-width` | Thickness | Light or heavy presence |
| `stroke-linecap` | End style | Flat, round, or square ends |
| `stroke-dasharray` | Dash and gap lengths | Solid versus broken line |
The top line is thin and quiet. The middle line is heavy and soft because of its round ends. The bottom line is dashed, which suggests a path, a fold, or something unfinished. The three lines say different things even though the geometry is nearly identical.
Where a line begins and ends
A line is only as precise as its endpoints. In the diagram below, the same two points can be joined in different ways. The choice of path changes how the line reads.
A straight line is the shortest, most direct route and feels stable and efficient. A dashed line feels lighter and less certain. A thick line feels heavy and definite.
Common errors
- Mixing too many line styles. A layout with five stroke widths and three dash patterns looks noisy. Pick a small set and reuse it.
- Using lines to fix a weak layout. Rules and borders can hide poor spacing, but they add clutter. Try more space first.
- Ignoring how the line ends. Flat and round caps look different at small sizes. Check the endings, not only the thickness.
- Forgetting that lines scale. A 1 px line that looks fine on a screen may vanish in print, or may disappear when a vector image is shrunk.
A short practice routine
- Draw a horizontal line, a vertical line, and a diagonal line of equal length.
- Note which one feels calm, which feels strong, and which feels active.
- Change only the weight of each, then note how those feelings shift.
- Add one dashed line and decide what role it could play in a layout.
The next chapter covers weight, direction, and character in more depth.
Exercise
In the SVG example, two lines have the same coordinates for direction and length, but one has stroke-width="1" and the other has stroke-width="6" with stroke-linecap="round". Name two ways the designs differ in effect, and one job a line can do in a layout.
Show answer
The thin line looks light, precise, and quiet, while the thick rounded line looks heavy, friendly, and more prominent. A line can divide a page into zones, such as separating a header from the body. It can also outline an object, connect two items, or lead the eye.
Exercise
A page has five different line widths and three dash patterns, and it feels cluttered. What should you do first?
Show answer
Reduce the lines to a small, consistent set of weights and styles, and reuse them. Remove any line that is only decoration.