Zinc
Slate
Violet
Rose
Emerald
Blue
Orange
Star
ESC
Components (51)
AccordionTier 2: Micro-EnhancerAI Prompt BoxTier 2: Micro-EnhancerAlertTier 0: Pure HTMLAvatarTier 0: Pure HTMLBadgeTier 0: Pure HTMLButtonTier 0: Pure HTMLCalendarTier 2: Micro-EnhancerCardTier 0: Pure HTMLCheckbox & RadioTier 0: Pure HTMLColor PickerTier 2: Micro-EnhancerComboboxTier 2: Micro-EnhancerCommand PaletteTier 2: Micro-EnhancerContext MenuTier 2: Micro-EnhancerVirtualized Data GridTier 2: Micro-EnhancerData TableTier 2: Micro-EnhancerDate PickerTier 2: Micro-EnhancerDate Range PickerTier 2: Micro-EnhancerDialogTier 2: Micro-EnhancerDropdown MenuTier 2: Micro-EnhancerFile Upload & DropzoneTier 2: Micro-EnhancerInput & FieldTier 0: Pure HTMLNavigation MenuTier 2: Micro-EnhancerOTP / PIN InputTier 2: Micro-EnhancerPopoverTier 2: Micro-EnhancerProgressTier 0: Pure HTMLResizable Split PaneTier 2: Micro-EnhancerSegmented ControlTier 2: Micro-EnhancerSelectTier 2: Micro-EnhancerSeparatorTier 0: Pure HTMLSheet / DrawerTier 2: Micro-EnhancerSkeletonTier 0: Pure HTMLSliderTier 2: Micro-EnhancerStepper / WizardTier 2: Micro-EnhancerSwitchTier 0: Pure HTMLTableTier 0: Pure HTMLTabsTier 2: Micro-EnhancerTags InputTier 2: Micro-EnhancerToast / ToasterTier 2: Micro-EnhancerTooltipTier 2: Micro-EnhancerTree ViewTier 2: Micro-EnhancerSpinnerTier 0: Pure HTMLEmpty StateTier 0: Pure HTMLStackTier 0: Pure HTMLGridTier 0: Pure HTMLContainerTier 0: Pure HTMLSparklineTier 2: Micro-EnhancerDockTier 2: Micro-EnhancerTimelineTier 2: Micro-EnhancerAI ReasoningTier 2: Micro-EnhancerAI Tool CallTier 2: Micro-EnhancerAI Approval GateTier 2: Micro-Enhancer

Next.js

Install and configure NNUI-KIT for Next.js 15 with App Router and React 19.

1

Create project

Create a new Next.js project using create-next-app:

Terminalbash
npx create-next-app@latest my-app --typescript --eslint --app --no-tailwind --src-dir
cd my-app
2

Install NNUI-KIT

Install the package from npm:

Terminalbash
npm install nnuikit
3

Configure Root Layout & Tokens

Import the design token stylesheet in src/app/layout.tsx and set your default theme:

src/app/layout.tsxtsx
import type { Metadata } from 'next'

// 1. Import NNUI design tokens (CSS variables & cascade layers)
import 'nnuikit/tokens/theme.css'

// 2. Global app styling
import './globals.css'

export const metadata: Metadata = {
  title: 'My NNUI App',
  description: 'Built with Next.js 15 and NNUI-KIT',
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="en" data-theme="dark">
      <body>{children}</body>
    </html>
  )
}

Add clean default reset styles in src/app/globals.css:

src/app/globals.csscss
:root {
  color-scheme: dark light;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ui-bg-canvas, #09090b);
  color: var(--ui-text-primary, #fafafa);
  font-family: system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
4

Add components to your page

NNUI-KIT primitives render cleanly in Server Components. For interactive event handlers, add 'use client' at the top of your page or component:

src/app/page.tsxtsx
'use client'

import { Button, Card, Input, Badge } from 'nnuikit/react'

export default function Home() {
  return (
    <main style={{ minHeight: '100vh', display: 'flex', alignItems: 'center', justifyContent: 'center', padding: '2rem' }}>
      <Card style={{ width: '100%', maxWidth: '440px', padding: '2rem', display: 'flex', flexDirection: 'column', gap: '1.25rem' }}>
        <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
          <h1 style={{ margin: 0, fontSize: '1.35rem', fontWeight: 700 }}>Next.js + NNUI-KIT</h1>
          <Badge variant="primary">App Router</Badge>
        </div>

        <p style={{ margin: 0, color: 'var(--ui-text-secondary, #a1a1aa)', fontSize: '0.875rem' }}>
          Universal Light-DOM UI primitives with zero Shadow DOM accessibility traps.
        </p>

        <Input placeholder="Enter username..." />

        <Button variant="primary" onClick={() => alert('Submitted!')}>
          Launch Dashboard
        </Button>
      </Card>
    </main>
  )
}
5

Run development server

Start the Next.js local development server:

Terminalbash
npm run dev
← All FrameworksExplore All Components →