Skip to content

Getting started

Hozo plugs into the build you already have. In a project that builds, hozo init makes the edits these pages describe (in releases after 0.4.0):

sh
npx @hozo/cli init           # what it would install, create and editnpx @hozo/cli init --write   # do it, then check the setup with hozo square

It installs the packages, picks or creates the stylesheet, and adds Hozo to the config. A config it does not recognise is left alone, and it prints the lines to add instead. To do it by hand, or to see what it did, pick your stack:

Stack Package Page
Vite 8+ @hozo/vite Vite
Next.js (Turbopack or webpack) @hozo/next Next.js
React Native, Expo @hozo/metro Metro
Astro @hozo/vite Astro
Storybook @hozo/storybook Storybook
TanStack Start @hozo/vite TanStack Start

To try Hozo without installing anything, open the project from the Vite page, the Astro page or the TanStack Start page in StackBlitz, or a sales dashboard with charts, a table and forms built from the published packages. To build a smaller one yourself, step by step, follow the tutorial.

Every integration takes the same options, and the only one most projects need is css — the path to the Tailwind entry stylesheet that defines the project’s design tokens. Left out, Hozo looks for the usual filenames and falls back to Tailwind’s defaults if it finds none. If your tokens live somewhere it did not guess, say so: a project compiled against the wrong palette gets wrong numbers and unresolved variables, not an error.

  • Vite projects need Vite 8 or newer. On Vite 6 or 7 the build fails at config load with an error that names neither Vite nor its version.
  • React Native 0.87 on Android needs one dependency pinned. See Metro.
  • If something else stops you, Troubleshooting lists what others have hit.