Skip to content
Xerobi Icons

Design language

The visual rules behind every Xerobi icon, shown with do and don't examples on the real 256 by 256 grid.

Last updated

Xerobi Icons is a consistent set drawn on one grid, with one stroke, one set of corner radii and one way to keep things apart. This page shows each rule with a picture. The design specification states the same rules as requirements. Every drawing below is on the real 256 × 256 grid, and the dashed blue box is the live area.

1. Use a 256 × 256 canvas

Every icon is drawn on a square 256 × 256 canvas. At 24 px, one pixel is about 10.667 units.

DoDraw on a 256 × 256 square. The icon fills it the way its neighbours do.
Don’tDon’t draw on a canvas that is not square. Every size would stretch.

2. Keep a 32-unit margin: the live area

Geometry stays inside the live area, from 32 to 224 on both axes. Because strokes are centred on their paths, a 16-unit stroke on the edge of the live area ends 24 units from the canvas edge, so nothing is clipped.

  • Canvas. 256 × 256, the viewBox
  • Live area. all geometry inside 32–224; the 16-unit stroke ends at 24–232
  • Circle keyline. a circle container is 192 across
  • Square keyline. a square container is 176 across
  • Rectangle keyline. a wider or taller rectangle is 192 on its long side
DoKeep geometry inside 32–224. With a 16-unit stroke the ink ends 24 units from the edge.
Don’tDon’t let the stroke reach the edge. It is clipped and looks heavier or flat on one side.

3. Use 16-unit strokes

Every line is 16 units wide: 1.5 px at 24 px. The build produces thin (8), light (12) and bold (24) from the same drawing, so you only ever draw the regular stroke.

DoOne stroke width, 16, for every line in the icon.
Don’tDon’t mix widths. The set stays consistent through one stroke.

4. Use round line joins

Corners where lines meet are round. Sharp, mitred points would add spikes that change weight between sizes.

DoRound joins: the corner is softened by exactly half the stroke.
Don’tDon’t use miter or bevel joins. Spikes appear at sharp angles and the weight changes between sizes.

5. Use round line caps

Open ends are round. The cap extends the line by half the stroke width, so a line that ends at 192 shows ink up to 200.

DoOpen ends use round caps.
Don’tDon’t leave butt or square caps. Ends look cut off and the length is wrong.

6. Keep strokes centred on their paths

SVG strokes are centred by default, and everything in the set is built that way. A stroke aligned to its inside or outside edge changes the size of the shape you meant to draw.

DoThe stroke sits centred on its path. The guide runs through the middle of the line.
Don’tDon’t align a stroke to its inside or outside edge. The shape comes out smaller or larger than drawn.

7. Use consistent corner radii

Rounded rectangles use a radius of 16 for large containers (cards, windows, devices) and 8 for small parts inside them. Do not mix sharp and very round corners in one icon.

DoRounded corners: 16 on the container, 8 on small parts inside it.
Don’tDon’t mix sharp corners with very round ones in the same icon.

Some shapes are exceptions because their geometry needs it: a diamond, a lightning bolt, the pointed end of an arrow. Round their corners with the stroke’s own round join instead.

8. Keep at least 24 units between elements

Leave at least 24 units of open space between parallel strokes and between separate elements. Anything closer merges at 16 px and in the bold weight.

DoAt least 24 units of open space between parallel strokes. They stay apart at 16 px.
Don’tDon’t pack strokes closer than that. They merge into a blob at small sizes and in bold.

9. Aim for consistent visual weight

Icons should look about as big and as heavy as the circle and square icons. A container keeps to its keyline: a circle is 192 across, a square 176, and a wider or taller rectangle 192 on its long side. Open shapes (arrows, a check mark) may use the full live area.

DoCircle, square and triangle read as the same size, because each keeps to its keyline.
Don’tDon’t let one icon look much bigger, smaller, heavier or lighter than comparable icons.

10. Balance icons visually

Centre an icon by how it looks, not only by its bounding box. A shape that points one way or has more weight on one side is nudged toward the middle. A symmetric icon is geometrically centred.

DoAn asymmetric shape is nudged so its visual weight sits in the middle.
Don’tDon’t centre a pointing shape only by its bounding box. It looks pushed to one side.

11. Keep density low

Aim for a level of detail like the other icons. Simplify details that make an icon denser than comparable ones, and leave out details that are not needed to recognise it. An icon uses at most eight stroked elements unless it is a simple repeated pattern that you have checked at 16 px.

DoOnly the details that make it read as an image.
Don’tDon’t add detail that does not help recognition. It turns to noise at 16 px.

12. Use smooth, simple curves

Draw curves with arcs and cubic Bézier curves, with anchor points where the curve is at its top, bottom, left or right extreme. Do not save a curve as many short straight segments.

DoA smooth curve built from a few anchors, with no bumps.
Don’tDon’t build curves from many short straight segments. They look faceted when scaled.

13. Design for the pixel grid

Use whole-number coordinates for line ends, circle centres and rectangle corners; multiples of 4 are best. At 16 px a 16-unit line then falls on exactly one pixel and stays crisp. Arc radii and curve control points can be anything.

DoLine ends and centres on whole numbers: at 16 px a 16-unit line is exactly one pixel wide and crisp.
Don’tDon’t sit half a unit off the grid when it is not needed. At 16 px the line smears over two pixels.

Pixel alignment never outranks the look of the icon. If a curve needs to leave the grid to look right, let it.

14. Reuse established shapes

Variants repeat their base icon exactly. A file-plus is file plus the standard plus badge, drawn the same way in every icon that has one. When a shape already exists in another icon (a person, a file, an envelope), reuse it instead of drawing a new version.

DoA variant repeats its base icon exactly and adds the standard badge.
Don’tDon’t redraw the base for a variant. Shapes drift and the pair stops looking related.

Summary

  1. Draw on a 256 × 256 square.
  2. Keep geometry in the 32–224 live area.
  3. Use a 16-unit stroke.
  4. Use round joins.
  5. Use round caps.
  6. Keep strokes centred on their paths.
  7. Round corners: 16 on containers, 8 on small parts.
  8. Keep at least 24 units between elements.
  9. Match the visual weight of neighbouring icons.
  10. Balance by eye.
  11. Keep the density low.
  12. Draw smooth, simple curves.
  13. Use whole-number coordinates.
  14. Reuse established shapes.

When two of these conflict, meaning and clarity win. See the design principles.