SantyCSS SantyCSS v2.10.0
🇮🇳 Made in India · Open source · MIT
5,100+ classes · no build step
🤖 AI-first — plain English = no lookup table
✨ New in 2.10: one naming grammar + the Persimmon theme

CSS that reads like plain English

Write padding-24 and get 24px of padding. Every class is whole words with literal pixels, so you and your AI tools can read it without a lookup table. On an older version? npx santycss migrate updates your class names.

HTML editor
Live preview
auto-updates
0 classes used
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/santycss@2/dist/santy.min.css"> npm weekly downloads
NEW v2.10.0 One naming grammar (padding-24, display-flex) · Persimmon theme · 9 no-JS components · npx santycss migrate See all changes →
</>

No build step

One CDN link. All 5,100+ classes ready instantly.

✏️

Plain English names

padding-24 is 24px of padding. Read it, remember it.

🖥

VS Code extension

Autocomplete + hover docs for every class.

5,100+ Plain-English Classes — Try One

🔍
SantyCSS IntelliSense VS Code Extension Free

Autocomplete, hover docs & live CSS preview for every SantyCSS class — right inside VS Code.

Autocomplete Hover Docs CSS Preview HTML · JSX · Vue · Svelte
Install Extension
New in v2.10 · Persimmon theme

A look of its own

Warm paper, ink type, serif headlines and one persimmon accent. Nine components with primary, secondary, outline and ghost variants. Both pages below use nothing but santy-next.css, with no JavaScript for the components.

Every component and variant → · How the theme works →

🤖 Built for the AI Era

Why SantyCSS in the Age of AI?

AI tools like Claude, ChatGPT and Copilot write CSS every day. With SantyCSS, the class names are the documentation, so a model can predict them from what it already knows about CSS.

🧠

LLMs understand it instantly

Class names like display-flex align-center are self-documenting. Any AI can generate, read, and modify SantyCSS without a lookup table.

📋

One context file, any AI tool

Paste santycss.context.md into a Claude, ChatGPT or Cursor system prompt, and the AI writes SantyCSS with the current class names, every time.

↓ Download context file
⚡

No build step, ever

AI-generated code should just work. Link one CSS file and use 5,100+ classes — no Webpack, no PostCSS, no config. Paste AI output directly into your HTML.

🔁

Prompt → Class → Done

The built-in AI Generator turns plain English into ready-to-use SantyCSS classes instantly — right in the browser, no API key required.

Try the generator ↓
AI prompt → SantyCSS classes
You tell the AI

"a card with shadow, blue left border, rounded corners and hover scale effect"

AI outputs
make-card style-bordered
border-left-4
border-color-blue-500
radius-16
shadow-md
on-hover:scale-105
transition-all

Everything you need

A complete design system in one file.

Plain English Names

Class names are full descriptive words. border-left-20 does exactly what it says — no memorization needed.

Zero Build Step

Drop santy.css into any project and start building. No Node, no config, no CLI tools needed.

Responsive Variants

Prefix any class with on-mobile:, on-tablet:, md:, lg: for responsive design.

State Variants

Hover, focus, active, disabled states with intuitive prefixes like on-hover: and on-focus:.

20-Palette Color System

20 color families × 10 shades each for text, background, border, fill, and stroke. Plus dark mode variants.

Component Shortcuts

Pre-built components: .btn, .card, .input, .badge, .alert, .spinner, and more.

Getting Started

One line. That's it.

npm

Install via npm

# Install
npm install santycss

# Option A — Import full CSS (React / Vue / Vite / Next.js)
import 'santycss/css';

# Option B — Import individual parts
import 'santycss/css/core';
import 'santycss/css/components';
import 'santycss/css/animations';

# Option C — In CSS / SCSS
@import 'santycss/dist/santy.css';

# Option D — Resolve path (webpack / rollup config)
const santy = require('santycss');
// santy.css        → absolute path to dist/santy.css
// santy.core       → absolute path to dist/santy-core.css
// santy.components → absolute path to dist/santy-components.css
npm ↗ GitHub ↗ MIT License v2.10.0
CDN

Use via CDN — zero install

Drop one line into any HTML file — no download, no npm, works instantly anywhere.

FULL — Everything, minified (1.60 MB · 191 KB gzipped)
<link rel="stylesheet"
      href="https://cdn.jsdelivr.net/npm/santycss@2/dist/santy.min.css">
⭐ RECOMMENDED — Starter: utilities + components, no xl/xxl/motion/RTL variants (805 KB · 115 KB gzipped)
<link rel="stylesheet"
      href="https://cdn.jsdelivr.net/npm/santycss@2/dist/santy-start.css">
