New
Readable by default
Meaningful classes. Finished states. No runtime.
CSS for AI-assisted teams
Nucleus is a polished, accessible CSS framework with 697 documented classes, zero runtime JavaScript, and machine-readable metadata so coding assistants use it accurately.
<article class="n-card n-card-interactive">
<div class="n-card-body n-stack">
<p class="n-overline">New</p>
<h2>Readable by default</h2>
<button class="n-btn n-btn-primary">
Continue
</button>
</div>
</article>
New
Meaningful classes. Finished states. No runtime.
Why Nucleus
The manifest describes every valid class, component, state, and token. The validator catches anything that does not exist.
Use npm, a CDN, or modular imports. There is no configuration file, runtime package, or required JavaScript.
Focus states, reduced motion, high contrast, dark mode, native controls, and print behavior ship with the framework.
Live playground
Theme and density tokens cascade through real Nucleus components.
Tokens update the whole composition without changing a class name.
Documentation
Install
Version 2.0.0. Prefix every class with n- and it will not collide with your application CSS.
npm install @navitallabs/nucleus-css
Then import @navitallabs/nucleus-css once in your application entry point.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@navitallabs/nucleus-css@2.0.0/dist/nucleus.min.css">
Pin the version in production so future releases cannot change your UI unexpectedly.
Don't want to type commands yourself? Paste this into Claude, Cursor, Codex, ChatGPT, or any AI coding assistant and let it install and wire up Nucleus for you.
Install Nucleus CSS (the @navitallabs/nucleus-css package) in this project. Run `npm install @navitallabs/nucleus-css`, then import it once in the app's entry point (or link dist/nucleus.min.css if this is a plain HTML page). If you support project rules, run `npx @navitallabs/nucleus-css ai-setup <your-tool>` (claude, codex, cursor, or antigravity) — otherwise read node_modules/@navitallabs/nucleus-css/llms.txt before writing any markup. Build every element using only documented `n-`-prefixed Nucleus classes; never invent a class name or reuse another framework's naming convention. Before you finish, run `npx @navitallabs/nucleus-css validate ./src` and fix anything it reports.
AI setup
One command writes the shared class context and the native project rule for your tool.
Creates a scoped rule in .claude/rules.
npx @navitallabs/nucleus-css \
ai-setup claude
Adds an idempotent Nucleus block to AGENTS.md.
npx @navitallabs/nucleus-css \
ai-setup codex
Creates an always-applied rule in .cursor/rules.
npx @navitallabs/nucleus-css \
ai-setup cursor
Creates a workspace rule in .agents/rules.
npx @navitallabs/nucleus-css \
ai-setup antigravity
Machine-readable by design
Nucleus publishes concise and full LLM references, a JSON manifest, and a CLI validator alongside the human documentation.