One CSS file, zero JavaScript
Ideal for static sites, WordPress and prototypes. Each icon is a mask painted with currentColor.
<link rel="stylesheet" href="…/salve-icons.css">
<i class="si si-bell" aria-hidden="true"></i>Search in English or Portuguese. Click an icon to see the code for each format.
292 icons
No icons found. Try another term, like “arrow” or “user”.
Every format comes from the same SVG file. Pick by project type, not by icon.
Ideal for static sites, WordPress and prototypes. Each icon is a mask painted with currentColor.
<link rel="stylesheet" href="…/salve-icons.css">
<i class="si si-bell" aria-hidden="true"></i>No hooks and no "use client": they render on the server and the client. One component per icon, with tree-shaking and types.
import { CheckIcon, Icon } from "salve-icons/react";
<CheckIcon strokeWidth={2} />
<Icon name="sparkle" size="2rem" />Inline it once with injectSprite() and point at #si-name: zero requests. Adjust the stroke with --si-stroke.
import { injectSprite } from "salve-icons/sprite";
injectSprite();
<svg class="si-svg" style="--si-stroke: 1">
<use href="#si-star"/>
</svg>Server-ready SVG strings, with tree-shaking and TypeScript types. Your editor autocompletes every icon name.
import { svg, trashIcon } from "salve-icons";
svg("trash", { label: "Delete" });
svg(trashIcon, { strokeWidth: 2 });Works in micro-frontends, CMS-generated HTML and multi-framework projects.
<script type="module" src="…/element.js"></script>
<s-icon name="zap" stroke="2.25"></s-icon>Tested in a Next.js 16 app (App Router) with Turbopack and webpack: the build passes, React hydrates without warnings and the console stays clean. Both libraries work this way.
npm i salve-css salve-iconsimport "salve-css";
import { themeScript } from "salve-css/theme";
export default function RootLayout({ children }) {
return (
<html lang="en" suppressHydrationWarning>
<head>
<script dangerouslySetInnerHTML={{ __html: themeScript }} />
</head>
<body>{children}</body>
</html>
);
}import { BellIcon, SearchIcon } from "salve-icons/react";
export default function Page() {
return (
<div className="input-group">
<span><SearchIcon /></span>
<input className="input" placeholder="Search" />
<button className="btn btn-ghost btn-icon"
aria-label="Notifications"><BellIcon /></button>
</div>
);
}themeScript applies the saved theme before the first paint: no flash.<s-icon> uses shadow DOM: no hydration errors.Buttons space icons with their gap, tones and utilities color them, and everything follows the theme and dark mode.
<button class="btn">
<i class="si si-plus" aria-hidden="true"></i> New
</button>Published
Your site is live.
<i class="si si-plus" aria-hidden="true"><button aria-label="Fechar"><s-icon name="alert-triangle" label="Warning">Works alone or with salve-css. Want just a few icons? Use npx salve-icons build -i check,x,menu.
npm create salve@latest-- --add.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/salve-icons/dist/salve-icons.css"><script type="module" src="https://cdn.jsdelivr.net/npm/salve-icons/dist/element.js"></script>npm i salve-icons
import "salve-icons/css";
import { svg } from "salve-icons";