No build tools. No npm install (unless you want to). No configuration. Paste one line of HTML and you're done.
Three ways to get njX into your project โ pick whatever fits your workflow.
A real component from njX CSS
njx-ui
1.0.0
~8 KB
MIT
Download the full njx-css/ folder and host it yourself. No CDN dependency, works completely
offline and behind firewalls.
<link> tag inside <head>. No JavaScript,
no build step, nothing else required.data-theme on the <html> element. Every
component adapts automatically โ no extra CSS needed.btn btn-primary or card. That's the
whole API โ just class names on HTML elements.
Click any theme below โ every component on this page updates instantly.
Save preference with: localStorage.setItem('theme', 'purple')
The most commonly used patterns โ ready to drop into your project.
<button class="btn btn-primary">Primary</button> <button class="btn btn-secondary">Secondary</button> <button class="btn btn-outline">Outline</button> <button class="btn btn-ghost">Ghost</button> <button class="btn btn-gradient">Gradient</button> <button class="btn btn-sm btn-primary">Small</button> <button class="btn btn-lg btn-primary">Large</button>
<div class="card">Basic card</div> <div class="card-glow">Glow on hover</div> <div class="card-gradient">Gradient border</div> <div class="card-glass">Glass morphism</div> <div class="card-dark">Dark variant</div>
<span class="tag">Default</span> <span class="tag tag-primary">Primary</span> <span class="tag tag-success">Success</span> <span class="tag tag-danger">Danger</span> <span class="tag tag-accent">Accent</span> <!-- Outline variant --> <span class="tag tag-primary tag-outline">Outline</span>
<h1 class="text-gradient-primary"> Primary gradient </h1> <h2 class="text-gradient-accent"> Accent gradient </h2> <span class="text-gradient-rainbow"> Rainbow </span> <span class="text-gradient-gold">Gold</span>
<!-- Loop animations --> <div class="animate-float">Float</div> <div class="animate-pulse">Pulse</div> <div class="animate-glow">Glow</div> <!-- Hover effects --> <div class="hover-lift">Lifts on hover</div> <div class="hover-glow">Glows on hover</div> <!-- Text effects --> <span class="animate-neon">Neon glow</span>
<!-- 12-column flex grid --> <div class="row"> <div class="col-6">Half</div> <div class="col-6">Half</div> </div> <!-- CSS Grid --> <div class="grid-col-3"> <div>A</div> <div>B</div> <div>C</div> </div>
/* Override any token in your CSS */ :root { /* Change primary color globally */ --color-primary: #ff6b35; /* Adjust base spacing unit */ --space-base: 5px; /* Change border-radius across all components */ --radius-md: 6px; }
<!-- Bulma classes work out of the box --> <button class="button is-primary"> Primary </button> <button class="button is-primary is-rounded"> Rounded </button> <button class="button is-loading"> Loading </button>
<!-- Tailwind-compatible spacing --> <div class="p-4 mt-2 mb-4">...</div> <!-- Flexbox helpers --> <div class="flex items-center gap-4">...</div> <!-- Typography --> <p class="text-sm text-muted">Muted text</p> <h1 class="text-2xl font-bold">Heading</h1> <!-- Background gradients --> <div class="bg-gradient-primary">...</div>
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