Skip to content

Add keyframes as utilities instead of base#2108

Merged
adamwathan merged 1 commit intomasterfrom
add-keyframes-as-utilities
Aug 2, 2020
Merged

Add keyframes as utilities instead of base#2108
adamwathan merged 1 commit intomasterfrom
add-keyframes-as-utilities

Conversation

@adamwathan
Copy link
Copy Markdown
Member

@adamwathan adamwathan commented Aug 2, 2020

This PR updates the animation plugin to add the keyframes rules to the "utilities" layer rather than the "base" layer. Sounds a little bit weird until you realize that doing it any other way means you need @tailwind base in your CSS for animations to work, which feels wrong. You should be able to use our animations using just the "utilities" layer.

Fixes #2103.

@adamwathan adamwathan merged commit 911afff into master Aug 2, 2020
@adamwathan adamwathan deleted the add-keyframes-as-utilities branch August 2, 2020 12:15
workashutosh pushed a commit to workashutosh/tailwindcss that referenced this pull request Apr 3, 2025
Follow up to tailwindlabs#2107.

Please note there are still instances in of `px` usage in the v4-alpha
and v4 blog posts, wasn't sure whether those should be changed too, or
preserved for prosperity.
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.

missing Keyframe css for animations if @tailwind base is missing

1 participant