This is my tailwind config file.I've tried few other contents available in stackoverflow still Its not working.

anybody have any idea other than content any other mistakes?.Thanks in advance

/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.js"],
 theme: {
extend: {},
 },
   plugins: [],
    }
1

There are 1 best solutions below

2
Sathishkumar Rakkiyasamy On

Make sure you have added the following in your index.css file

@tailwind base;
@tailwind components;
@tailwind utilities;

In tailwind.config.js file

content: [
    "./src/**/*.{js,jsx,ts,tsx}",
],

For more details https://tailwindcss.com/docs/installation/framework-guides