# Icons

https://docs.kleaver.ie/components/icons/

Icons — `.icon`  ·  see **`components.html#icons`**

Dependency-free SVG sprite at `assets/icons.svg`. Reference a symbol with `<use>`:

```html
<svg class="icon" aria-hidden="true"><use href="assets/icons.svg#icon-search"></use></svg>
```

Icons inherit colour via `currentColor` and size in `em` (so they scale with text). Size modifiers: `.icon--sm`, `.icon--lg`, `.icon--xl`. **A11y:** decorative icons get `aria-hidden="true"`; an icon-only button needs an `aria-label`. Available ids: `menu`, `close`, `chevron-down`, `chevron-right`, `arrow-right`, `check`, `search`, `user`, `settings`, `trash`, `external`, `alert`, `coffee`. Add a new icon by dropping another `<symbol>` (24×24, stroke `currentColor`) into the sprite.

## Catalog

External icon sets — Lucide & Iconoir (`.ico` + `styles/icon-sets.css`)  ·  see **`icons.html`**

For the larger Lucide and Iconoir collections, use the `.ico` mask utility (in `components.css`) plus a named class from `icon-sets.css`: `lu-*` for Lucide (ISC), `io-*` for Iconoir (MIT).

```html
<i class="ico lu-coffee" aria-hidden="true"></i>   <!-- Lucide -->
<i class="ico io-search" aria-hidden="true"></i>   <!-- Iconoir -->
```

The mask renders any monochrome SVG in `currentColor`, so these behave exactly like `.icon` (size with `.ico--sm/lg/xl` or `font-size`). They currently **hot-link CDN SVGs** (needs network + http; multicolour icons aren't supported). For production, vendor the SVGs locally, or in a bundled app use the tree-shakeable `lucide-react` / `iconoir-react` packages. `icons.html` shows both sets plus in-component combination examples.

---
