-1

I started a web project using tailwind. I do as tailwinf tutorial, install nodeJS and install tailwinf by npm, and then create 2 JSON file name 'package' and 'package lock'. I also config template path in a tailwind.config.js file created when npm install tailwindcss like documentation said

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

but when I tried to add tailwind directives to my CSS file

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

the problem appearthese tailwind directives do not defined

I just want to understand why these tailwind directives are not defined and solve

Momoka
  • 15
  • 2
  • 1
    Are you sure it's not a linting error. https://stackoverflow.com/questions/47607602/how-to-add-a-tailwind-css-rule-to-css-checker – Badal Saibo Aug 15 '23 at 15:28
  • Does this answer your question? [How to add a @tailwind CSS rule to CSS checker](https://stackoverflow.com/questions/47607602/how-to-add-a-tailwind-css-rule-to-css-checker) – Wongjn Aug 15 '23 at 16:07

0 Answers0