-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
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
- clone https://github.com/artaommahe/tailwind-v4-missed-keyframes
- npm install
- npm run dev
- see that a block with red border doesn't wiggle despite having wiggle animation set
- uncomment empty
@theme {}declaration insrc/new-design/new-design.css - see that block finally wiggles
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.