Skip to content

Commit

Permalink
Always emit keyframes registered in addUtilities
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Oct 22, 2024
1 parent d2865c3 commit 2452837
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions integrations/cli/plugins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ test(
candidate`duration-350`,
'transition-duration: 350ms',
'animation-duration: 350ms',
'@keyframes enter {',
])
},
)
2 changes: 1 addition & 1 deletion packages/tailwindcss/src/compat/plugin-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export function buildPluginApi(

for (let [name, css] of Object.entries(utils)) {
if (name.startsWith('@keyframes ')) {
designSystem.theme.addKeyframes(rule(name, objectToAst(css)))
ast.push(rule(name, objectToAst(css)))
continue
}

Expand Down

0 comments on commit 2452837

Please sign in to comment.