SPLIT BUILD — Full coverage, load variants separately (better caching)
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/santycss@2/dist/santy-core.css">  <!-- 445 KB -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/santycss@2/dist/santy-variants.css">  <!-- 998 KB -->
jsDelivr ↗ unpkg ↗ Auto-updates on npm publish
1

Download & Link Locally

<!-- In your <head> -->
<link rel="stylesheet" href="santy.css">
2

Or load only what you need — modular

Split CSS into 3 independent files. Load only the parts your page needs for optimal performance.

<!-- Utilities only (layout, spacing, colors, typography) -->
<link rel="stylesheet" href="santy-core.css">

<!-- Components only (btn, card, modal, drawer, table…) -->
<link rel="stylesheet" href="santy-components.css">

<!-- 120+ animations — only when you need them -->
<link rel="stylesheet" href="santy-animations.css">
santy-core.css — 445 KB santy-components.css — 360 KB santy-animations.css — 78 KB
3

Write your first page

<div class="container padding-y-48">

  <!-- A card -->
  <div class="card padding-32 shadow-md">
    <h1 class="text-size-32 text-bold color-gray-900">Hello SantyCSS</h1>

    <!-- Border example -->
    <div class="border-left-4 border-color-blue-500
               padding-left-16 margin-y-24">
      Border on the left, 4px wide.
    </div>

    <!-- Button -->
    <button class="btn btn-primary on-hover:scale-105
                  transition-normal">
      Click me
    </button>
  </div>

</div>

Framework Integration

Drop-in for every major JS framework. Purge keeps only the classes your pages use.

1. Copy santy.css into your project

your-app/
  public/
    santy.css   ← copy here
  src/
    app/
      layout.js

2. Import in layout.js (App Router) or _app.js

// app/layout.js  (Next.js 13+)
import '../public/santy.css'

export default function RootLayout({ children }) {
  return (
    <html>
      <body>{children}</body>
    </html>
  )
}

3. Purge at build time — postcss.config.js

const santycss = require('santycss/postcss')

module.exports = {
  plugins: [
    santycss({
      content:  ['./src/**/*.{js,jsx,ts,tsx}', './app/**/*.{js,jsx,ts,tsx}'],
      safelist: ['display-none', 'animation-spin'],  // always keep these
    }),
  ],
}

// Result: 1.81 MB → ~15 KB gzipped for a typical page

4. Use in components

export default function Card({ title, badge }) {
  return (
    <div className="card padding-24 on-hover:shadow-lg transition-normal">
      <h2 className="text-size-20 text-semibold color-gray-900">{title}</h2>
      <span className="badge background-blue-100 color-blue-700">{badge}</span>
      <button className="btn btn-primary margin-top-16">Go</button>
    </div>
  )
}

Production Size Summary

1.60 MB
Full (raw, minified)
191 KB
Full (gzip)
102 KB
Purged (raw)
15 KB
Purged (gzip) ✦

✦ Typical real-world page using 50–150 classes. Actual size varies by usage.

What's in the box

Everything below ships in the npm package and on the CDN. There are no plugins to install.

🔤

Class names you can read

One shape, property-modifier-value, with whole words and no abbreviations.

display-flex padding-24 radius-12
📐

The number is the pixel value

A ready-made pixel scale, and santy-jit.js generates any other value under the same name. No bracket syntax.

width-137 ← generated on demand
🎨

Its own theme

Persimmon in light and dark. Every colour, radius, shadow and font is a --santy-* variable you can override.

--santy-primary: #cc4520;
🧩

Components without JavaScript

Button, card, navbar, input, badge, alert, modal, tabs and pricing. The modal opens with popover and the tabs with radio inputs.

button button-primary button-lg
🎬

120+ animations

Fades, slides, zooms, flips, scroll-triggered entrances and staggered lists, named like everything else.

animation-fade-in-from-bottom
⚡

Works in every setup

A CDN link, the JIT runtime, PostCSS, Vite or the CLI purge. Every mode uses the same class names.

npx santycss purge --input=src
🌗

Variants that read like words

State, screen, dark, group and peer prefixes go in front of any class.

on-hover:shadow-lg md:display-grid
🤖

Made for AI tools

Names are predictable from CSS knowledge, and santycss.context.md is a ready-made prompt.

santy-classmap.json → every class
🔁

Upgrades that don't break

Old class names stay as aliases with identical CSS, and one command moves a project to the new ones.

npx santycss migrate src/
New in v2.10

Upgrade to the new names in one command

v2.10 gives every class the same shape: property-modifier-value. Your old class names keep working, and one command rewrites them across HTML, JSX, TSX and Vue whenever you're ready.

1

Preview every rename

npx santycss migrate src/ --dry-run --diff

Lists each change as file:line old → new. Nothing is written.

2

Rewrite in place

npx santycss migrate src/

Updates class attributes, className={…}, :class, cn() and classList calls. Runtime-built names are listed for review.

3

Keep it clean in CI

npx santycss migrate src/ --check

Fails the build if an old name slips back in.

What gets renamed

Before (still works) v2.10
make-flex align-center gap-16 display-flex align-center gap-16
add-padding-24 add-margin-top-16 padding-24 margin-top-16
set-text-18 set-font-weight-600 text-size-18 text-weight-600
round-corners-8 add-shadow-md radius-8 shadow-md
make-hidden md:make-block display-none md:display-block

Converting a project from another framework? Add --from=tailwind or --from=bootstrap.

Naming rules

One shape for every class: property-modifier-value. Know the CSS property and you can guess the class.

1

Property first, then modifier, then value. No verbs.

The same order everywhere. Screen and state prefixes go in front with a colon.

padding-24 padding-top-16 border-left-4 display-flex md:display-grid on-hover:shadow-lg
2

Properties are whole words

The CSS property name, or one short word from a small vocabulary.

radius-12 shadow-md text-size-24 background-blue-500 z-index-10 align-self-end
3

Numbers are literal and whole

Lengths are pixels and unitless ratios are percentages. Negatives are minus-N, fractions N-of-M, ratios N-by-M.

gap-16 width-320 opacity-50 line-height-150 margin-top-minus-8 width-1-of-2 aspect-16-by-9
4

A word means one thing

One size scale (xs sm md lg xl 2xl). Keywords stand alone, numbers keep their modifier.

text-bold text-center text-weight-600 shadow-sm shadow-xl
5

Components are nouns, and options are suffixes

The component, then its variant, then its size.

button button-primary button-lg card card-outline badge badge-success

Pre-2.10 names like add-padding-24 and make-flex still work. Full rules →

Utility Reference

The full class name catalogue, organized by category.

Spacing — Padding & Margin

Replace {n} with a value from the pixel scale: 0–6, 8, 10, 12, 14, 16, 18, 20, 24, 28, 32, 40, 48, 56, 64, 80, 96, 128, 160, 192, 256, 320, 384, 512, 640, 768, 1024. Any other number (e.g. add-padding-37) works with santy-jit.js.

ClassCSS OutputDescription
add-padding-{n}padding: {n}pxAll sides
add-padding-top-{n}padding-top: {n}pxTop only
add-padding-bottom-{n}padding-bottom: {n}pxBottom only
add-padding-left-{n}padding-left: {n}pxLeft only
add-padding-right-{n}padding-right: {n}pxRight only
add-padding-x-{n}padding-left + right: {n}pxHorizontal axis
add-padding-y-{n}padding-top + bottom: {n}pxVertical axis
add-margin-{n}margin: {n}pxAll sides
add-margin-top-{n}margin-top: {n}pxTop only
add-margin-bottom-{n}margin-bottom: {n}pxBottom only
add-margin-left-{n}margin-left: {n}pxLeft only
add-margin-right-{n}margin-right: {n}pxRight only
add-margin-x-{n}margin-left + right: {n}pxHorizontal
add-margin-y-{n}margin-top + bottom: {n}pxVertical
margin-x-automargin-left: auto; margin-right: autoCenter horizontally
margin-x-automargin: 0 autoCenter block element
subtract-margin-{n}margin: -{n}pxNegative margin
gap-{n}gap: {n}pxFlex/grid gap
gap-x-{n}column-gap: {n}pxColumn gap only
gap-y-{n}row-gap: {n}pxRow gap only

Live Demo

padding-8
padding-16
padding-24
padding-32
margin-right-8
margin-right-24
no extra margin

Border & Radius

Border widths: 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 28, 32, 40, 48px

ClassCSS OutputNotes
add-border-{n}border: {n}px solidAll sides
add-border-top-{n}border-top: {n}px solidTop
add-border-bottom-{n}border-bottom: {n}px solidBottom
add-border-left-{n}border-left: {n}px solidLeft
add-border-right-{n}border-right: {n}px solidRight
add-border-x-{n}border-left + right: {n}px solidHorizontal
add-border-y-{n}border-top + bottom: {n}px solidVertical
border-color-{name}-{shade}border-color: {hex}e.g. border-color-blue-500
border-solid / dashed / dotted / doubleborder-style: …Border style
round-corners-{n}border-radius: {n}px0–128px
radius-circleborder-radius: 50%Perfect circle
radius-pillborder-radius: 9999pxPill/capsule shape
round-top-{n}border-top-left/right-radius: {n}pxTop corners
round-bottom-{n}border-bottom-left/right-radius: {n}pxBottom corners
round-left-{n}border-top/bottom-left-radius: {n}pxLeft corners
round-right-{n}border-top/bottom-right-radius: {n}pxRight corners

