Open
Description
What version of Tailwind CSS are you using?
v4.0.0-alpha.34
What build tool (or framework if it abstracts the build tool) are you using?
@tailwindcss/cli
Reproduction URL
https://github.com/saadeghi/tw4-component-layer-issue
Describe your issue
These are the layers in output CSS file:
@layer theme, base, components, utilities;
Expectation
It's expected for addComponents
to add styles to @layer components
Current behavior
Currently addComponents
adds styles to @layer utilities
, similar to addUtilities
Plugin example:
https://github.com/saadeghi/tw4-component-layer-issue/blob/master/myplugin.js
Generated style:
https://github.com/saadeghi/tw4-component-layer-issue/blob/9b7a944690a35d55c7406756e30cc98c7a239623/output.css#L516