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.
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
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.
4. Use round line joins
Corners where lines meet are round. Sharp, mitred points would add spikes that change weight 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Summary
- Draw on a 256 × 256 square.
- Keep geometry in the 32–224 live area.
- Use a 16-unit stroke.
- Use round joins.
- Use round caps.
- Keep strokes centred on their paths.
- Round corners: 16 on containers, 8 on small parts.
- Keep at least 24 units between elements.
- Match the visual weight of neighbouring icons.
- Balance by eye.
- Keep the density low.
- Draw smooth, simple curves.
- Use whole-number coordinates.
- Reuse established shapes.
When two of these conflict, meaning and clarity win. See the design principles.