Nucleus CSS — Full reference (v2.0.0) A polished, accessible, zero-build CSS framework. Package: @navitallabs/nucleus-css Prefix: n- Classes: 697 Tokens: 76 Components: 60 Breakpoints (min-width): sm=576px, md=768px, lg=992px, xl=1200px, xxl=1600px Themes: ocean, forest, rose, amber, mono Densities: compact, spacious Dark mode: @media (prefers-color-scheme: dark) or .n-dark-mode ============================================================ DESIGN TOKENS (CSS custom properties, override to theme) ============================================================ --n-primary: #0f766e --n-primary-h: #0b5f59 --n-secondary: #147d74 --n-secondary-h: #0f665f --n-success: #15803d --n-success-h: #166534 --n-danger: #dc2626 --n-danger-h: #b91c1c --n-warning: #f59e0b --n-warning-h: #d97706 --n-info: #0e7490 --n-info-h: #155e75 --n-light: #f1f5f9 --n-dark: #1e293b --n-text: #1e293b --n-text-muted: #64748b --n-bg: #ffffff --n-bg-muted: #f8fafc --n-border-color: #e2e8f0 --n-surface: #ffffff --n-surface-raised: #ffffff --n-surface-sunken: #f1f5f9 --n-overlay: rgba(15, 23, 42, 0.58) --n-focus: rgba(15, 118, 110, 0.24) --n-primary-soft: rgba(15, 118, 110, 0.12) --n-primary-border: rgba(15, 118, 110, 0.32) --n-primary-ink: #0b5f59 --n-secondary-soft: rgba(20, 125, 116, 0.12) --n-visited: #0f766e --n-on-primary: #ffffff --n-on-secondary: #ffffff --n-on-success: #ffffff --n-on-danger: #ffffff --n-on-warning: #111827 --n-on-info: #ffffff --n-space-0: 0 --n-space-1: 0.25rem --n-space-2: 0.5rem --n-space-3: 1rem --n-space-4: 1.5rem --n-space-5: 3rem --n-gutter: 16px --n-container-sm: 540px --n-container-md: 720px --n-container-lg: 960px --n-container-xl: 1200px --n-container-xxl: 1600px --n-font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif --n-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace --n-text-xs: 0.75rem --n-text-sm: 0.875rem --n-text-base: 1rem --n-text-lg: 1.125rem --n-text-xl: 1.25rem --n-text-2xl: 1.5rem --n-text-3xl: 1.875rem --n-text-4xl: 2.25rem --n-radius-sm: 0.25rem --n-radius: 0.5rem --n-radius-lg: 0.75rem --n-radius-xl: 1rem --n-radius-full: 9999px --n-shadow-sm: 0 1px 2px rgba(0,0,0,.06) --n-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06) --n-shadow-md: 0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06) --n-shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05) --n-shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 8px 10px rgba(0,0,0,.04) --n-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08) --n-shadow-glow: 0 0 0 1px rgba(15, 118, 110, 0.16), 0 16px 48px rgba(15, 118, 110, 0.16) --n-ease: cubic-bezier(.4,0,.2,1) --n-duration: 150ms --n-duration-slow: 240ms --n-control-height: 2.5rem --n-control-padding-x: 0.875rem --n-component-gap: var(--n-space-3) --n-section-space: clamp(3rem, 7vw, 6rem) ============================================================ COMPONENTS (states, variants, and a valid HTML example) ============================================================ ## n-container — Container Centered, max-width page container with responsive breakpoints. Parts: n-container-fluid Responsive: yes Notes: Use n-container-fluid for a full-width container with gutters but no max-width. Example:
## n-row — Grid row 12-column CSS grid row. Pair with n-col-* children. Parts: n-col-1, n-col-6, n-col-12, n-col-md-6, n-col-lg-4 Responsive: yes Notes: Column classes exist for spans 1–12 at base, sm, md, lg, and xl breakpoints (e.g. n-col-md-6). Example:
Left
Right
## n-auto-grid — Auto grid Responsive grid that fits as many columns as space allows. Parts: n-grid-auto-fit, n-grid-auto-fill Notes: Set the minimum column width with the --n-grid-min custom property. Example:
One
Two
Three
## n-sidebar-layout — Sidebar layout Two-column layout that collapses to a single column on narrow screens. Parts: n-sidebar-right Responsive: yes Notes: Add n-sidebar-right to place the sidebar after the main content. Example:
Content
## n-cluster — Cluster Flex row of items that wrap, with consistent gaps. Example:
New Stable
## n-split — Split Pushes two groups to opposite ends of a row. Example:
Title
## n-stack — Stack Vertical grid stack with a consistent gap between children. Example:

First

Second

## n-btn — Button Base button. Combine with a color variant and optional size. Recommended element: ## n-button-group — Button group Joins adjacent buttons into a single segmented control. Example:
## n-card — Card Surface container with optional header, body, and footer regions. Variants: n-card-interactive, n-card-elevated Parts: n-card-header, n-card-body, n-card-footer, n-card-img Notes: Add n-card-interactive for a hover lift, or n-card-elevated for a stronger shadow. Example:
Plan

Everything you need to start.

## n-input — Text input Full-width text field. Pair with n-label inside an n-form-group. Recommended element: Variants: n-input-success, n-input-error Sizes: n-input-sm, n-input-lg Parts: n-form-group, n-label, n-helper-text, n-error-text States: focus, disabled, aria-invalid Accessibility: Every control needs an associated
Parts: n-form-grid, n-field-row Example:
Address
## n-navbar — Navbar Sticky top navigation bar with inline links or a CSS-only hamburger menu. Recommended element: