Visual Studio Code Insider .v1.100.0-insider. Tailwind CSS Intellisense v0.14.15. Tailwind v3.4.17 installed via npm. Windows 11 64-bit.
Tailwind config:
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
fontFamily: {
sans: ["Roboto", "sans-serif"],
},
gridTemplateColumns: {
"70/30": "70% 28%",
},
},
},
plugins: [],
};
Steps to reproduce:
- Run
npm create vite@latest - Run
npm install -D tailwindcss@3 postcss autoprefixer - Run
npx tailwindcss init -p - Add to Tailwind CSS config
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
- Try entering a Tailwind class in
classNameattribute in JSX files or inclassin HTML files.
Tailwind CSS autocomplete does not work in React JSX files and HTML files.
"tailwindCSS.experimental.configFile": "tailwind.config.js"