init
This command initializes your project with required dependencies and configurations for Kuro UI components.
WARNING
⚠️ The Tailwind CSS installation performed by init is specifically designed and tested for projects using Vite as the build tool. If your project uses a different bundler or setup, the automatic configuration may not work correctly, and you will need to add Tailwind CSS manually.
⚠️ Note: Tailwind CSS setup is only required if you use Kuro components. If you only use utils or composables, you do not need to run the init command or install Tailwind CSS.
Usage
bash
npx kuro-ui initbash
npx github:Bartek-Nowak/Kuro initWhat it does
- Installs Tailwind CSS v4 and related packages (optional — you can skip this during setup).
- Always installs
tailwind-mergepackage. - Optionally asks if you want to install
lucide-vueicons package. - Copies utility files (e.g.
src/utils/kuro) to your project. - Updates
vite.config.tsto include the Tailwind CSS plugin (optional if you installed Tailwind).
Notes
- Assumes your project uses Vite with a
vite.config.tsfile. - The utility files are copied from the package repository to your project.
- If required files or config are missing, it will log an error and exit.