Live Demo

border-1
border-2
radius-8
border-4
radius-16
border-left-6
radius-circle
border-dashed
radius-pill

Typography

ClassCSS Output
set-text-{n}font-size: {n}px (8–144)
text-thinfont-weight: 100
text-extra-lightfont-weight: 200
text-lightfont-weight: 300
text-normalfont-weight: 400
text-mediumfont-weight: 500
text-semiboldfont-weight: 600
text-boldfont-weight: 700
text-extra-boldfont-weight: 800
text-weight-blackfont-weight: 900
text-italic / text-not-italicfont-style: italic / normal
font-sans / font-serif / font-monoSystem font stacks
text-left / center / right / justifytext-align
text-uppercase / lowercase / capitalizetext-transform
text-underline / strikethrough / no-decorationtext-decoration
text-truncateEllipsis overflow truncation
text-nowrapwhite-space: nowrap
line-height-none / tight / snug / normal / relaxed / looseline-height presets
add-letter-space-{n}letter-spacing: {n}px
letter-spacing-wide / wider / widestem-based letter spacing

Font Scale

text-size-48

text-size-36 text-bold

text-size-24 text-semibold

text-size-18 text-medium

text-size-14 text-normal — body text

text-size-12 letter-spacing-wider uppercase

Layout, Flexbox & Grid

ClassCSS Output
display-flex / display-grid / display-block / display-nonedisplay values
flex-row / flex-columnflex-direction
flex-wrap / flex-nowrapflex-wrap
align-center / align-start / align-end / align-stretchalign-items
justify-center / justify-between / justify-start / justify-end / justify-around / justify-evenlyjustify-content
flex-grow / flex-shrink / flex-none / flex-equalflex shorthand values
align-self-center / align-self-start / align-self-end / align-self-stretchalign-self
place-centerplace-items: center; place-content: center
grid-cols-{1-12}grid-template-columns: repeat(n, 1fr)
grid-rows-{1-6}grid-template-rows: repeat(n, 1fr)
span-col-{n}grid-column: span n
grid-column-span-fullgrid-column: 1 / -1
gap-{n} / gap-x-{n} / gap-y-{n}gap / column-gap / row-gap
order-{1-12} / order-first / order-lastorder
grid-flow-row / grid-flow-col / grid-flow-densegrid-auto-flow

Grid Demo — grid-columns-4 gap-16

1
grid-column-span-2
4
5
6
grid-column-span-full

Sizing

ClassCSS Output
set-width-{n}width: {n}px (0–1024)
width-fullwidth: 100%
width-screenwidth: 100vw
width-autowidth: auto
width-min / max / fitmin-content / max-content / fit-content
width-1-of-2width: 50%
width-1-of-3 / 2-of-3width: 33.33% / 66.66%
width-1-of-4 … 3-of-4width: 25% / 50% / 75%
set-height-{n}height: {n}px (0–1024)
height-fullheight: 100%
height-screenheight: 100vh
min-width-{n} / max-width-{n}min/max-width: {n}px
min-height-{n} / max-height-{n}min/max-height: {n}px
max-width-nonemax-width: none

Color System

20 color families × 10 shades (50–900). Use prefixes: color-, background-, border-color-, fill-, stroke-.

PatternExampleCSS Output
color-{name}-{shade}color-blue-500color: #3b82f6
background-{name}-{shade}background-green-100background-color: #dcfce7
border-color-{name}-{shade}border-color-red-600border-color: #dc2626
fill-{name}-{shade}fill-purple-500fill: #a855f7 (SVG)
stroke-{name}-{shade}stroke-teal-400stroke: #2dd4bf (SVG)
color-white / color-black—color: #fff / #000
background-white / background-black—background-color: #fff / #000

Effects, Transforms & Animations

