-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
What version of Tailwind CSS are you using?
v4.1.11
What build tool (or framework if it abstracts the build tool) are you using?
Vite 7.2.2
What version of Node.js are you using?
v22.21.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://codesandbox.io/p/devbox/4nqnrj
Describe your issue
When using Tailwind with CSS Modules and the composes property with the [class] from [file] syntax, the composed style isn't processed by Tailwind, which means that the styles are invalid CSS and don't work.
In the example above, you'll see that Bar doesn't carry over the styles of Foo even though the I believe all code to be correct and valid. You can inspect Bar and trace it back to the <style> block where you can see that Foo's styles were imported / duplicated, but not processed by Tailwind, showing the @apply syntax still instead of the application style properties.
