Closed AsuraKev closed 1 week ago
Able to see Layer tailwind and antd being applied but Layer reset is missing
Or tried import reset css first but antd styles are being overwritten by reset even the order specified is correct
@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
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