Getting started
Coffee and cream, after nonovel: a serif for display, bold small labels, and a thick focus ring. Set a project up for Mocha once, then add its components and blocks from their pages.
With the CLI
One command installs Mocha's theme, fonts and shared helpers, and Lucide, the icon set its components draw with:
Then add components the same way, each from its page.
Manually
1. Install the packages
2. Add the theme
Copy Mocha'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.