Getting started
Base's look built on Native Shell (nsh): native views on every platform, and on the web through WebAssembly. Set a project up for Shell once, then add its components and blocks from their pages.
Shell is built on Native Shell: TSX that nsh draws with native views on every platform, and on the web with WebAssembly. Its components wrap nsh/base's parts, and a project copies their source: there's no CLI for nsh systems.
1. Add the theme
Save Shell's theme next to your nsh.json. It sets the tokens its
classes name in light and dark mode, like primary, and its spacing scale as
tokens, like --space-lg: nsh has no named spacing steps, so classes name the
token instead.
2. Point nsh.json at it
Name the theme, add Shell's changes to Tailwind's scales, and alias ~ to your source folder: components import each other and the helpers through
it, like ~/components/ui/button.
3. Copy the shared helpers
Then copy primitives and the rest
into src/components/ui/, each from its page.