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 prefix #449

Merged
merged 1 commit into from
Jun 12, 2021
Merged

Important prefix #449

merged 1 commit into from
Jun 12, 2021

Conversation

ben-rogerson
Copy link
Owner

Twin now supports a prefixed ! on classes to mark as !important as introduced with Tailwind's new JIT mode.
This works with singular classes but not with class groups at this stage.

tw`!block`;

// ↓ ↓ ↓ ↓ ↓ ↓

;({ "display": "block !important" })

@ben-rogerson ben-rogerson changed the title Add important prefix Important prefix Jun 9, 2021
Update readme section
@ben-rogerson ben-rogerson merged commit dab0440 into master Jun 12, 2021
@ben-rogerson ben-rogerson deleted the feature/important-prefix branch June 12, 2021 03:23
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.

None yet

1 participant