geek out on Monospace

Blog

Icons need words

Kernel Mono leans on line icons, so every one comes with a word beside it or a name for screen readers. Never an icon in place of a word.

The kit draws its own line icons: a 24px grid, a 1.75 stroke, round ends, in the color of the text around them. They carry a lot of the look. They never carry the meaning alone.

  1. An icon beside a word is decorative, so it gets aria-hidden. The word says it.
  2. An icon alone in a button needs a name: an aria-label that says what the button does, verb first.
  3. A date or a reading time shown with an icon is still written out as text, so a screen reader hears “4 min”, not a clock.

The icons come as one Astro component, so a site never ships a whole icon font:

---
import Mark from '@agentic-design-kits/kernel-mono/astro/Mark.astro';
---
<a href="/notes/"><Mark name="note" size="sm" /> Notes</a>