Skip to content

Add background-clip utilities #2168

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

Merged
merged 2 commits into from
Aug 15, 2020
Merged

Add background-clip utilities #2168

merged 2 commits into from
Aug 15, 2020

Conversation

adamwathan
Copy link
Member

This PR adds new background-clip utilities to Tailwind, that I'm pretty much only adding for bg-clip-text so we can do trendy gradient stuff with the default build after we add gradient support 👀

New classes:

Class CSS
bg-clip-border background-clip: border-box
bg-clip-padding background-clip: padding-box
bg-clip-content background-clip: content-box
bg-clip-text background-clip: text

Better to rely on autoprefixer for this for now. If we want to start shipping prefixes we should do it across the board, not just in one spot.
@adamwathan adamwathan merged commit 5b11f9c into master Aug 15, 2020
@adamwathan adamwathan deleted the bg-clip branch August 15, 2020 22:07
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