How to import the antd CSSin v5.1? #39693
rmjuarez12
started this conversation in
General
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
CSS files are no longer included in package. Since CSS-in-JS supports importing on demand, the original antd/dist/antd.css has also been abandoned. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
So, I am coming from v4.24.5 and I used to import the Antd CSS as:
@import "antd/dist/antd.css";
I am using SCSS for my stylesheets, and by just importing the above, it would import the Antd CSS file. When I updated, the above code throws an error and my app wont compile. If I remove it, it works, but now my app looks a bit messed up. I did looked at the module folder, and see that the file no longer exists in there. Is there a different way on how I should call that now?
Beta Was this translation helpful? Give feedback.
All reactions