- this is a mini project to learn tailwind css.
- online: https://loopstodios-react.vercel.app/
https://tailwindcss.com/docs/guides/create-react-app
1- type in terminal:
npm install -D tailwindcss
2- type in terminal:
npx tailwindcss init
3- add this to the index.css file:
@tailwind base;
@tailwind components;
@tailwind utilities;
4- in the tailwind.config.js write this:
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
5- finally fix the babel bug by installing:
npm i -D @babel/plugin-proposal-private-property-in-object