Open duhnunes opened 3 months ago
Hi , the below might help you to solve the issue: 🚀 To ensure compatibility with Tailwind CSS using the settings in your settings.json , follow these steps and considerations:
module.exports = {
content: [
"./src/**/*.{html,js,jsx,ts,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
Tailwind CSS IntelliSense: Provides autocomplete and linting for Tailwind CSS classes. Color Highlight or Colorize: Helps highlight colors in your code.
{
"colorize.languages": [
"javascript",
"typescript",
"tailwindcss",
"jsx",
"tsx",
"json",
"html",
"css",
"scss",
"sass"
],
"colorize.include": [
"**/*.css",
"**/*.scss",
"**/*.sass",
"**/*.less",
"**/*.styl",
"**/*.ts",
"**/*.tsx",
"**/*.json",
"**/*.html",
"**/*.jsx",
"**/*.js"
],
"tailwindCSS.emmetCompletions": true
}
{
"tailwindCSS.colorDecorators": true
}
Restart VS Code After making these changes, restart VS Code to ensure all settings are applied correctly.
Add Custom Colors in Tailwind Config If you're using custom colors in your Tailwind configuration, make sure they are defined in your tailwind.config.js:
module.exports = {
theme: {
extend: {
colors: {
customColor: '#123456',
anotherColor: '#abcdef',
},
},
},
}
I hope this would be helpful for you. ✨
Hi,
Is there any way to make it compatible, with tailwindcss? I tried putting it in the settings, but nothing happened:
Maybe some setting in tailwind.config.js? I didn't find anything related when searching
Cheers, DuH