@layer salve.reset, salve.tokens

Pains you won't feel anymore

Each row is a problem everyone who writes CSS has had. On the right, how salve fixes it.

Specificity wars

.btn { color: red !important; } @layer salve.* → your CSS always wins

"How do I center this?"

position:absolute; top:50%; transform:… class="center"

Responsive grid

@media (min-width: 768px) {…} ×3 class="grid" style="--min: 14rem"

Inflated z-index

z-index: 99999; var(--s-z-modal) · class="z-toast"

100vh broken on phones

height: 100vh; class="min-h-screen" → 100dvh

Painful dark mode

.dark .card { background: #111 } … automatic · data-theme="dark" on any block

Red errors before typing

input:invalid { border: red } :user-invalid → only after interacting

iPhone zooms into inputs

font-size: 14px; .input → 16px on touch screens

Whole card clickable

onclick="location.href=…" <a class="card-link">

Modals that lose focus

focus-trap + scroll-lock + 40 KB of JS native <dialog class="dialog">

Layout jumping with the scrollbar

overflow-y: scroll; /* gambiarra */ scrollbar-gutter: stable (in the reset)

Orphan word in headings

A title with one<br>word text-wrap: balance (default)

Animations that make you dizzy

@media (prefers-reduced-motion) in every file durations become 1ms in the tokens

Breaking out of the container

margin: 0 calc(50% - 50vw); class="content-grid" + class="bleed"
@layer salve.layout

Layouts that adjust themselves

Drag the bottom corner of each box. No media queries: each primitive reacts to the space it has.

.grid as many columns as fit, each at least --min class="grid" style="--min: 10rem"
1
2
3
4
5
6
.sidebar side + content; stacks when it gets tight class="sidebar" style="--side: 12rem"
.switcher side by side, or all stacked at once class="switcher" style="--threshold: 30rem"
Basic
Pro
Team
.cluster class="cluster"
csslayersoklchcontainer queries:has()dialog
.center class="center"
Dead center. For real.
.bento tiles that span columns and rows class="bento" + span-2 / row-span-2
Featured
A
B
Full strip
.layers stacks without position: absolute class="layers"
Text over the image
.masonry columns of different heights, Pinterest style class="masonry" style="--min: 9rem"
1
2
3
4
5
6
7
8
@layer salve.components

Native, accessible components, no JavaScript

Built on real HTML: <dialog>, popover, <details>, :user-invalid. All of them accept tones and per-instance variables.

Buttons

Forms

Type something invalid and leave the field.

Use a valid email, like name@domain.com.

R$ /mo

Feedback

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.

64% 100%

Cards and data

Monthly revenue $48.2k +12.4% vs. October
Do I need a build step?

No. A <link> is enough. The CLI is optional, for people who want their own theme.

Does it work with React and Vue?

Yes. It's pure CSS: it works with any framework, or none at all.

Will it fight my CSS?

No. Everything lives in @layer, so your CSS always wins.

OrderCustomerStatusTotal
#4021Ana NogueiraPaidR$ 1.280,00
#4020Bruno RamosPendingR$ 349,90
#4019Carla LimaDeclinedR$ 89,00

Navigation new

Tabs without JavaScript

Name, email and profile photo. Panels switch with native radios.

Pro plan, next charge on December 12.

7 people, 2 pending invites.

Pagination and steps
  1. Cart
  2. Shipping
  3. Payment
  4. Done

Lists and content new

  • AN
    Ana NogueiraDesign · online
    Admin
  • BR3
    Bruno RamosEngineering · 3 messages
  • CL
    Carla LimaProduct · invite pending
Plan
Pro yearly
Next charge
Dec 12, 2026
Payment method
Card
  1. Order shipped

    Tracking code US123456.

  2. Payment approved
  3. Order created

Hi! Has order #4021 shipped?

It shipped today at 2:20 PM. Arrives by Friday.

Read at 2:22 PM
app/layout.jsx
import "salve-css";

No messages yet

When someone writes to you, conversations show up here.

More controls new

Filter chips
design
Button group
Rating

4.6 · 1,284 reviews

Ring progress
72%
35
Floating label and upload

Effects and motion new

text-gradient

Salve.

class="text-gradient"
hover:lift hover:shadow-lg

Hover it: stateful utilities, no custom CSS.

border-gradient

A gradient border that follows the theme.

animate-*
.reveal

Appears as you scroll. No JavaScript.

.reveal

Uses animation-timeline: view() where available.

.reveal

And respects people who asked for less motion.

Overlays

AN
Ana NogueiraDesigner · São Paulo

Owns the design system and the checkout screens.

Share

Delete project?

The “Company website” project and its 24 files will be deleted forever.

Filters

@layer salve.motion

Ready-made animations, one class away

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.

Entrances

fade-in
slide-up
slide-down
slide-left
slide-right
zoom-in
pop
blur-in
flip-in
wipe-right
rise
slide-up slow delay-300
<div class="card animate-slide-up delay-200">…</div>

Attention click to trigger

<input class="input animate-shake">   <!-- validation error -->

Loops

spin
spin-slow
pulse
ping
bounce
float
glow
loader-dots

Text with a moving gradient

Hover and press

hover-grow

Grows a little.

hover-float

Lifts and gets a shadow.

hover-glow

A glow in the brand color.

hover-rotate

Tilts slightly.

hover-underline

One after another: .stagger

  • AN
    Ana Nogueiraenters first
  • BR
    Bruno Ramos70 ms later
  • CL
    Carla Limaand so on
  • DM
    Diego Melowithout writing a delay

Scroll-driven scroll the page

.reveal

Rises as it enters the screen.

.reveal-left

Comes from the left.

.reveal-zoom

Zooms in.

.reveal-blur

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.

Text

CSS that eases your life.

ReactNext.jsVueSvelteAstroWordPressRailsLaravel
<div class="marquee"><div class="marquee-track">…items… …the same items again…</div></div>
@layer salve.theme

Change everything, your way

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.

Level 1 · Theme knobs

Four variables change the whole system

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;
}
Level 2 · Per block or per instance

Every component exposes its variables

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>
Level 3 · Utilities

Utility classes with responsive variants

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">
Level 4 · Your own build

Config + CLI, like tailwind.config

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.css
@layer salve.icons

And icons? salve has those too.

O salve-icons brings 292 stroke icons, social brands included, that inherit color and size from the text. Use them as CSS classes, React components (Server Components friendly), sprite, JS module or web component.

<button class="btn">
  <i class="si si-plus" aria-hidden="true"></i> New project
</button>
See all icons npm i salve-icons
<link rel="stylesheet">

Install in 10 seconds

Works 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.

Installer: new project or existing one
npm create salve@latest
Pick HTML, JavaScript, React, Vue, Svelte, Next.js, Astro or Veloz, and whether you want salve-icons. Already have a project? Add -- --add: it detects the framework and adds the imports for you.
Via CDN
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/salve-css/dist/salve.min.css">
Icons (optional)
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/salve-icons/dist/salve-icons.css">
Next.js (App Router) · app/layout.jsx
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>
Via npm
npm i salve-css salve-icons
import "salve-css";
import "salve-icons/css";