New issue
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
Antd reset.css is not imported when using as layer #48762
Labels
Comments
AsuraKev
changed the title
Antd reset style is not imported when using as layer
Antd reset.css is not imported when using as layer
May 6, 2024
@AsuraKev Did you resolve it? Why did you close this issue? |
Hi. Yes, after restarting the solution it worked as expected. The reset css import has to come last otherwise tailwind still overrides even if you defined the order as @layer tailwind-base, reset, antd thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction link
https://ant.design/docs/react/compatible-style#layer-downgrade
Steps to reproduce
following the doc and added the following code:
Order of style precedence Tailwind -> reset css -> antd
@layer tailwind-base,
reset,
antd;
@layer tailwind-base {
@tailwind base;
}
@import url('antd/dist/reset.css') layer(reset);
@tailwind components;
@tailwind utilities;
What is expected?
Expect that style layer are applied and style overwrite appropriately
What is actually happening?
Reset css style is not being applied at all
The text was updated successfully, but these errors were encountered: