Skip to content

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

@artaommahe

Description

@artaommahe

What version of Tailwind CSS are you using?

For example: v4.1.4

What build tool (or framework if it abstracts the build tool) are you using?

Vite 6.0.1

What version of Node.js are you using?

v20.18.1

What browser are you using?

latest Chrome

What operating system are you using?

latest macOS

Reproduction URL

Describe your issue

Keyframes are not generated for animations in 'secondary' config, the animation class itself is present.

We have a case when we're slowly migrating from one design system with old set of tokens to the new one and for this we have 2 tailwind configs where the second one is scoped under a class by important: '.new-design', config value.
During upgrade to tailwind v4 we've noticed that animation keyframes defined in the second config are not generated and don't work. For some reason there is a workaround with adding an empty @theme {} block to the corresponding css file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions