-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom colors are not recognized when they are declared as functions #124
Comments
I made a demo base on adam's demo https://play.tailwindcss.com/EtWivxBTHl |
I just published a beta version with the fixes listed on #132
Please give it a try and provide feedback and or issues 👍 |
@gunters63 did you get a chance to try out the latest beta to check it solves your issue ? |
Should be fixed in the latest release Make sure to:
|
@francoismassart : Sorry, I just got to try out the new release. Works perfectly now! Thank you. |
Describe the bug
In TailwindCSS colors in the theme can also be defined as functions.
In my project it looks like this:
These gets included in tailwind.config.js like this:
These colors are all flagged as invalid custom classnames.
I think a fix is easy, I tried it already locally by patching lib\util\groupMethods.js in my node_modules folder:
I just added typeof color === 'function', this seemed to work fine for me
The text was updated successfully, but these errors were encountered: