One CDN link. Zero class names. Nine themes ready to go.
Every <button>, <input>,
<table> on your page is styled and responds to
data-theme. Want more?
classless.min.css — 48 KB (~7 KB gzip), standalone. One link tag is all
you need. No class names, no build step, no bundler.
Every <button>, <input>,
<table>, <details> is styled automatically
through native HTML element selectors.
Set data-theme on <html> (or any wrapper — it's scoped
to the subtree). Every component below that node re-tints automatically
through inherited CSS custom properties.
localStorage.getItem('theme') &&
document.documentElement.setAttribute('data-theme',
localStorage.getItem('theme')) Every native HTML element below is styled automatically — no class names, no configuration. Classless mode styles the browser's default elements so your semantic markup looks great out of the box.
<h1>–<h6>, <p>, <blockquote>, <code>, <pre> <input>, <textarea>, <select>, <button>, <fieldset> <table>, <ul>, <ol>, <details>, <nav>
You don't need to ship a custom theme. Drop a :root override
in your own stylesheet and every component on the page retints. The default
palette is nine CSS custom properties; override them to match your brand.
Want scoped branding? Apply the same override to a wrapper element
instead of :root. Anything inside inherits — anything
outside keeps the default.
_base.css file — colors, radii, shadows, font stacks, ease curves. Every one is
overridable.
30+ components, 9 themes, animations, hovers, gradients — all available from the same CSS file you already linked.
<link> tag inside <head>. No JavaScript, no build step, nothing else required.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/njx-ui@1/css/classless.min.css">data-theme on the <html> element.
Every component adapts automatically — no extra CSS needed.
<html lang="en" data-theme="dark">
<!-- dark · light · red · blue · green · cyan · yellow · pink · purple --><button>, <input>,
<table>, <details> and more.
<button>Click me</button>
<input type="text" placeholder="email">
<details><summary>FAQ</summary>Answer</details><!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/njx-ui@1/css/classless.min.css">
<title>My App</title>
</head>
<body>
<h1>Hello njX</h1>
<p>No class names needed.</p>
<button>Get Started</button>
<input type="text" placeholder="Your name">
</body>
</html>You're set up. Here's where to go from here.
Free, open-source, MIT licensed. A GitHub star helps others discover the project and keeps development going.
★ Star on GitHub