nook
Browse the docs

Introduction

Nook is a free, open source set of React components. You do not install it as a dependency. You copy the code into your project with a command, and from then on it is yours to read, change and keep.

It is built to look precise out of the box, and to stay tidy as your product grows.

How it works

  1. Tokens describe your look: color, radius, font, density and shadow, as CSS variables.
  2. Components read only those tokens. They never hard-code a color.
  3. The CLI copies components and their dependencies into your project, and installs the theme you pick.

Because the code is in your repository, there is nothing to override and no version to wait for. Change a file and you have changed the component.

What you get

  • Components for forms, feedback, navigation and overlays, from Button and Input to Slider, Steps and Progress. See the full list.
  • A theme customizer that builds a full palette from one brand color and checks contrast for you.
  • A CLI that works with npm, pnpm, bun and yarn.
  • An open registry format so anyone can publish their own items.
  • Docs written for AI tools, with llms.txt.
  • WCAG 2.1 AA accessibility for every component. See Accessibility.

Principles

  • Compose, do not configure. Components are built from parts, such as Card, CardHeader and CardTitle, instead of long prop lists.
  • One place for variants. Variants and sizes live in a single cva definition at the top of each file.
  • No provider required. Drop a component in and it works. The one exception is Toaster, which you mount once.
  • No CSS-in-JS. Tailwind CSS v4 and CSS variables only.
  • Swap the engine. Complex behavior comes from Base UI, wrapped in Nook's own API, so it can change without breaking your code.
Phase 1 supports React and Next.js
Other frameworks come later. Nook needs Tailwind CSS v4.

Next steps