DOCUMENTATION

Installation

Steps to follow for getting started with tailwind:

Tailwind

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

  1. Start command prompt window or terminal and change directory to your folder.
    
    cd folder-path
                
  2. Check npm is installed or not,if it is not then download and install(LTS version) from official node js website.
    
    npm -v       //To check the npm version
                
  3. Install via npm.
    
    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
                

Updated on January 27, 2022
Was this page helpful?