Skip to content

Examples

These previews use the same injected stylesheet as the reference data. Animation utilities rely on keyframes included on documentation routes.

Layout

Flex Row

chai-flex chai-items-center chai-gap-4 chai-p-4 chai-rounded-lg chai-border chai-bg-white chai-shadow-sm

Card titleSupporting text

Flex Column

chai-flex chai-flex-col chai-gap-3 chai-items-start

Item one
Item two
Item three

Flex Wrap

chai-flex chai-flex-wrap chai-gap-2

ReactNext.jsTypeScriptTailwindChaiwindNode.jsFramer

Justify Between

chai-flex chai-justify-between chai-items-center

Balance$4,200.00

Grid 3 Columns

chai-grid chai-grid-cols-3 chai-gap-4

Grid Cards

chai-grid chai-grid-cols-2 chai-gap-4

12,400

Users

$8,200

Revenue

3,100

Orders

240

Returns

Typography

Type Scale

Display — 4xl bold

Heading — 3xl semibold

Title — 2xl medium

Subtitle — xl normal

Body — base with comfortable line height and gray color for readability.

Small — sm for captions and supporting text

Eyebrow — xs uppercase tracked

Font Weights

Thin — 100

Light — 300

Normal — 400

Medium — 500

Semibold — 600

Bold — 700

Black — 900

Text Colors

chai-text-red

chai-text-orange

chai-text-yellow

chai-text-green

chai-text-blue

chai-text-purple

chai-text-pink

chai-text-teal

chai-text-indigo

Text Decoration & Transform

chai-underline — underlined text

chai-line-through — strikethrough

chai-uppercase tracking-wider

chai-capitalize — first letter only

chai-italic — italic style

Spacing

Padding Scale

chai-p-2
p-2
chai-p-4
p-4
chai-p-6
p-6
chai-p-8
p-8

Margin & Auto Center

chai-mx-auto chai-max-w-xs

This box is centered with chai-mx-auto

Gap Scale

gap-1
gap-2
gap-4
gap-6
gap-8
Colors

Background Colors

red
orange
yellow
green
teal
blue
indigo
purple
pink
gray
black
white
Borders & Radius

Border Radius

sm
default
md
lg
xl
2xl
full

Border Width & Color

chai-border chai-border-gray — 1px gray border
chai-border-2 chai-border-blue — 2px blue border
chai-border-4 chai-border-orange — 4px orange border
Shadows

Box Shadows

shadow-sm
shadow
shadow-md
shadow-lg
shadow-xl
shadow-2xl
Sizing

Width Scale

w-16 — 4rem
w-32 — 8rem
w-48 — 12rem
w-64 — 16rem

Height Scale

h-8
h-12
h-16
h-24
h-32
Position

Position — Relative + Absolute

chai-relative / chai-absolute chai-top-0 chai-right-0

Opacity

Opacity

25%
50%
75%
100%
Components

Buttons

Composed button styles using chai- utilities.

Badges

DefaultSuccessErrorWarningPremiumBetaMuted

Alerts

ℹ️Your account has been updated.
✅Changes saved successfully.
⚠️Please review before submitting.
❌Something went wrong. Try again.
Animations

Animations

Keyframes are injected automatically when chai-animate-* classes are found.

pulse
spin
bounce
ping