Getting started
Square, achromatic and compact, after newsbrew. The default system, and the docs site's own. Set a project up for Base once, then add its components and blocks from their pages.
With the CLI
One command installs Base's theme, fonts and shared helpers, and Lucide, the icon set its components draw with:
Then add components and blocks the same way, each from its page.
Manually
1. Install the packages
2. Add the theme
Copy Base's theme next to your stylesheet. It maps the system's tokens to Tailwind and sets their light and dark values.
And its fonts:
Import them after Tailwind:
3. Copy the shared helpers
4. Add the ~/ alias
Components import each other and the helpers through ~/, like
~/components/ui/button. Point it at your source folder. With the CLI, set the
alias in components.json instead, and it rewrites the imports to match.