@source inline can't select all #18461
Replies: 2 comments 1 reply
-
Thank you for the suggestion. I've converted your issue to an Ideas discussion post as that's where we put feature requests 👍 |
Beta Was this translation helpful? Give feedback.
-
I think it never seems like a good idea to include every class in production. But what does "every even mean? There are virtually infinite possible combinations to begin with. I believe that when you're building something dynamic, it's always a better idea to look for a CSS-based alternative that relies on proper use of CSS variables. Of course, this is just a personal opinion, but I like to share it for those who may not fully realize the downside of unnecessarily large file sizes caused by an overused safelist. Related from here: https://discord.com/channels/486935104384532500/1389337876667306154/1389338994633998468 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Tailwind CSS are you using?
For example: v4.0.14
What build tool (or framework if it abstracts the build tool) are you using?
For example: Next.js 15.3.5
What version of Node.js are you using?
For example: v20.9.0
What browser are you using?
For example: Brave
What operating system are you using?
For example: Windows
Describe your issue
Tailwind v3 allows this safelisting with the following pattern,
/./
. We should be able to do the same in v4 with@source inline
Just did a quick glance, doesn't seem to be possible for now. Looks like the parsers look for specific keywords when compiling "candidates"
Beta Was this translation helpful? Give feedback.
All reactions