Getting started
File Structure
When you create a new monorepo project, the CLI will create the following file structure:Requirements
-
Every workspace must have a
components.jsonfile. Apackage.jsonfile tells npm how to install the dependencies. Acomponents.jsonfile tells the CLI how and where to install components. -
The
components.jsonfile must properly define aliases for the workspace. This tells the CLI how to import components, hooks, utilities, etc.
apps/web/components.json
packages/ui/components.json
-
Ensure you have the same
style,iconLibraryandbaseColorin bothcomponents.jsonfiles. -
For Tailwind CSS v4, leave the
tailwindconfig empty in thecomponents.jsonfile.