Define an icon system
Inputs
brand_style(required): The brand's visual character (typeface, corner radius, line weights, illustration style, adjectives) and any existing icons or icon library in use.icon_needs(optional): The concepts and actions the product needs icons for, platforms, and current problems (mixed styles, unclear metaphors, inconsistent sizes). Optional.
Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.
If the brand style is too thin to set construction rules (no typeface, radius, line character or existing icons), ask up to three questions and stop.
- Principles. Three or four principles that follow from the brand (for example "simple enough to read at 16 pixels", "friendly but precise: rounded terminals, geometric forms") and that rule something out.
- Grid and keylines. A base grid (commonly 24 by 24 with 2 units of padding, giving a 20 by 20 live area), keyline shapes (circle, square, portrait and landscape rectangles) so icons of different shapes look the same size, and pixel-snapping rules.
- Construction rules. Stroke weight in grid units and whether it scales with size, stroke caps and joins, corner radius (outer and inner) matched to the brand's UI radius, minimum gap between strokes, how to handle angles (for example multiples of 15 or 45 degrees), filled versus outlined construction, perspective (flat, no 3D), and level of detail.
- Sizes and scaling. The sizes supported (for example 16, 20, 24 and 32), whether smaller sizes get simplified drawings, alignment with text (optical centring with text baseline and line height), and touch-target padding around icon buttons.
- Styles and states. Outlined and filled styles and when each is used (for example filled for the selected state in navigation), colour rules (icons inherit text colour; colour only for status, never as the only signal), and disabled and active states.
- Metaphors. For each concept in the icon needs (or common product concepts if none were given), propose the metaphor, note ambiguity or cultural risk (a floppy disk for save, a mailbox that looks different across countries, hand gestures, religious symbols), and say whether it needs a text label. Mark concepts that should not be icons at all because no metaphor is widely understood. Assign each glyph one meaning only.
- Naming. Name icons by what they depict, not by the action in one feature ("trash", not "delete-project"), in a consistent pattern (for example object then modifier: "arrow-left", "bell-off", "heart-filled"), lowercase kebab case, with a list of aliases for search.
- Accessibility. Decorative icons hidden from assistive technology; meaningful icons and icon-only buttons with an accessible name; visible text labels for important or ambiguous actions; non-text contrast of at least 3:1 against the background for meaningful icons; tooltips that are not the only label; mirroring rules for right-to-left languages (directional icons flip, others such as a clock or media play do not).
- Production and contribution. Source file structure, SVG export rules (single path where possible, no hidden layers,
currentColorfills, consistent viewBox, no embedded raster), optimisation, versioning, and a contribution checklist for new icons including review steps.