[v4] Docs on tailwind.config.js and @config #16803
Replies: 3 comments 6 replies
-
Using |
Beta Was this translation helpful? Give feedback.
-
@DrLightman I had the same issue a few days ago. If you REALLY need a
This way, you get the default On a similar note, as @wongjn mentioned, Tailwind has moved towards a CSS-first configuration approach. By default, Tailwind will still work without a config file. It assumes the default settings and scans files based on its built-in logic, and if you need a config file (and you're not running the above commands I shared), you'll have to manually create one. For some reason the documentation doesn't really specify this, but I think the assumption is that most users that use TailwindCSS in their projects are familiar enough to know this and are upgrading from previous versions. Also, the new TL;DR
No, you should not put |
Beta Was this translation helpful? Give feedback.
-
Hey Guys,most of you have this Issue because you are using a library or some files Tailwind is not watching. But you can use this to still watch these Files. @source "../node_modules/@my-company/ui-lib"; e.g. if you are using the UI Libary @source "../node_modules/@vonreyher-media/cvrocket"; to your CSS and it should work. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm pretty new to the tool and I'm using tailwindcss/cli as watcher.
Where I can find the docs about the popular tailwind.config.js configuration file and how to use it? I'm interested in configuring the cli utility to watch specific paths in my project.
Also, PhpStorm complains that @import directive must be at the top of the file, therefore I'd have to put @config for last, is that correct?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions