Answers for "how to properly install tailwind css in react"

CSS
1

how to properly install tailwind css in react

@import "tailwindcss/base";

@import "tailwindcss/components";

@import "tailwindcss/utilities";
Posted by: Guest on December-24-2020
0

how to properly install tailwind css in react

npx tailwind init tailwind.js --full
Posted by: Guest on December-24-2020
0

how to properly install tailwind css in react

npm install tailwindcss postcss-cli [email protected] -D
Posted by: Guest on December-24-2020
0

how to properly install tailwind css in react

"scripts": {
  "start": "npm run watch:css && react-scripts start",
  "build": "npm run watch:css && react-scripts build",
  "test": "react-scripts test",
  "eject": "react-scripts eject",
  "watch:css": "postcss src/assets/tailwind.css -o src/assets/main.css"
}
Posted by: Guest on December-24-2020
0

how to properly install tailwind css in react

const tailwindcss = require('tailwindcss');
module.exports = {
    plugins: [
        tailwindcss('./tailwind.js'),
        require('autoprefixer')
    ],
};
Posted by: Guest on December-24-2020
0

how to properly install tailwind css in react

touch postcss.config.js
Posted by: Guest on December-24-2020
0

how to properly install tailwind css in react

npx create-react-app react-tailwindcss && cd react-tailwindcss
Posted by: Guest on December-24-2020

Code answers related to "how to properly install tailwind css in react"

Browse Popular Code Answers by Language