create-leptos-csr-tw
This CLI provides a quick setup to start building web applications using the Leptos web framework integrated with TailwindCSS. It also includes configurations for deployment with Vercel and handling public assets.
Installation
Install create-leptos-csr-tw
globally by running:
cargo install create-leptos-csr-tw
This will install the binary and make it available from your command line.
Usage
Once installed, you can initiate a new Leptos project with TailwindCSS by simply running:
create-leptos-csr-tw
Follow the prompts to configure your project. The CLI will ask if you want to use Vercel for deployment, and if you choose so, it will generate a vercel.json for client-side routing.
To run the app, simply run both:
npx tailwindcss -i ./input.css -o ./style/output.css --watch
and
trunk serve --open
Boilerplate
To view the boilerplate, you can check out leptos-csr-tailwind.