Skip to main content

Tailwind CSS

A utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 that can be composed to build any design, directly in your markup.

🌐 tailwindcss.com, docs, code

Getting started

Playgrounds

New project

Install Tailwind CLI locally:

npm install -D tailwindcss

Create your tailwind.config.js file:

npx tailwindcss init

Run the CLI tool to scan your template files for classes and build your CSS:

npx tailwindcss -i ./src/input.css -o ./src/output.css --watch

IDE

Visual Studio (VS) Code

Extensions:

Additional steps:

  • On css file, select Language Mode to Tailwind CSS

Trainings

Resources