A chocolate-themed runtime CSS utility engine. Drop in one script
tag.
No build step, no config — just rich, warm styles.
Get Started
Two ways to add chai-choco-tailwind to your project.
npm / yarn
Then import in your entry file:
CDN / Script Tag (plain HTML)
Works in any plain HTML file — no bundler needed.
How it works
Engine reads all class="…" attributes from the DOM at
runtime.
Matches class names against the chocolate utility map and builds a CSS string.
A single <style> tag is added to
<head> — only what you use.
Design Tokens
12 carefully tuned tones — from void-dark cocoa to warm latte cream.
Gradients
bg-gradient
bg-gradient-warm
bg-gradient-gold
Typography
Font weights, transforms, letter-spacing, and dynamic sizes.
Font Weights
The richest dark chocolate
A hint of caramel warmth
Smooth milk chocolate blends
A delicate vanilla cream note
Transforms · Letter-spacing · Line-height
Premium Reserve · Single Origin
Warm, wide letter spacing
"Every bar tells a story of the bean."
Smooth creamy texture with a warm finish that lingers long after.
Compact. Dense. Every line tightly bound.
Dynamic Size Scale — chai-choco-text-{n} sets font-size to
npx
chai-choco-text-12
12px
chai-choco-text-14
14px
chai-choco-text-16
16px
chai-choco-text-20
20px
chai-choco-text-28
28px
chai-choco-text-36
36px
Components
Three card variants — dark chocolate, cream latte, and glassmorphism.
Rich, intense cocoa with a smooth finish.
Smooth, creamy, and sweet. A classic blend.
Dark chocolate meets golden caramel.
chai-choco-card · chai-choco-card-cream · chai-choco-card-glass
Components
Three variants, two size modifiers, and animated states.
Variants
chai-choco-btn
chai-choco-btn-outline
chai-choco-btn-ghost
Sizes
chai-choco-btn-sm
default
chai-choco-btn-lg
Animated
glow-pulse
shimmer
bounce
Components
Four badge variants for status, labels, and tags.
chai-choco-badge · badge-caramel · badge-cream · badge-dark ·
chai-choco-chip
Components
Dark and cream input variants with caramel focus rings.
Dark input
Click to see caramel focus ring →
Cream input
Click to see caramel focus ring →
Visual Effects
Five shadow depths — from whisper-soft to full caramel glow.
shadow-soft
shadow-md
shadow-hard
shadow-caramel
shadow-glow
Spacing
chai-choco-p-{n} and chai-choco-m-{n} → n ×
4px.
Padding scale
Also available
chai-choco-pt-{n}
padding-top
chai-choco-pb-{n}
padding-bottom
chai-choco-px-{n}
padding left+right
chai-choco-py-{n}
padding top+bottom
chai-choco-m-{n}
margin (all sides)
chai-choco-mt/mb/mx/my-{n}chai-choco-gap-{n}
flex/grid gap
Motion
Eight animations — all GPU-accelerated.
Motion
Hover each box to see its effect.
Layout
Flex and grid helpers for common layouts.
chai-choco-flex-center
chai-choco-flex-between
chai-choco-grid-3
Quick Start
A full working HTML file — copy, paste, open in browser.
Reference
Click any class name to copy it to your clipboard.
Backgrounds
Text Colors
Layout
Spacing — dynamic (n × 4px)
Typography
Borders & Shadows
Buttons
Cards · Badges · Inputs
Animations
Interactions
Roadmap
v1.0 is live — and we're just getting started. Here's what's brewing in the next versions.
chai-choco-dark and
chai-choco-light root classes. Respects system
preference too.
choco.config.js to extend the
palette, add custom classes, and purge unused utilities at build
time.
chai-choco-sm-*, md-*, lg-* breakpoint modifiers so
every utility responds to screen size.
Want to be notified when new versions drop?
⭐ Star on GitHub