Specificity wars
.btn { color: red !important; } @layer salve.* → your CSS always winsEach row is a problem everyone who writes CSS has had. On the right, how salve fixes it.
.btn { color: red !important; } @layer salve.* → your CSS always winsposition:absolute; top:50%; transform:… class="center"@media (min-width: 768px) {…} ×3 class="grid" style="--min: 14rem"z-index: 99999; var(--s-z-modal) · class="z-toast"height: 100vh; class="min-h-screen" → 100dvh.dark .card { background: #111 } … automatic · data-theme="dark" on any blockinput:invalid { border: red } :user-invalid → only after interactingfont-size: 14px; .input → 16px on touch screensonclick="location.href=…" <a class="card-link">focus-trap + scroll-lock + 40 KB of JS native <dialog class="dialog">overflow-y: scroll; /* gambiarra */ scrollbar-gutter: stable (in the reset)A title with one<br>word text-wrap: balance (default)@media (prefers-reduced-motion) in every file durations become 1ms in the tokensmargin: 0 calc(50% - 50vw); class="content-grid" + class="bleed"Drag the bottom corner of each box. No media queries: each primitive reacts to the space it has.
--min class="grid" style="--min: 10rem"class="sidebar" style="--side: 12rem"class="switcher" style="--threshold: 30rem"class="cluster"class="center"class="bento" + span-2 / row-span-2class="layers"class="masonry" style="--min: 9rem"Built on real HTML: <dialog>, popover, <details>, :user-invalid. All of them accept tones and per-instance variables.
New version available
Update to get the new components.
Payment confirmed
The receipt was sent to your email.
Storage at 90%
Free up space or change plans.
Publishing failed
The file is over 10 MB. Make it smaller and try again.
The whole card is clickable, with a single real link.
No. A <link> is enough. The CLI is optional, for people who want their own theme.
Yes. It's pure CSS: it works with any framework, or none at all.
No. Everything lives in @layer, so your CSS always wins.
| Order | Customer | Status | Total |
|---|---|---|---|
| #4021 | Ana Nogueira | Paid | R$ 1.280,00 |
| #4020 | Bruno Ramos | Pending | R$ 349,90 |
| #4019 | Carla Lima | Declined | R$ 89,00 |
Name, email and profile photo. Panels switch with native radios.
Pro plan, next charge on December 12.
7 people, 2 pending invites.
Tracking code US123456.
Hi! Has order #4021 shipped?
It shipped today at 2:20 PM. Arrives by Friday.
import "salve-css";When someone writes to you, conversations show up here.
4.6 · 1,284 reviews
Ring progressSalve.
class="text-gradient"Hover it: stateful utilities, no custom CSS.
A gradient border that follows the theme.
Appears as you scroll. No JavaScript.
Uses animation-timeline: view() where available.
And respects people who asked for less motion.
Owns the design system and the checkout screens.
Entrances, attention seekers, loops, hover effects and scroll-driven animations. All of them respect people who asked for less motion: entrances become instant and loops stop.
<div class="card animate-slide-up delay-200">…</div><input class="input animate-shake"> <!-- validation error -->Text with a moving gradient
Grows a little.
Lifts and gets a shadow.
A glow in the brand color.
Tilts slightly.
.staggerRises as it enters the screen.
Comes from the left.
Zooms in.
Comes out of the blur.
The bar at the top of the page is .scroll-progress. All of it uses animation-timeline, with no JavaScript; where it isn't supported, the content just shows up normally.
CSS that eases your life.
<div class="marquee"><div class="marquee-track">…items… …the same items again…</div></div>Like Tailwind, you can tweak anything. The difference is you can start with no build at all and only level up when you need to.
Hue, chroma, radius and density. Palettes, shadows, spacing and control heights derive from them.
:root {
--s-hue: 280; /* purple */
--s-radius: 0; /* sharp corners */
--s-density: .9; /* more compact */
--s-font-sans: "Inter", sans-serif;
}Re-theme a whole section or a single button, without a new class.
<section data-theme="dark" style="--s-hue: 25">
<button class="btn" style="--btn-radius: 99px">
Subscribe
</button>
</section>Names you already know, with logical properties underneath (RTL-ready). md: follows the screen; @md: follows the container.
<div class="flex flex-col md:flex-row gap-4 p-6 md:p-10
rounded-xl shadow-lg bg-surface">Generate a CSS file with only the modules you use, your breakpoints and your spacing scale.
npx salve init # creates salve.config.js
npx salve build -m # writes a minified salve.cssWorks with plain HTML, React, Next.js (SSR and Server Components), Vue, Svelte, Astro, WordPress or Rails. No build required. The installer sets up a new project, or adds salve to yours, in one command.
npm create salve@latest-- --add: it detects the framework and adds the imports for you.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/salve-css/dist/salve.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/salve-icons/dist/salve-icons.css">import "salve-css";
import "salve-icons/css";
import { themeScript } from "salve-css/theme"; // only if you have a theme toggle
<html suppressHydrationWarning>
<head><script dangerouslySetInnerHTML={{ __html: themeScript }} /></head>npm i salve-css salve-icons
import "salve-css";
import "salve-icons/css";