Skip to content
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

!important being added to custom utilities #2906

Closed
stephenturvey opened this issue Nov 25, 2020 · 1 comment
Closed

!important being added to custom utilities #2906

stephenturvey opened this issue Nov 25, 2020 · 1 comment

Comments

@stephenturvey
Copy link

I'm using important: true so that my utility classes have the !important declaration, but for some reason certain custom rules within my stylesheet are getting !important added automatically too. FYI it is not adding !important to all my custom CSS. I've repeated the problem here:

https://play.tailwindcss.com/Hj5l41DW67

From the tailwind 2.0 docs:
To generate utilities as !important, set the important key in your configuration options to true:
Note that any of your own custom utilities will not automatically be marked as !important by enabling this option.

@stefanfisk
Copy link
Contributor

This looks like a dupe of #2823.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants