salve-icons/sprite.svg

All icons

Search in English or Portuguese. Click an icon to see the code for each format.

292 icons

one drawing, five formats

Use them the way your project needs

Every format comes from the same SVG file. Pick by project type, not by icon.

CSS class · simplest

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>
React components · Server Components

<CheckIcon /> in Next.js

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" />
SVG sprite · adjustable stroke

One file, many icons

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>
JS module · SVG strings

Vue, Svelte, Astro, SSR

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 });
Web component · anywhere

<s-icon> in any framework

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>
SSR · Next.js · Server Components

Built to render on the server

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.

1 · Install
npm i salve-css salve-icons
2 · app/layout.jsx
import "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>
  );
}
3 · app/page.jsx (Server Component)
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>
  );
}
  • CSS without JavaScript: nothing runs on the client to apply styles.
  • themeScript applies the saved theme before the first paint: no flash.
  • Icon components without hooks: they work in Server Components.
  • <s-icon> uses shadow DOM: no hydration errors.
salve-css + salve-icons

Made to work together

Buttons space icons with their gap, tones and utilities color them, and everything follows the theme and dark mode.

Buttons

<button class="btn">
  <i class="si si-plus" aria-hidden="true"></i> New
</button>

Forms

Status

Published

Your site is live.

Pending New Failed
accessibility

Three rules for accessible icons

Icon with text next to it

It's decorative: hide it from screen readers. <i class="si si-plus" aria-hidden="true">

Icon-only button

The name goes on the button, not the icon. <button aria-label="Fechar">

An icon that informs on its own

Give the icon its own accessible name. <s-icon name="alert-triangle" label="Warning">
salve-icons

Install and use

Works alone or with salve-css. Want just a few icons? Use npx salve-icons build -i check,x,menu.

Installer (asks if you want salve-icons)
npm create salve@latest
Creates a project with salve-css and salve-icons, or adds them to yours with -- --add.
CSS via CDN
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/salve-icons/dist/salve-icons.css">
Web component via CDN
<script type="module" src="https://cdn.jsdelivr.net/npm/salve-icons/dist/element.js"></script>
npm
npm i salve-icons
import "salve-icons/css";
import { svg } from "salve-icons";