--- id: icon-construction title: How an icon is built status: open area: icon tokens: [] applies-to: [prototype, components, design-site] check: manual --- # How an icon is built **Proposal, not decided.** - One SVG per icon, coloured with `currentColor`; hover, selected and disabled come from CSS colour and opacity, not from separate files. - Outline is the default; a filled version marks the active state. - The stroke follows the weight of the text beside it: about 1.5px next to regular (400) text, 2px next to semibold (600). - One icon family per surface. Mirror only direction-dependent icons in right-to-left text. ## Why One file per icon keeps states in one place and lets icons follow the surface colour (beige on the green window, ink on paper). A stroke heavier or lighter than its label makes the pair look mismatched. ## To decide - The prototype mixes Phosphor icons with Nuvola's own drawn icons (the rounded triangle, the N mark). Which family is the base, and do the designer's icons follow the same stroke rule? - Grid size and padding of the icon artboard (e.g. 24 with 2px padding). Source of the proposal: Jakub Krehel, `better-ui` / `make-interfaces-feel-better` skills.