We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What version of Tailwind CSS are you using?
v4.0.8
What build tool (or framework if it abstracts the build tool) are you using?
PackageManager: [email protected]
Dependencies:
Dev dependencies:
What version of Node.js are you using?
v22.13.1
What browser are you using?
n/a
What operating system are you using?
Linux
Reproduction URL
This is a completely fresh project.
I can add a repro url later, there is literally no code of concern at the moment.
Describe your issue
Importing a module.css file does not work without importing the main.css file.
Setup:
@/
src
module.css
@apply gap-2 p-2
PrimaryMenu.module.css
Debugging steps:
.git
.gitignore
@source
@import 'tailwindcss';
@import 'tailwindcss' source('<path to src directory>');
@import '../../../main.css';
I figured I'd make a separate issue because there didn't seem to be overlap.
The text was updated successfully, but these errors were encountered:
Hey! I think this is expected behavior unless I'm overlooking some detail:
https://tailwindcss.com/docs/compatibility#explicit-context-sharing
Sorry, something went wrong.
Shoot! You're right!
Thank you for pointing that out!
No branches or pull requests
What version of Tailwind CSS are you using?
v4.0.8
What build tool (or framework if it abstracts the build tool) are you using?
PackageManager: [email protected]
Dependencies:
Dev dependencies:
What version of Node.js are you using?
v22.13.1
What browser are you using?
n/a
What operating system are you using?
Linux
Reproduction URL
This is a completely fresh project.
I can add a repro url later, there is literally no code of concern at the moment.
Describe your issue
Importing a module.css file does not work without importing the main.css file.
Setup:
@/
paths to thesrc
directory. (But not relevant.)module.css
file.@apply gap-2 p-2
from the default template into the primary class in thePrimaryMenu.module.css
file and it errors.Debugging steps:
.git
from my.gitignore
file as recommend in @source doesn't work if dist/ is in the gitignore. #16669. This did not solve the issue.@source
directives in the main.css file according to @source directive not working with pnpm #16038.@import 'tailwindcss';
in themodule.css
file. While this did load the general tailwind css set, it did not load a custom theme override.@import 'tailwindcss' source('<path to src directory>');
in themodule.css
file. This did not work with the custom theme override.@import '../../../main.css';
solved the issue.I figured I'd make a separate issue because there didn't seem to be overlap.
The text was updated successfully, but these errors were encountered: