Skip to content
/ twinit Public

Setup tailwindcss on your project with one command

License

Notifications You must be signed in to change notification settings

ndaba1/twinit

Repository files navigation

Tailwind Init (twinit)

npm npm NPM

twinit gif

With the twinit CLI, you no longer have to setup tailwind manually. It auto detects the framework that you are using and the preferred package manager. You simply invoke a simple command and the CLI scaffolds everything you need to get up and running with tailwind on your framework of choice. The following frameworks are currently supported, with support for more being worked on:

  • CRA
  • Preact
  • Next.js
  • Gatsby.js
  • Remix
  • Astro
  • Vue.js
  • Angular
  • Ruby on rails
  • Nuxt.js v2 and v3
  • Solid.js
  • Svelte Kit
  • Svelte + Rollup
  • Laravel
  • Vite using: React, Vue, Svelte

Simply run:

npx twinit

CLI Options

You can pass the following options to the CLI

npx twinit --skip-deps # this will skip deps and modify config files only
# or npx twinit -s

npx twinit --only-deps # this will only install the deps
# or npx twinit -d