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

Css Important option #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

flyingL123
Copy link

@flyingL123 flyingL123 commented Nov 21, 2019

I am currently integrating Tailwind.css into an existing website. Tailwind allows you to specify an important option in its configuration which makes all of their style declarations include the !important flag. See documentation here.

This is very useful when transitioning an existing project to Tailwind so that the new styles will override existing style sheets. I was also attempting to use this library in that same project, but was finding that the styles being applied weren't working because sometimes they were getting overridden by Tailwind styles.

This PR allows for a cssImportant option which simply adds the !important flag to the plugin's generated css. After adding this option, the plugin worked great even with Tailwind's important styles in place.

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

Successfully merging this pull request may close these issues.

1 participant