ClassCSS Output
shadow-sm / md / lg / xl / innerbox-shadow presets
shadow-nonebox-shadow: none
opacity-{0–100}opacity: 0–1 (in steps of 5)
transition-fast / normal / slowtransition: all 0.15s / 0.3s / 0.5s ease
transition-colors / opacity / transformTargeted transitions
rotate-45 / 90 / 135 / 180 / 270transform: rotate(Ndeg)
scale-75 / 90 / 95 / 100 / 105 / 110 / 125 / 150transform: scale(N)
flip-horizontal / flip-verticaltransform: scaleX(-1) / scaleY(-1)
skew-x-3 / 6 / 12 / skew-y-3 / 6 / 12transform: skewX/Y(Ndeg)
blur-sm / blur / blur-md / blur-lg / blur-xlfilter: blur(Npx)
grayscale / sepia / invertfilter presets
brightness-{50–200} / contrast-{50–200}filter: brightness/contrast
animation-spin / ping / pulse / bounceLooping animations
animation-fade-in / fade-in-from-top / …9 fade entrances
animate-bounce-in-from-{top/bottom/left/right}5 bounce entrances
animate-slide-in-from-{side} / slide-out-to-{side}4+4 slide variants
animation-zoom-in / zoom-in-from-{side} / zoom-out-…5+5 zoom variants
animation-flip / flip-in-x / flip-in-y / flip-out-x / y5 flip variants
animation-shake-x / shake-y / rubber-band / tada / wobbleAttention seekers
animation-rotate-in / rotate-in-from-{corner}5+5 rotate variants
animate-back-in-from-{side} / back-out-to-{side}4+4 back variants
animation-hinge / jack-in-box / roll-in / roll-outSpecials
animation-speed-{fastest → glacial}Duration helpers (0.3s–3s)
animation-delay-{100–3000}Delay in ms
animation-loop-{1–5} / foreverIteration count
animation-fill-{none/forwards/backwards/both}Fill mode
drop-shadow-sm / md / lgfilter: drop-shadow(…)
text-shadow-sm / md / lgtext-shadow presets
blend-multiply / screen / overlay / …mix-blend-mode

Animation Demo

animation-fade-in
animation-bounce-in-from-left
animation-fade-in-from-top
animation-rubber-band
animation-zoom-in

→ See all 70+ animations with live previews

Responsive & State Variants

Breakpoints

PrefixMedia QueryExample
on-mobile:max-width: 639pxon-mobile:display-none
on-tablet:640px – 1023pxon-tablet:grid-columns-2
on-desktop:min-width: 1024pxon-desktop:grid-columns-4
on-wide:min-width: 1280pxon-wide:text-size-20
sm:min-width: 640pxsm:display-flex
md:min-width: 768pxmd:grid-columns-3
lg:min-width: 1024pxlg:padding-48
xl:min-width: 1280pxxl:text-size-24
xxl:min-width: 1536pxxxl:container

State Variants

PrefixTargetsExample
on-hover::hoveron-hover:background-blue-600
on-focus::focuson-focus:shadow-md
on-active::activeon-active:scale-95
on-disabled::disabledon-disabled:opacity-50
on-checked::checkedon-checked:background-blue-500
on-first::first-childon-first:add-margin-top-0
on-last::last-childon-last:add-margin-bottom-0
on-odd: / on-even:nth-childon-odd:background-gray-50
on-placeholder:::placeholderon-placeholder:color-gray-400
on-focus-within::focus-withinon-focus-within:shadow-md
on-focus-visible::focus-visibleon-focus-visible:outline
dark:prefers-color-scheme: darkdark:background-gray-900
group-hover:Parent .group:hovergroup-hover:color-blue-500
<!-- Responsive card grid: 1 col mobile → 2 col tablet → 3 col desktop -->
<div class="display-grid grid-columns-1 gap-16
          on-tablet:grid-columns-2
          on-desktop:grid-columns-3">
  <div class="card group cursor-pointer transition-normal
              on-hover:shadow-lg on-hover:scale-105">
    <span class="color-gray-600 group-hover:color-blue-600 transition-colors">
      Hover me
    </span>
  </div>
</div>

Position, Z-index, Overflow & More

Position

ClassCSS Output
position-staticposition: static
position-relativeposition: relative
position-absoluteposition: absolute
position-fixedposition: fixed
position-stickyposition: sticky
pin-top / pin-bottom / pin-left / pin-righttop/bottom/left/right: 0
pin-top-{n} / pin-left-{n} / …top/left/…: {n}px
inset-0top/right/bottom/left: 0

Z-index

ClassCSS Output
z-index-0z-index: 0
z-index-10z-index: 10
z-index-20z-index: 20
z-index-30z-index: 30
z-index-40z-index: 40
z-index-50z-index: 50
z-index-100z-index: 100
z-index-autoz-index: auto
layer-{n} / z-index-autoz-index: n (alternate name)

Overflow

ClassCSS Output
overflow-hiddenoverflow: hidden
overflow-autooverflow: auto
overflow-scrolloverflow: scroll
overflow-visibleoverflow: visible
overflow-x-hiddenoverflow-x: hidden
overflow-x-autooverflow-x: auto
overflow-y-hiddenoverflow-y: hidden
overflow-y-autooverflow-y: auto

