Replies: 7 comments 3 replies
-
I have the same problem! |
Beta Was this translation helpful? Give feedback.
-
Hey! Do you mind creating a reproduction? |
Beta Was this translation helpful? Give feedback.
-
@adamwathan I pushed a minimal version of this here: https://github.com/Onatcer/tailwind-multi-config-example The PostCSS files are in
I committed the build CSS in
They can also be build using The tailwind config files are the same, but the outputs in dist differ. |
Beta Was this translation helpful? Give feedback.
-
Short update: It looks like this is also affecting the I can also open an issue on the forms repository but I would guess those two are related. |
Beta Was this translation helpful? Give feedback.
-
Hi, @Onatcer & @adamwathan I found a solution to this issue, you have to include the |
Beta Was this translation helpful? Give feedback.
-
@felixfrey thank you! I just tested it and it works for me in the test repository as well as in the project where I encountered the problem originally. |
Beta Was this translation helpful? Give feedback.
-
The config at-rule It appears that PostCSS parses: @config "../tailwind.admin.config.js"
@tailwind base; as a single at-rule which is why preflight and defaults are missing. We could probably tweak the parsing of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm not really sure if this is a bug, missing documentation, if I just overlooked something or if this is expected behavior but I tried the multi-config feature and it did not include preflight CSS and CSS Variable Default Values like it would when I create a project normally. I was able to reproduce it in a minimal project with tailwind CLI.
Thats the style.css
and here is the tailwind.admin.config.js
I didn't really find any documentation on the multi-config options and I also didn't find a way to manually include the options. I would have expected the multi-config files to behave the same as the regular files.
Removing the
@config
directive from the CSS file and renaming tailwind.admin.config.js to tailwind.config.js gives me the expected result with preflight CSS and CSS Variable Defaults.Did anyone else run into this issue?
Beta Was this translation helpful? Give feedback.
All reactions