Detecting non-existing color e.g. bg-foo? #18931
Replies: 1 comment 1 reply
-
Yes, it's possible. For example, you could write a PostCSS plugin that receives all existing colors and specifies that the counterpart of Overall, such a script doesn't have much practical use, and you can easily have an arbitrary value that also doesn't exist, which is very hard to detect from the source, like In the case of |
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.
-
Let's say I'm using a color in my HTML Templates that doesn't exist in my tailwind config
Is it possible to use PostCSS or another tool to detect that
bg-foo
doesn't exist in my Tailwind config and output some kind of a warning? Ideally using CLI checker.Beta Was this translation helpful? Give feedback.
All reactions