Agentic Design System
v3.5.0

Foundations · Icons

Icons

One icon language for the whole product. Choose a library first, check it on real components, then fine-tune size and states. Every icon you or an AI agent adds should come from the same library and weight.

Icon library

Choose one open-source library for the whole product. Every icon then shares one stroke, one corner style and one set of proportions. Never mix libraries or weights on the same screen. All three are MIT licensed and free for commercial use; keep the copyright notice and licence text with your project.

On components

The same components with the selected library, updated as you choose. Save foundation to use it on every component page.

Icon set

Icon style

How every icon is constructed - stroke, fill, or a layered combination of both. Duotone is the global default unless your product needs something bolder or more restrained.

Configure your icon system

Grid size applies to every style; stroke width and corner treatment only apply to Line, Dashed and Two-tone - picking Flat, Duotone or Isometric above disables both controls rather than leaving them editable with no effect, since neither changes anything for a fill-based or illustrative style.

Icon-to-text gap: 8px (var(--space-8)) - the same gap every icon+label button already uses, not a separate icon-specific value.

Live preview

AI Rule

A generated icon must use this page's own currently saved configuration, not its own judgment: the saved style (stroke vs. fill vs. illustrative), the saved size for its rendered width and height, with a consistent intrinsic viewBox (24x24 for geometric icons; 32x32 for the illustrative examples), and the saved stroke width in SVG units and corner treatment if the style is stroke-based - never a hardcoded color (currentColor only, confirmed: every icon on this page already follows this). Name it for the concept or action it represents ("delete," "notification"), use a semantic application alias even if the source library uses a shape-based name. A generated or AI-suggested icon needs human review before shipping, same as this system's AI & Agents foundation already requires for any AI-suggested content generally - this page doesn't get a silent exception. Only the libraries listed below (each with its own stated license) are approved reuse sources; an icon from anywhere else needs its own license checked before use, the same as any other third-party asset.

Icon states

An icon rarely has its own dedicated state styling - it inherits whatever state its container (button, nav link, input) is already in, using the same tokens that container uses everywhere else.

Rest Inherits currentColor from its container - never a hardcoded icon color currentColor
Hover Follows the container's own hover color shift (e.g. text-mid to text-hi) currentColor
Pressed / Active Follows the container's pressed-state color (e.g. a button's :active shade) currentColor
Focus The icon itself is never separately outlined - its container's focus-visible ring is the only focus indicator --color-focus-ring
Selected Follows the container's selected treatment (e.g. a nav link's active background/border) currentColor
Disabled The icon dims with its container, not on its own - same opacity level, not a separate value --opacity-40 / --opacity-50
Loading A loading icon (Spin, a button's own loading state) rotates via the shared motion tokens, never a bespoke animation --duration-slow, --ease-linear

Icon direction and motion

Not every directional icon means the same kind of "direction," so not every one mirrors in RTL - three real categories, not one blanket rule:

Navigation (chevrons, carets, back/forward, pagination) Mirrors in RTL - "forward" is relative to reading direction, confirmed: this shell's own breadcrumb/cascader/tree/transfer/pagination/date-range/anchor icons already flip via [dir="rtl"] ... { transform: scaleX(-1); } Mirrors
Trend / value (stock up/down, a progress arrow) Never mirrors - an upward trend means the same thing in every reading direction, since it encodes a value changing, not a reading-order position Invariant
Physical / symbolic (search, trash, checkmark, a real-world object) Never mirrors - represents a fixed thing or action, not a position relative to reading direction, the same reason a photo of a physical object wouldn't flip either Invariant

Loading/motion: a looping icon (Spin, a button's own spinner) is slowed to a real 3-second rotation under prefers-reduced-motion: reduce, not frozen outright and not left at its normal speed - freezing it would read as a hung interface, since the rotation itself is the only signal that work is still happening. This is a deliberate per-component exception to the sitewide "near-zero duration" reduced-motion default (confirmed in shell.css), not an oversight that reduced motion forgot to cover.

Bring your own icons

Upload a handful of reference icons to establish your own visual style, or start from an existing open-source set instead of designing from scratch.

Uploaded files are style reference only, not verified for reuse - this page doesn't check or record where they came from or what license covers them. Verify you actually have the right to use each one (or trace it back to one of the approved libraries below) before it, or anything generated to match it, ships in a real product.

Prefer a ready-made set? Choose one of the three bundled libraries in Icon library above: its icons are consistent, licensed for reuse and already named for the interface.

For developers and AI agents: Markdown export and implementation contract

Icon tokens - Markdown export

A Markdown snapshot of Icon style, Configure your icon system and Bring your own icons above - regenerates live as you edit, so it's always in sync. Copy it straight into your design system docs or hand it to an AI/agent workflow.

Implementation contract

Saved validated choices override project recommendations, which override system defaults. This implementation contract governs static specimens. Resolved tokens in the current export are authoritative values. Component exceptions must name the affected role and reason.

Catalog and aliases

When an icon library is chosen in Icon library (Tabler, Phosphor or Iconoir), use only that library at its saved weight: one library per product, never mixed, with its MIT licence notice kept. Use the bundled named catalog for edit, close, confirm, add, info and chevron-end. Resolve semantic action names through the catalog API. Existing library choices record source/style intent and do not download or replace the entire component glyph set. Other glyphs require a named source/version/license and optical review.

Geometry and sources

UI glyphs use a 24x24 viewBox and currentColor. Illustrative isometric examples use 32x32 and are not interchangeable with a 24px UI action icon. Rendered size uses --icon-size. Stroke is unitless SVG geometry. Optical centering/stroke normalization is reviewed independently of CSS width.

Accessible examples

Decorative SVG: aria-hidden=true and focusable=false. Icon-only button: an explicit accessible name plus a 44px target; optional tooltip supplements the name. Status icon: visible message and semantic label. Loading icon: one coarse role=status announcement, reduced-motion fallback and no per-frame speech.

Assets and recovery

Reference uploads are images up to 2MB each, at most 10 and 2.8MB encoded total. Keep choose/remove keyboard accessible; report read/decode errors. JSON packages references. Unreviewed SVG references render as images, never executable inline markup. Reference upload does not certify a reusable normalized glyph.

RTL and motion

Mirror chevron-end and navigation arrows in RTL. Do not mirror physical objects, logos, text or mathematical/trend meaning without a semantic reason. Do not animate essential meaning. Prefer a static loading label with reduced motion.

Agent and export

Include named action aliases, approved source/license, style, size, stroke, cap/join, currentColor, role, state and direction. AI-generated glyphs require source/geometry/accessibility review. Reject untrusted SVG scripts, event handlers, external references and foreignObject before any inline reuse.

Save and edit

Selections preview immediately. Save foundation commits valid settings in this browser and locks the editor. Select Edit foundation to revise saved settings; Cancel retains the saved settings. Storage failure keeps the draft editable.

Machine contract: section rules, storage, units and acceptance
{
  "schemaVersion": 1,
  "authority": "Saved validated choices override project recommendations, which override system defaults. This implementation contract governs static specimens. Resolved tokens in the current export are authoritative values. Component exceptions must name the affected role and reason.",
  "governance": {
    "owners": "Design System Lead owns token and compatibility policy. Designers own specimens and interaction contracts. Developers own resolver/export/import parity. QA and Accessibility own release evidence. Product teams own domain-specific confidence, privacy and retention policies.",
    "changes": "Change the JSON contract first, regenerate documentation/defaults/catalog/tokens, then run model, DOM and recipient checks. Link the changed finding IDs and evidence in the release review.",
    "compatibility": "Keep hue-named CSS tokens as compatibility aliases while semantic consumers migrate. Additive tokens retain schemaVersion 1. A removed/renamed key or changed stored meaning requires a schema migration, a version bump and a documented replacement before release. Keep the prior reader fixture until the migration is verified.",
    "deprecation": "Record old key, replacement, reason, introduced version, planned removal version and affected consumers. Do not remove a token while an active consumer still uses it. Future records are preserved rather than coerced.",
    "scope": "This is a web design system with one shared workspace profile. Native dp/sp adaptation and real agent execution require separate adapters and acceptance. User-defined colors and responsive exceptions require product-specific rendered verification."
  },
  "storage": {
    "version": 1,
    "legacy": "Unversioned valid records migrate in memory. Typography headingScaleVersion 2 applies the smaller six-heading scale once to older records, retaining other roles and existing font/color/style metrics. Later custom size edits are retained. Unsupported future records are preserved. The next successful write stamps the migrated version.",
    "future": "Reject unsupported future versions. Preserve raw data. Offer backup and explicit reset.",
    "invalid": "Foundation selections preview locally until Save foundation succeeds. Saved Foundation editors require Edit foundation before changes. Cancel discards the preview. Invalid drafts never replace saved records; storage failures retain the editable preview and the last durable record.",
    "concurrency": "A storage event refreshes applied tokens and disables stale editor controls until reload. Never merge simultaneous edits silently."
  },
  "units": {
    "base": "1rem = 16px at default browser settings. Do not fix the root font size.",
    "use": "Prefer rem for typography, spacing and control dimensions. Hairline borders and viewport thresholds may use px. Both equivalents appear in Markdown. SVG strokes use viewBox units. Ratios, percentages, columns, timing and weights are unitless or retain their own units.",
    "native": "Web CSS px/rem are not native dp/sp. A native adapter must map semantic roles, support text scaling and test device density. Native rendering is not shipped by this web library."
  },
  "acceptance": [
    "Compare page, applied tokens, durable record, Machine View and exported instructions.",
    "Test valid, unfinished, invalid, missing, malformed, legacy and future records. Exercise storage failure, reset, reload and another tab.",
    "Test 320, 375, 768, 1024 and 1440px widths, 200% zoom, text-spacing overrides, RTL and long/localized labels.",
    "Use keyboard and screen reader. Confirm focus return, names, values, error associations and status announcements.",
    "Verify actual rendered text/surface pairs, forced colors, reduced motion, print and exported recipes in a recipient fixture. Source or DOM checks alone are not rendered acceptance."
  ],
  "layers": {
    "content": 0,
    "sticky": 20,
    "popover": 40,
    "scrim": 60,
    "dialog": 70,
    "toast": 80,
    "tooltip": 90,
    "rules": "Each overlay gets an explicit owner and close/focus-return path. Portal menus out of clipped scroll containers. Nested dialogs stack one scrim per modal owner. Escape closes the top dismissible layer. Tooltips never block actions. Test collision and zoom; do not infer stacking order from shadow size."
  },
  "section": {
    "title": "Icons",
    "rules": {
      "Catalog and aliases": "Use the bundled named catalog for edit, close, confirm, add, info and chevron-end. Resolve semantic action names through the catalog API. Existing library choices record source/style intent and do not download or replace the entire component glyph set. Other glyphs require a named source/version/license and optical review.",
      "Geometry and sources": "UI glyphs use a 24x24 viewBox and currentColor. Illustrative isometric examples use 32x32 and are not interchangeable with a 24px UI action icon. Rendered size uses --icon-size. Stroke is unitless SVG geometry. Optical centering/stroke normalization is reviewed independently of CSS width.",
      "Accessible examples": "Decorative SVG: aria-hidden=true and focusable=false. Icon-only button: an explicit accessible name plus a 44px target; optional tooltip supplements the name. Status icon: visible message and semantic label. Loading icon: one coarse role=status announcement, reduced-motion fallback and no per-frame speech.",
      "Assets and recovery": "Reference uploads are images up to 2MB each, at most 10 and 2.8MB encoded total. Keep choose/remove keyboard accessible; report read/decode errors. JSON packages references. Unreviewed SVG references render as images, never executable inline markup. Reference upload does not certify a reusable normalized glyph.",
      "RTL and motion": "Mirror chevron-end and navigation arrows in RTL. Do not mirror physical objects, logos, text or mathematical/trend meaning without a semantic reason. Do not animate essential meaning. Prefer a static loading label with reduced motion.",
      "Agent and export": "Include named action aliases, approved source/license, style, size, stroke, cap/join, currentColor, role, state and direction. AI-generated glyphs require source/geometry/accessibility review. Reject untrusted SVG scripts, event handlers, external references and foreignObject before any inline reuse.",
      "Save and edit": "Selections preview immediately. Save foundation commits valid settings in this browser and locks the editor. Select Edit foundation to revise saved settings; Cancel retains the saved settings. Storage failure keeps the draft editable."
    }
  }
}