Magic Glyphs: animated icons with sound

Animated icons with sound, for the web, mobile, desktop, games and design tools. Every icon has its own spring animation and a short sound you can shape, in four styles: outline, solid, duotone and glass. It includes an icon maker for your own artwork, a command line tool, and an MCP server so coding assistants can insert icons for you.
If Magic Glyphs saves you time, please star it on GitHub. Stars help other developers find it.
Live demo, docs and free icon browser →
- 120 free icons in this package, free for personal and commercial use.
- 10,100+ icons in the full library with a licence key: interface, arrows, files, commerce, devices, media, food, nature, people, travel and flags.
- Tiny: about 12 KB compressed for the code that draws, animates and plays every icon, about 0.25 KB per icon (import single icons:
magic-glyphs/icons/heart), and no browser dependencies.
- Animated GIF, APNG, MP4 and WebM for places that cannot run code:
--format gif, video with the sound baked in.
- Accessible: respects reduced motion, takes an accessible label, and sound is easy to mute.
Works with
Web:

Mobile and desktop:

Games, design and more:

Plugins and extensions
Use Magic Glyphs without leaving the tool you work in. They all load icons from the same library, so new icons appear in each one without an update.
| Where |
Get it |
What it does |
| VS Code, Cursor, Windsurf |
Visual Studio Marketplace |
Search and preview icons in a side panel, then insert them as React or Vue components, HTML tags or native code. (docs) |
| Framer |
Framer Marketplace |
Insert animated icons with style, colour, trigger and sound controls, or as static SVG. (docs) |
| Claude |
Claude's connector directory, or the server URL https://magicglyphs.com/mcp |
Ask Claude for an icon, a sound or icons for a whole page, and get code that fits your project. (docs) |
| Figma |
Figma plugin |
Place icons in your designs and export their motion. |
| WordPress |
Download the plugin |
A block and a shortcode for animated icons. (docs) |
| Coding assistants |
npx magic-glyphs-mcp |
The MCP server for Cursor, Claude Code, Codex, Copilot, Windsurf and others. |
| Gemini CLI |
gemini extensions install https://github.com/lewisjohnvillamor/magicglyphs |
The MCP server plus a guide for Gemini, in one step. (docs) |
| ChatGPT |
Add the server URL https://magicglyphs.com/mcp as a custom app |
Find icons, pick sounds and convert code from other icon sets in the chat. (docs) |
Install
npm install magic-glyphs
# or
yarn add magic-glyphs
pnpm add magic-glyphs
bun add magic-glyphs
deno add jsr:@magicglyphs/magic-glyphs # or: npx jsr add @magicglyphs/magic-glyphs
| Platform |
Install |
| Rust |
cargo add magic-glyphs (crates.io) |
| Avalonia (.NET) |
dotnet add package MagicGlyphs.Avalonia (NuGet) |
| Godot 4 |
the magicglyphs-godot add-on |
| Coding assistants |
claude mcp add magic-glyphs -- npx -y magic-glyphs-mcp (MCP Registry) |
| Gemini CLI |
gemini extensions install https://github.com/lewisjohnvillamor/magicglyphs |
| Everything else |
the command line tool exports for SwiftUI, Compose, Flutter, React Native, WinUI, MAUI, Qt, Unity, Lottie, GIF and MP4 |
No install at all: <script src="https://cdn.jsdelivr.net/npm/magic-glyphs/web/magic-glyphs.all.js" defer></script> gives you the free icons.
The command line tool needs Node.js 18 or later. The browser code has no dependencies.
Quick start
HTML, no build step
<script src="https://unpkg.com/magic-glyphs/web/magic-glyphs.all.js" defer></script>
<magic-glyph name="heart"></magic-glyph>
<magic-glyph name="bell" variant="duotone" size="32" sound></magic-glyph>
<magic-glyphs-sound-toggle></magic-glyphs-sound-toggle> <!-- a mute switch for visitors -->
Works the same in Astro, Svelte, SvelteKit, Angular, Solid, Lit, WordPress (plugin included) and Shopify (snippet included). Icons take the text colour, so Tailwind classes like text-rose-500 work.
React and Next.js
npx magic-glyphs add heart bell --format react --out src/icons
import HeartGlyph from './icons/HeartGlyph';
<HeartGlyph size={24} label="Like" sound soundOptions={{ pitch: 2 }} />
Components are typed in TypeScript projects and marked 'use client', so they work inside Next.js server components.
Vue and Nuxt
npx magic-glyphs add heart bell --format vue --out components
<HeartGlyph :size="24" label="Like" />
shadcn
npx magic-glyphs shadcn
npx shadcn@latest add @magic-glyphs/heart
Native apps: SwiftUI, Jetpack Compose, Compose Multiplatform, Flutter, WinUI, .NET MAUI, Avalonia, React Native
add writes one component file per icon with its animation inside, plus its sound as a WAV file with --sound. Add the one player package your platform needs, export, and use the component:
| Platform |
1. Add |
2. Export |
3. Use |
| SwiftUI (iOS 15, macOS 12) |
Swift package airbnb/lottie-ios 4.4+ |
--format swiftui |
HeartGlyph(size: 28, label: "Like") |
| Jetpack Compose (API 24+) |
com.airbnb.android:lottie-compose:6.6.0 |
--format compose |
HeartGlyph(size = 28.dp, sound = true) |
| Compose Multiplatform |
io.github.alexzhirkevich:compottie:2.0.0 |
--format compose-multiplatform |
HeartGlyph(size = 28.dp, onPlay = { }) |
| Flutter |
flutter pub add lottie audioplayers |
--format flutter |
const HeartGlyph(size: 28, sound: true) |
| WinUI 3 (.NET 9+) |
dotnet add package CommunityToolkit.WinUI.Lottie |
--format winui |
new HeartGlyph(28) { Sound = true } |
| .NET MAUI |
dotnet add package SkiaSharp.Extended.UI.Maui, then builder.UseSkiaSharp() |
--format maui |
new HeartGlyph(size: 28) |
| Avalonia |
nothing (or the MagicGlyphs.Avalonia NuGet package for the free set) |
--format avalonia |
new HeartGlyph(size: 28, color: "#e11d48") |
| React Native |
lottie-react-native |
--format react-native |
<HeartGlyph size={28} /> |
npx magic-glyphs add heart bell --format swiftui --sound --out MyApp/Icons
Every icon plays when tapped. Colour and style are set when you export (--color "#2747f5" --style duotone). Where the sound file goes differs by platform (the app bundle, res/raw, assets/, Resources/Raw), and each docs page has the full steps: SwiftUI, Jetpack Compose and Compose Multiplatform, Flutter, WinUI, .NET MAUI, Avalonia, React Native.
Lottie files are also available with --format lottie for any Lottie player.
Tauri and other web-view apps
Use the HTML, React, Vue or Svelte setup above: Tauri, Dioxus and Leptos draw their interface in a web view.
Options