Replies: 1 comment 1 reply
-
It is fundamentally how regular-expression- If you want to exclude these opacity-modified classes, consider being more strict with your regular expression, something like: /^text-x(0|1|2|3|4|5|6|7|8|9)(cat|dog)$/ Or slightly simplified to: /^text-x\d(cat|dog)$/ |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello there!
I'm trying to add these colors to the safelist in
tailwind.config.js
:pattern: /text-x(0|1|2|3|4|5|6|7|8|9)(cat|dog)/
The problem is that after compiling the assets, Tailwind outputs the opacity for every color mentioned above. (Eg.
text-x0cat/5
,textx0cat/10
).Is this a bug, or a feature? Is there any way to omit the opacity versions for the
text-x0cat
?P/S - I need to safelist these because the quiz generates the classes dynamically by using a JS function.
Beta Was this translation helpful? Give feedback.
All reactions