๐Ÿต

TeaWind CSS

Write chai- classes. Get instant inline styles.
Zero build, zero stress.

โšก ~1ms init
๐Ÿ”„ MutationObserver
๐Ÿ“ฆ Zero dependencies
๐Ÿงน Self-cleaning DOM
$ npm install teawindcss
Explore features โ†“ See live demo โ†’

// This entire page is styled exclusively with chai- classes

Why TeaWind

CSS without the stress.

Whenever styling gets overwhelming โ€” take a sip, write a class, move on.

โšก๏ธ

~1ms Initialization

Map() cache โ€” every class resolved once, retrieved instantly. Hundreds of elements, still milliseconds.

๐Ÿ”„

MutationObserver

A DOM watchdog fires on every new node. React renders? Styled instantly. No useEffect. No setup.

๐Ÿงน

Self-Cleaning DOM

Every chai- class disappears after processing. Open DevTools โ€” only clean inline styles remain.

๐ŸŽจ

Built-in Palette

Every color has a -light and -dark variant. Handpicked hex codes. No memorization needed.

๐Ÿง 

Smart Dynamic Values

chai-p-24 โ†’ padding: 24px. Numbers auto-convert to px. Strings like full pass through unchanged.

๐Ÿ“ฆ

Zero Dependencies

No PostCSS. No Webpack. No config. One import 'teawindcss' and you're live.

Quick Start

Up in 30 seconds.

Three ways to use TeaWind โ€” pick what fits.

Step 1

Install

$ npm install teawindcss
Step 2

Import Once

import 'teawindcss' ;
// auto-initializes. done.
Step 3

Write Classes

chai-flex chai-p-16
chai-bg-blue-dark
chai-rounded-xl

Manual Control โ€” brew()

for React / dynamic HTML
import { brew } from 'teawindcss' ;
// Manually process DOM after dynamic renders
brew () ;
Color System

Every color. Two shades.

Append -light or -dark. TeaWind resolves the hex from the palette.

red
chai-bg-red-light
chai-bg-red-dark
blue
chai-bg-blue-light
chai-bg-blue-dark
green
chai-bg-green-light
chai-bg-green-dark
yellow
chai-bg-yellow-light
chai-bg-yellow-dark
orange
chai-bg-orange-light
chai-bg-orange-dark
purple
chai-bg-purple-light
chai-bg-purple-dark
pink
chai-bg-pink-light
chai-bg-pink-dark
slate
chai-bg-slate-light
chai-bg-slate-dark
subtle
chai-bg-subtle-dark โ€” #292929
Utilities in Action

See the classes work.

Typography Scale
Text 6xl 48px โ€” chai-text-6xl
Text 5xl 42px โ€” chai-text-5xl
Text 4xl 36px โ€” chai-text-4xl
Text 3xl 30px โ€” chai-text-3xl
Text 2xl 24px โ€” chai-text-2xl
Font Families
chai-font-dm-sans chai-font-fraunces chai-font-fira chai-sans chai-serif chai-mono
Line Heights
chai-leading-none

Line one
Line two
Line three

chai-leading-tight

Line one
Line two
Line three

chai-leading-normal

Line one
Line two
Line three

chai-leading-relaxed

Line one
Line two
Line three

chai-leading-loose

Line one
Line two
Line three

bold normal thin italic underline line-through uppercase
Dynamic Spacing โ€” any number works
p-4
p-8
p-16
p-24
p-32
p-48
p-64

chai-p-3, chai-p-7, chai-p-100 โ€” any number, automatic px conversion. Same for chai-m-* and chai-gap-*.

Border Radius
xs 2px
sm 4px
md 6px
lg 8px
xl 12px
2xl 16px
3xl 24px
4xl 32px
Shadows (light background to see depth)
xs
sm
md
lg
xl
Flexbox

chai-flex ยท chai-justify-between ยท chai-items-center ยท chai-gap-16 ยท chai-flex-wrap

chai-bg-blue-dark
chai-bg-purple-dark
chai-bg-green-dark
chai-bg-orange-dark
Live Demo

Zero inline styles on this card.

Open DevTools after the page loads. Every chai- class will be gone.

๐Ÿต

TeaWind CSS

Utility-first styling in Vanilla JS. Zero config. Zero stress.

npm free v1.0
npm install teawindcss

// Classes on the card โ†

chai-bg-slate-dark โ†’ background-color: #334155 chai-p-40 โ†’ padding: 40px chai-rounded-2xl โ†’ border-radius: 16px chai-shadow-xl โ†’ box-shadow: ... chai-font-fraunces โ†’ font-family: 'Fraunces', serif chai-leading-relaxed โ†’ line-height: 1.625 chai-bg-yellow-light โ†’ background-color: #fef08a
โ†’ Inspect in DevTools โ†’ Zero chai- classes remain โ†’ Only clean inline styles โ†’ That's TeaWind ๐Ÿต