Skip to content
Founders offer: 80% off every plan with code FOUNDERS80% off with FOUNDERSGet Magic Glyphs

Icons and sounds for a whole page

Instead of asking for icons one at a time, give your assistant a whole page. The icons_for_ui tool reads every button, link, menu item and labelled control, works out what each one does (add to cart, sign out, delete…), and suggests an icon and a sound that fit.

1. Connect your assistant (setup). This works with the local and the hosted server.

2. Ask from your project, naming the file:

Add a Magic Glyphs icon and a sound to every button and menu item in src/components/Header.tsx.

3. Check the suggestions. For a header like this:

<header>
<a href="/">Home</a>
<button aria-label="Search">…</button>
<button>Add to cart</button>
<button>Checkout</button>
<MenuItem>Settings</MenuItem>
<MenuItem>Sign out</MenuItem>
</header>

the assistant gets:

Control Icon Sound Why this sound
Add to cart (button) cart pickup item picked up
Checkout (button) card kaching the cash register, for the payment itself
Home (link) home tap navigation should stay quiet
Settings (menu item) settings ratchet a gear turning
Sign out (menu item) log-out (paid) goodbye a soft farewell
Search (aria-label) search scan a quick sweep

4. Apply. Say “add them”. The assistant puts each icon next to its label, for example:

<button><MagicGlyph name="cart" sound soundOptions={{ sound: 'pickup' }} /> Add to cart</button>
  • Labels stay. The icon is added beside the text, so screen readers still read “Add to cart”.
  • Ask for “no sound on navigation” or “sound only on checkout” and the assistant leaves the others silent.
  • Paid icons are marked. Ask for “free icons only” if you have no licence.
  • Some sounds, such as pickup, are in the extra sound pack, which needs one line in your app: import pack from 'magic-glyphs/sounds'; MagicGlyphs.sound.add(pack);. Ask the assistant to add it, or ask for built-in sounds only.