This project was bootstrapped with How To Use Tailwind CSS With React and Build a Website with React and Tailwind CSS.
$ npx create-react-app react-app-with-tailwind
$ cd react-app-with-tailwind
$ npm install -D tailwindcss postcss autoprefixer
$ npx tailwindcss init -p
Inside tailwind.config.js we need to specify the path to our React template files by adding the following configuration setting:
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
@tailwind base;
@tailwind components;
@tailwind utilities;