tailwind.js code example

Example 1: tailwindcss cdn

<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">

Example 2: tailwind cdn

<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">

Example 3: tailwind css npm

# Using npm
npm install tailwindcss

# Using Yarn
yarn add tailwindcss

Example 4: tailwindcss init full

//Scaffolding the entire default configuration

//This will full tailwind.config.js file at the root of your project:

npx tailwindcss init -- full

Tags:

Misc Example