Cursor

ClassCSS Output
cursor-pointercursor: pointer
cursor-defaultcursor: default
cursor-not-allowedcursor: not-allowed
cursor-grab / cursor-grabbingcursor: grab / grabbing
cursor-wait / cursor-text / cursor-movecursor: wait / text / move
cursor-crosshair / cursor-zoom-in / cursor-zoom-outcursor variants
cursor-none / cursor-help / cursor-autocursor variants

Pointer Events & User Select

ClassCSS Output
pointer-events-nonepointer-events: none
pointer-events-autopointer-events: auto
select-noneuser-select: none
select-alluser-select: all
select-textuser-select: text
select-autouser-select: auto

Object Fit & Aspect Ratio

ClassCSS Output
object-fit-cover / object-fit-coverobject-fit: cover
object-fit-contain / object-fit-containobject-fit: contain
object-fit-fill / object-fit-fillobject-fit: fill
object-fit-none / object-fit-noneobject-fit: none
object-position-center / top / bottom / left / rightobject-position
aspect-16-by-9 / aspect-videoaspect-ratio: 16 / 9
aspect-1-by-1 / aspect-squareaspect-ratio: 1 / 1
aspect-4-by-3aspect-ratio: 4 / 3
aspect-3-by-2aspect-ratio: 3 / 2

Gradients & Color Stops

ClassCSS Output
gradient-to-rightbackground-image: linear-gradient(to right, var(--grad-from), var(--grad-to))
gradient-to-bottombackground-image: linear-gradient(to bottom, …)
gradient-to-left / gradient-to-toplinear-gradient to left / top
gradient-to-bottom-right / top-rightdiagonal gradients
from-blue-500--grad-from: #3b82f6
from-purple-500 / from-purple-600--grad-from: #a855f7 / #9333ea
from-green-500 / from-teal-500--grad-from: #22c55e / #14b8a6
from-orange-500 / from-red-500 / from-pink-500gradient start colors
to-purple-600--grad-to: #9333ea
to-blue-500 / to-indigo-500--grad-to: #3b82f6 / #6366f1
to-green-500 / to-teal-500 / to-cyan-400gradient end colors
to-pink-500 / to-rose-500 / to-amber-400gradient end colors

Gradient Demo

blue → purple
green → teal
orange → red
sky → indigo
pink → rose

Accessibility & Outline

ClassCSS Output
sr-onlyVisually hidden, screen-reader accessible
not-sr-onlyUndo sr-only (make visible again)
outline-noneoutline: none
outlineoutline: 2px solid currentColor
outline-offset-2 / outline-offset-4outline-offset
ring-2 / ring-4 / ring-8box-shadow focus ring (primary color)
ring-blue / ring-green / ring-red / ring-purpleColored focus rings
ring-offset-1 / ring-offset-2 / ring-offset-4Ring with white gap offset

Backdrop Filter

ClassCSS Output
backdrop-blur-smbackdrop-filter: blur(4px)
backdrop-blurbackdrop-filter: blur(8px)
backdrop-blur-mdbackdrop-filter: blur(12px)
backdrop-blur-lgbackdrop-filter: blur(16px)
backdrop-blur-xl / 2xl / 3xlblur(24px / 40px / 64px)
navbar-glassbackdrop-filter: blur(12px) + semi-transparent bg

Theming & Advanced Features

CSS variables, dark mode, peer variants, print styles, RTL support.

CSS Variables / Theming

Override design tokens in your own stylesheet — no build step, no config file, just CSS. Every component reads from these variables.

/* Override in your CSS file */
:root {
  --santy-primary:       #7c3aed;  /* brand purple */
  --santy-primary-dark:  #6d28d9;
  --santy-primary-light: #ede9fe;
  --santy-secondary:     #0f172a;
  --santy-success:       #16a34a;
  --santy-danger:        #dc2626;
  --santy-radius:        12px;
  --santy-radius-sm:     6px;
  --santy-radius-lg:     20px;
  --santy-font-sans:     'Inter', sans-serif;
}
Token Badge
TokenDefaultUsed by
--santy-primary#3b82f6.btn-primary, .ring-*, .tabs-item.active
--santy-primary-dark#2563eb.btn-primary:hover
--santy-primary-light#dbeafelight bg accents
--santy-secondary#6b7280.btn-secondary
--santy-success / danger / warning / infogreen/red/amber/cyan.btn-success, .alert-*, notification-*
--santy-radius / -sm / -md / -lg / -xl / -full8px … 9999pxall rounded corners
--santy-font-sans / -serif / -monosystem-ui / Georgia / monospace.font-sans, .font-serif, .font-mono

