DocsFrameworksHTML and CSS
HTML and CSS
No build step and no script. A stylesheet and a pasted SVG.
Add the stylesheet
npx fidgicons css > fidgicons.css<link rel="stylesheet" href="fidgicons.css">Paste an icon
Copy it from the library or the files the CLI writes.
<button class="fidg-hover" aria-label="Notifications"> <svg class="fidg" style="--v: .6" viewBox="0 0 24 24">…</svg> </button>
#Change the value from script
const bell = document.querySelector('.inbox .fidg');
bell.style.setProperty('--v', Math.min(unread / 10, 1));Something missing or unclear?Write to usRequest an icon