Open Source ยท MIT License ยท v1.0.0

9 themes.
One attribute.

A modern CSS component library โ€” 40 KB, zero dependencies, zero build step. Switch the entire UI theme with a single HTML attribute.

40KB
Full bundle
0
Dependencies
9
Built-in themes
25+
Components
60+
CSS variables
Theme system

Switch the entire UI
with one HTML attribute

No CSS overrides. No JavaScript required. Every component adapts automatically through CSS custom properties inherited from data-theme.

Dark
Light
Red
Blue
Green
Cyan
Yellow
Pink
Purple
<html data-theme="dark">
Dashboard
Real-time analytics overview with live metrics and trend data.
Sign in
Components
Mix and match freely.
primary success filled 3
That's literally it โ†’ <html data-theme="purple">
Why njX

Everything you need.
Nothing you don't.

Built on CSS custom properties from the ground up. No preprocessors, no PostCSS, no config files.

๐ŸŽจ
9 Themes, one attribute
Dark, Light, Red, Blue, Green, Cyan, Yellow, Pink, Purple. Every component adapts automatically. No extra CSS needed.
data-theme="purple"
โšก
Zero build step
One CDN link and you're running. No npm, no webpack, no PostCSS config. Works in any HTML file, today.
CDN ready
๐Ÿ”‘
CSS Variables First
60+ design tokens. Change --color-primary once and it ripples through every component. Theme your brand in 30 seconds.
60+ tokens
โœจ
Hover effects built in
30+ hover classes: scale, lift, glow, rotate, shimmer, blur, brightness. Effects that usually need custom CSS โ€” already here.
30+ effects
๐ŸŒˆ
Gradients out of the box
15+ background gradients, 8 text gradients, gradient borders, animated gradients. Design-ready without a single line of custom CSS.
_gradients.css
๐ŸŽญ
Animations included
Float, pulse, bounce, spin, heartbeat, wiggle, glow, neon text, rainbow, fade-in variants. Add a class, get an animation.
_animations.css
โ™ป๏ธ
Bulma compatible
Already using Bulma? Classes like .button.is-primary work without changes. Migrate progressively, zero rewrites.
Drop-in replacement
๐Ÿ“
Two grid systems
Classic 12-col flex grid (.row + .col-*) and modern CSS Grid helpers (.grid-col-3). Pick what fits.
_grid.css
๐ŸŽฏ
Tailwind-compatible utils
Same class names as Tailwind โ€” flex gap-4 mt-6 px-4 rounded-lg work out of the box. Zero PostCSS, zero build step, 40 KB instead of 3 MB.
_utils.css
Familiar API

Know Tailwind?
You already know njX.

njX utilities use the exact same class names as Tailwind โ€” no new syntax to learn. The difference: no build step, no PostCSS config, no 3 MB pipeline. Just 40 KB, drop it in and ship.

Tailwind CSS 3 MB+ ยท requires PostCSS build
tailwind.config.js + postcss.config.js
<!-- npm install tailwindcss postcss autoprefixer --> <!-- + tailwind.config.js + postcss.config.js + purge paths --> <div class="flex items-center gap-4 mt-6 px-4"> <button class="bg-blue-500 text-white font-bold px-6 py-2 rounded-lg hover:scale-105"> Click me </button> </div>
njX UI 40 KB ยท zero build ยท one CDN link
index.html โ€” nothing else needed
<!-- <link rel="stylesheet" href="njx.min.css"> โ€” done --> <div class="flex items-center gap-4 mt-6 px-4"> <button class="btn btn-primary hover-scale"> Click me </button> </div> <!-- + 9 themes, hover FX, gradients, animations -->
โœ“ Same utility class names
โœ“ Zero build step
โœ“ 40 KB vs 3 MB+
โœ“ Pre-built themed components on top
โœ“ No PostCSS, no config files
โœ“ Drop-in for any HTML file
Quick Start

Up and running
in 3 steps

No CLI. No config. No node_modules.
Just paste and build.

1
Add the CDN link
One line in <head>. That's all the setup you'll ever do.
2
Set your theme
Add data-theme="dark" to <html>. Switch anytime, no rebuild.
3
Use any component
Add classes like .btn.btn-primary, .card-glow, .inp. Done.
index.html
<!-- Step 1: One line install --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/njx-ui/css/style.min.css" /> <!-- Step 2: Choose your theme --> <html data-theme="dark"> <!-- Step 3: Start building --> <button class="btn btn-primary"> Launch </button> <div class="card-glow hover-lift"> <h2 class="text-gradient-primary"> Hello njX </h2> <p class="text-muted mt-2"> Built in 30 seconds. </p> </div>
Live preview

Hello njX

Built in 30 seconds.

Components

27+ ready-to-use components

Everything a UI needs. Forms, navigation, feedback, layout โ€” all styled, all themed.

๐Ÿ”ฒ Buttons 14 variants
๐Ÿƒ Cards 7 variants
๐Ÿ“‹ Forms & Inputs float, glass
๐Ÿท Tags & Badges dots, filled
๐Ÿ’ฌ Modals 4 variants
๐Ÿ—‚ Tabs switchable
๐Ÿ“‚ Accordion collapse
๐Ÿ”” Notifications toast, banner
๐Ÿ“Š Tables striped, hover
๐Ÿงญ Breadcrumbs nav
๐Ÿ“ Grid System flex + css grid
๐Ÿ”ค Typography full scale
๐ŸŒˆ Gradients 15+ types
๐ŸŽญ Hover FX 30+ effects
โœจ Animations loop + fade-in
๐Ÿ—ƒ Panel sidebar
๐Ÿ”„ Progress bars
๐Ÿ”ป Dropdown nav menu
๐ŸŽ› Slider range input
๐Ÿ”ฒ Sections hero, banner
๐ŸŽ  Carousel scroll-snap
๐Ÿ”— Links styles + hover
Comparison

Heavier than chota.
Lighter than everything else.

40KB gets you themes, animations, hover effects and gradients โ€” features that don't exist anywhere else at this weight.

Feature chota Pico CSS Bulma njX โœฆ
Bundle size 3 KB 9 KB 78 KB ~40 KB
Built-in themes โ€” 2 โ€” 9
CSS Custom Properties partial โœ“ โ€” โœ“ full
Hover effects โ€” โ€” โ€” 30+
Gradients โ€” โ€” โ€” 15+
Animations โ€” โ€” โ€” โœ“
Text gradients โ€” โ€” โ€” 8 styles
Bulma compatible โ€” โ€” โ€” โœ“
Build step required No No No No
Tailwind-compatible utils โ€” โ€” โ€” โœ“ same API
JS required No No No No
Philosophy

"CSS has everything you need to build a great UI.
You just shouldn't have to write it every time."

njX is built on the belief that a CSS library should be invisible โ€” no framework lock-in, no class name memorisation marathons, no config files. Just CSS custom properties doing what they were designed to do.

Live preview

See it in action

Buttons โ€” 14 variants
Cards โ€” 7 variants
card
card-glass
card-dark
card-bordered
card-glow
card-gradient
Text Gradients โ€” 8 styles
Primary Accent Sunset Ocean Gold Cosmic Rainbow
Animations โ€” loop classes
float
pulse
bounce
spin
โ™ฅ
heartbeat
glow
Neon text
Rainbow

Ready to build?

One line. Any HTML file. Any project. Start in under a minute.

Get Started โ€” it's free Browse all components โ†’