Dark Mode & Theming v2.5.0

Semantic token system — add data-theme="dark" to any element. Use .theme-auto to follow the OS preference. Utility classes like background-surface and color-text-muted adapt automatically.

<!-- Dark theme -->
<html data-theme="dark">

<!-- Follow OS preference -->
<html class="theme-auto">

<!-- Semantic utility classes -->
<div class="background-surface color-text">  <!-- adapts in dark -->
<p class="color-text-muted">Subtitle</p>
<span class="text-accent">Accent</span>
Dark Card
✅ Dark alert-success
❌ Dark alert-danger
Component.dark class adapts
.card / .card-header / .card-body / .card-footer✅
.btn-outline / .btn-ghost / .btn-secondary✅
.alert-info / -success / -warning / -danger✅
.badge / .notification-*✅
.input / .select / .textarea✅
.modal-box / .drawer-panel✅
.accordion / .tabs / .dropdown-menu✅
.table / .navbar / .pagination✅

Peer & Group Variants

Target sibling elements when an ancestor or peer changes state — no JS required.

<!-- peer-checked: show sibling -->
<input type="checkbox" class="peer">
<p class="display-none peer-checked:display-block">
  Visible when checked!
</p>

<!-- peer-hover: change color -->
<input class="peer">
<label class="peer-focus:color-blue-600">
  Label</label>

<!-- group-hover: child reacts to parent -->
<div class="group cursor-pointer">
  <span class="group-hover:color-blue-500">hover me</span>
</div>
VariantTriggers when
peer-hover:{cls}peer element is hovered
peer-focus:{cls}peer element is focused
peer-checked:{cls}peer checkbox/radio is checked
peer-disabled:{cls}peer element is disabled
group-hover:{cls}parent .group is hovered
group-focus:{cls}parent .group has focus

Print, Motion & Link Variants

Built-in accessibility and print utilities — no plugins or extra config.

<!-- Print styles -->
<nav class="print:make-hidden">…</nav>
<footer class="print:make-hidden">…</footer>
<article class="print:set-text-12 print:color-black">…</article>

<!-- Motion accessibility -->
<div class="motion-safe:animation-spin
         motion-reduce:animation-none">…</div>

<!-- Link states -->
<a class="color-blue-500
        on-visited:color-purple-600
        on-hover:color-blue-700">
  Link
</a>
VariantDescription
print:{cls}Applied only when printing
print:make-hiddenHide element in print
print:make-blockShow element only in print
motion-safe:{cls}Only if user has no reduce-motion preference
motion-reduce:{cls}Applied when reduce-motion is set
motion-reduce:animation-noneKills animations for accessibility
on-visited:{cls}Visited links
on-required:{cls}Required form fields
on-invalid:{cls}Invalid form fields
on-read-only:{cls}Read-only inputs

RTL / Logical Properties

SantyCSS ships logical property utilities. Add dir="rtl" to <html> and spacing/borders automatically flip — no extra classes needed.

<!-- RTL-safe layout -->
<html dir="rtl">
  <div class="padding-start-16 padding-end-8">
    <!-- padding-inline-start/end flips in RTL -->
  </div>
  <div class="margin-start-auto border-start-4">
    <!-- start/end flip in RTL -->
  </div>
ClassLogical Property
ps-{n}padding-inline-start (LTR: left, RTL: right)
pe-{n}padding-inline-end (LTR: right, RTL: left)
margin-start-automargin-inline-start: auto
margin-end-automargin-inline-end: auto
border-start-1/2/4border-inline-start (flips in RTL)
border-end-1/2/4border-inline-end (flips in RTL)
start-0 / end-0inset-inline-start/end: 0

Component Shortcuts

High-level classes for common patterns — built on top of utilities.

Buttons

.make-button .style-primary .size-small/.large/.xl

Modal / Dialog

Open Modal

CSS-only via <a href="#modal-id">

Dropdown Menu

.dropdown .dropdown-menu .dropdown-item

Tabs

Overview content here.
Details content here.
Settings content here.
.tabs .tabs-item.active .tab-panel

Accordion

A plain-English utility-first CSS framework.
Just drop in a single CSS file and go.
.accordion .accordion-header .accordion-body

Toast / Notification

Saved!
Your changes were saved.
Error
Failed to connect.
.notification .notification-success/.error

Progress & Skeleton

.progress .progress-bar / .skeleton

Badges & Chips

New Active Error Beta
Design Done Urgent Review
.badge / .chip .chip-blue/.green

Sidebar / Drawer

Open Drawer
Sidebar

