Wildcard syntax in safelisting #18096
mahmoudalghalayini
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
I don't think so. There is brace expansion syntax but that needs defined limits: @source inline("{bg,text,border}-{red,green,blue}-{50..950..50}"); |
Beta Was this translation helpful? Give feedback.
1 reply
-
I believe this is something TailwindCSS really tries to avoid. The goal is to keep the compiled CSS as small as possible. If you need access to all colors - for example, for dynamic behavior - it's better to use native CSS and variables instead. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to do the following?
I want to safelist all of the following classes in all cases to give the user flexibility when importing the library to use it.
Beta Was this translation helpful? Give feedback.
All reactions