So I am working with Tailwind CSS is not compiling my HTML CSS mentions.
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./public/logs.html"
],
theme: {
extend: {},
},
plugins: [],
}
Could you post other files as well such as your package.json, and the .html file where you are either importing the compiled CSS or where you are importing the CSS file with the @tailwind decorators?
npx tailwindcss -i ./path_to_input.css -o ./path_to_output.css --watch while you are developing and make sure to import the outputted CSS file in your .html file..html file.<link href="path_to_output.css" rel="stylesheet" />
In the case you are doing option 2, make sure your output.css file looks something like this:
@tailwind base;
@tailwind components;
@tailwind utilities;
<div class="bg-gray-600"> <fieldset id="userinfo"> <img src="" id="userinfo" alt="" class=""> <p class="username" id="username">Hi!</p> </fieldset> </div> And, /** @type {import('tailwindcss').Config} */ module.exports = { content: [ "./public/logs.html" ], theme: { extend: {}, }, plugins: [], }i had the same problem all i did was restart vscode and reinstalled npx tailwindcss -i ./path_to_input.css -o ./path_to_output.css --watch