Open Source · MIT License · v1.1.4

Plain HTML.
Nine themes.
Zero classes.

A classless stylesheet — ~7 KB gzipped over the wire — that styles semantic HTML as-is and flips themes with one attribute. Change the theme and watch the page re-tint instantly.

~7 KB
Gzip bundle
9
Themes
20+
Elements
0
Classes
<html data-theme="dark">
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 classless

Semantic HTML.
Already styled.

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

🏷
Zero class names
Every native HTML element — headings, buttons, inputs, tables, <details> — is styled automatically via element selectors. Write semantic HTML, done.
just HTML
🎨
9 Themes, one attribute
Dark, Light, Red, Blue, Green, Cyan, Yellow, Pink, Purple. Set data-theme on <html> and the whole page re-tints. No JS framework 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
🎛
Variants via data-variant
Accents and states without inventing classes — data-variant on the element keeps your markup semantic.
data-variant
🛡
Scoped by design
Styles activate only inside class-free <main>, <article>, <section> and <form> — coexists safely with any other CSS.
no conflicts
🔑
CSS Variables First
The same 60+ design tokens as njX UI. Change --color-primary once and it ripples through the page.
60+ tokens
Upgrade path to Full
Outgrew classless? The same njx-ui package ships a full component library — 30+ components, utilities, gradients.
njxui.dev
📝
Perfect for Markdown
Rendered Markdown is class-free by nature — docs, blogs and readmes look designed out of the box.
docs & blogs
🚀
Astro & SSG friendly
npm i njx-ui + one import — or a single link tag. Zero JS shipped, a natural fit for content sites.
import once
Comparison

Heavier than Water.
Themier than everyone.

~7 KB gzip over the wire (48 KB minified on disk) gets you 9 switchable themes, data-variant accents and safe scoping — features the smaller classless files don't have.

Feature Water.css Simple.css MVP.css Pico CSS njX Classless ✦
Size (gzip)~3 KB~4 KB~5 KB~10 KB~7 KB
Built-in themes2 (auto)2 (auto)2 + palettes9
Runtime theme switchattribute1 attribute
Variants (data-variant)
Scoped (safe next to other CSS)
Upgrade path to component library✓ njX UI
Build step requiredNoNoNoNoNo
Philosophy

"CSS has everything you need to build a great UI.
You shouldn't have to write it every time — or name a single class."

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.

Ready to build?

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

Get Started — it's free Browse all elements →