Documentation

Installation

Steps to follow for getting started with the tailwind:

Tailwind

To take advantage of Tailwind’s customization features, you’ll want to install Tailwind and its peer-dependencies via npm.

  1. Start command prompt window or vs-code terminal and change directory to the folder in which you want to save your project.
    cd folder-path
  2. To Check whether npm is installed or not type the below written code ,if it shows the version it means npm is installed or else you will have to install it from official node js website and download the LTS version.

    npm -v       //To check the npm version
  3. Install Tailwind via npm- In Explorer of vs-code(Ctrl+Shift+E) node_modules,package.json and package-lock.json files will get added.
    npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
  4. To customize your Tailwind installation, generate a config file for your project using the Tailwind CLI utility included when you install the tailwindcss npm package:

    npx tailwindcss init
  5. For build
    npm run build -css