Why Bounding Boxes Lie: Keylines and Optical Weight
Well-crafted sets in the SVG Nexus library catalog (such as Material, Phosphor, Lucide, and Tabler) follow classical optical keylines inside a 24×24 grid including a 2px live-area margin:
- Squares: Typically occupy
18×18units so their four heavy corners don't overpower neighbors. - Circles: Expand to
20×20units (radius10) so curved edges match the perceived visual mass of an18×18square. - Vertical / Horizontal Rectangles: Use
16×20or20×16proportions to balance surface area.
Locking Stroke Width, Terminals, and Scaling Behavior
Document four non-negotiable rules in your design system tokens and verify custom additions using the Pixel Grid and Keylines overlay inside SVG Nexus Studio:
- Single stroke-to-grid ratio: For
24×24icons rendered at 20–24px, standardize on1.75pxor2pxstrokes. - Uniform caps & joins: Don't mix
stroke-linecap="butt"icons withstroke-linecap="round"icons in the same sidebar. - Minimum 2px interior gap: Parallel strokes closer than 2 grid units merge into a gray smudge on 1× office monitors.
- Use vector-effect when scaling diagrams: On resizable schematic shapes where line thickness must remain constant regardless of zoom, apply
vector-effect="non-scaling-stroke".