Skip to content

[v4.1.4] Keyframes are not generated for the second config #17709

Answered by wongjn
artaommahe asked this question in Help
Discussion options

You must be logged in to vote

Keyframes are sort of theme variables. That means there needs to be somewhere for them to be output. It seems like Tailwind uses the first @theme rule as an indicator to output the @keyframes rules:

if (firstThemeRule) {
let nodes = []
for (let [key, value] of designSystem.theme.entries()) {
if (value.options & ThemeOptions.REFERENCE) continue
nodes.push(decl(escape(key), value.value))
}
let keyframesRules = designSystem.theme.getKeyframes()
for (let keyframes of keyframesRules) {
// Wrap `@keyframes` in `AtRoot` so they are hoisted out of `:root` when

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by artaommahe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #17697 on April 17, 2025 09:57.