Sidebar content goes here.

CSS-only via :target

Table

NameRoleStatus
AliceAdminActive
BobEditorPending
.table .table-hover .table-striped

Pagination & Breadcrumb

.pagination .page-item / .breadcrumb

Toggle & Range

.toggle .toggle-slider / .range

Stepper

  • ✓
    Account
  • 2
    Profile
  • 3
    Payment
.steps .step .step.active .step.done

Card

Card Title Active
Card body content goes here with a white background, radius, and shadow.
.card .card-header .card-body .card-footer

Form Inputs

https://
.input .select .textarea .input-group

Avatar & Spinner

JS
AB
CD
.avatar .avatar-md / .spinner .spinner-lg

Alerts

Info: Informational message.
Success: Changes saved.
Warning: Review this.
Error: Something failed.
.alert .alert-info/.success/.warning/.danger

Navbar / Header

.navbar .navbar-brand .navbar-item .navbar-dark

Tooltip

Tooltip on top Tooltip on bottom Tooltip on right Tooltip on left
.tooltip .tooltip-top/.bottom/.left/.right .tooltip-content

Real-World Examples

Full UI patterns built entirely with SantyCSS classes.

Pricing Cards

Starter

$0 /month

Perfect for personal projects.


  • 5 Projects
  • 2GB Storage
  • Team features

Pro

$29 /month

For growing teams.

Popular

  • Unlimited Projects
  • 50GB Storage
  • Team features

Enterprise

Custom

For large organizations.


  • Everything in Pro
  • SLA & Support
  • Custom Integrations

Profile Card

JD

Jane Doe

Product Designer · San Francisco

128
Projects
4.9k
Followers
312
Following

Stats Dashboard

Revenue
$84,250
↑ 12.5% vs last month
Users
24,891
↑ 8.2% vs last month
Orders
1,429
↓ 3.1% vs last month
Conversion
5.74%
↑ 1.4% vs last month
✨ AI-Powered

Prompt → SantyCSS Classes

Describe what you want in plain English and get ready-to-use SantyCSS classes instantly.

Ready — rule engine active. Works instantly, no API key needed.
🗺 Roadmap

What We're Building

SantyCSS is growing. Here's where we're taking it — from AI tooling to design systems.

✨

AI Prompt-to-Classes

LIVE

Type a description → get SantyCSS classes instantly

Try it above ↑
🧩

VS Code Extension

LIVE

Autocomplete, hover docs & live preview — inside VS Code

IntelliSense for every SantyCSS class, docs on hover, and instant live preview — no switching tabs.

🎨

Design Token System

LIVE

Brand your entire UI with CSS vars — zero build step

See theming docs ↑
🔧

Component Variant System

IN PROGRESS

Composable, AI-friendly class naming for components

🎨

SantyCSS Inspector

BUILT v1.0

Figma plugin — select any layer, get exact SantyCSS classes instantly

✦ Maps fills, padding, radius, shadow, typography → SantyCSS classes
✦ Nearest-color matching across 200 palette colors
✦ Click-to-copy chips · Copy All · Dark mode UI
View docs & install →
🛝

SantyCSS Playground

IN PROGRESS

In-browser editor — try SantyCSS in 30 seconds

Try the JIT demo →
💡

"Explain This Class"

IN PROGRESS

Hover any class → see the raw CSS it generates

Class names that explain themselves, so you don't have to explain them to your AI.

⚡

Framework CLI

LIVE

Scaffold, purge, and manage SantyCSS from the terminal

npx santycss [your-html-files]
♿

Accessibility Utilities

v1.7 LIVE

Skip-to-content, focus traps, ARIA live regions, reduced motion, high-contrast mode

skip-to-content  screen-reader-only  aria-live-polite

🌐

i18n & RTL Support

v1.7 LIVE

Logical properties, writing modes, RTL text direction & vertical CJK layouts

padding-inline-16  text-vertical  text-direction-rtl

📱

Mobile-First Components

v1.7 LIVE

Bottom sheet, swipeable carousel, pull-to-refresh & safe area insets

bottom-sheet  swipe-carousel  padding-safe-bottom

🤖

SantyCSS for LLMs

LIVE

Paste into Claude / ChatGPT / Cursor and the AI writes SantyCSS with current class names

Download santycss.context.md →
💬 Feedback

We'd love to hear from you

Share a bug, feature idea, or just say hi — join the conversation on GitHub Discussions.

Join the Discussion

Bug reports, feature requests, questions, or just saying hi — everything lives in GitHub Discussions where the community can see and upvote.

Open GitHub Discussions

Opens in a new tab — no account needed to read, GitHub login required to post.