✦ Utility-First CSS Framework

Style anything.
One class at a time.

Chai-Tailwind gives you composable utility classes that map directly
to CSS properties — zero config, zero bloat, pure clarity.

Live Preview
Hello, Chai! ☕
Click to toggle:
Interactive

Playground

Click utilities to apply them. Watch the preview update instantly.

Padding
Margin
Background
Text Color
Font Size
Alignment
Font Weight
Line Height / Tracking
Border Width
Border Color
Border Radius
Display
Flexbox — Justify
Flexbox — Align Items
Width
Height
Position
Opacity
Preview
Preview Box
Applied Classes:
None — click utilities to apply
Editor

Live Code Editor

Type HTML with Chai-Tailwind classes. Preview updates instantly.

index.html
Output
Quick snippets:
Reference

Documentation

Every utility class, explained with examples.

📐

Spacing

Control padding and margin using scale-based classes. Values follow an 8px base unit.

ClassCSS Property
chai-p-{n}padding: n×4px
chai-px-{n}padding-left + right
chai-py-{n}padding-top + bottom
chai-m-{n}margin: n×4px
chai-mx-{n}margin-left + right
chai-my-{n}margin-top + bottom
p-1
p-2
p-4
p-6
✍️

Typography

Control font size, weight, alignment, and line height.

ClassEffect
chai-text-xs12px
chai-text-sm14px
chai-text-lg18px
chai-text-xl20px
chai-text-2xl24px
chai-font-boldfont-weight: 700
chai-text-centertext-align: center

chai-text-xs — Extra small

chai-text-sm — Small text

chai-text-base — Base

chai-text-lg bold

🎨

Colors

Background and text color utilities. Supports 12+ named colors.

ClassEffect
chai-bg-{color}background-color
chai-text-{color}color

Borders

Set border width and color with simple composable classes.

ClassCSS
chai-borderborder: 1px solid
chai-border-2border-width: 2px
chai-border-4border-width: 4px
chai-border-{color}border-color
border
border-2 blue
border-4 red

Border Radius

Smooth out corners from slightly rounded to fully circular.

ClassValue
chai-rounded-sm2px
chai-rounded4px
chai-rounded-lg8px
chai-rounded-xl16px
chai-rounded-full9999px
sm
base
lg
xl
full
🧱

Layout & Flex

Display utilities and flexbox controls for building any layout quickly.

ClassEffect
chai-flexdisplay: flex
chai-justify-centerjustify-content: center
chai-justify-betweenjustify-content: space-between
chai-items-centeralign-items: center
chai-gap-{n}gap: n×4px
chai-flex-colflex-direction: column
A
B
C
Get Started

Installation

Add Chai-Tailwind to your project in seconds.

🌐

CDN — jsDelivr

<script src="https://cdn.jsdelivr.net/gh/rony-codes/chai-tailwind@main/index.js"></script>

Drop before your closing </body> tag. No npm, no bundler, no config.

Quick Example

<div class="chai-bg-grey chai-p-4 chai-rounded-lg chai-text-white chai-font-bold chai-text-center"> Hello, Chai-Tailwind! ☕ </div> <script src="https://cdn.jsdelivr.net/gh/rony-codes/chai-tailwind@main/index.js"></script>
Copied!