Closed qleml closed 5 months ago
Yes, I was able to.
Run npm install -D tailwindcss postcss autoprefixer
Run npx tailwindcss init -p
Set tailwind.config.js
as
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
Add the following in index.css
inside the component you are working with (ex: index.css
inside /popup)
@tailwind base;
@tailwind components;
@tailwind utilities;
Start using TailwindCSS
<h1 className="text-3xl font-bold underline">
Hello world!
</h1>
Linking official guide from TailwindCSS as reference here
How to work out in content script folder
I know this is not an issue but was someone able to add tailwindcss for react? if yes how? Thanks!!