It appears that you are using the default configuration file provided by Next when creating a new project with Tailwind. Here are some things to double-check:
- Make sure that you have properly installed and activated the TailwindCSS Intellisense Extension. Additionally, check the
editor.quickSuggestions
setting after installation.
If completions are not triggering in VS Code while editing "string" content (such as within JSX attribute values), adjusting the editor.quickSuggestions
setting might help enhance your experience:
"editor.quickSuggestions": {
"strings": "on"
}
- Verify that Tailwind is properly installed in the
node_modules
directory at the root of your project and is listed in both package.json
and package-lock.json
.
- Confirm that the config file (which seems to be correctly located based on the screenshot) is named
tailwind.config.ts
and placed at the root of the project.
- Referencing the official documentation:
Ensure that your VS Code settings do not hide or ignore your Tailwind config file, for example through the files.exclude
or files.watcherExclude
settings.
- Lastly, share the output of the
Tailwind CSS: Show Output
command (you can access the command palette with Ctr+Shift+P by default) for more details about the initialization of Tailwind. The process should involve loading the config file, postcss, and building Tailwind.