-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Error compiling Angular application implementing Ant design dark theme #5007
Comments
Same here. I fixed it with this at the top of my @import "~ng-zorro-antd/style/color/colorPalette.less";
@import "~ng-zorro-antd/ng-zorro-antd.less";
@import "~ng-zorro-antd/style/dark.less"; |
@Taksumaki @Jbz797 Thanks for your report. This is a docs error, the following is the correct import order. @import "~ng-zorro-antd/style/dark.less";
@import "~ng-zorro-antd/ng-zorro-antd.less"; We are about to provide new theme bundle files, you can use them like this: @import "~ng-zorro-antd/ng-zorro-antd.dark.less"; |
hsuanxyz
added a commit
to hsuanxyz/ng-zorro-antd
that referenced
this issue
Apr 13, 2020
hsuanxyz
added a commit
to hsuanxyz/ng-zorro-antd
that referenced
this issue
Apr 13, 2020
vthinkxie
pushed a commit
that referenced
this issue
Apr 13, 2020
hsuanxyz
added a commit
to hsuanxyz/ng-zorro-antd
that referenced
this issue
Aug 5, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Import the Ant Design styles "ng-zorro-antd/ng-zorro-antd.less"
Import the dark theme styles from "ng-zorro-antd/style/dark.less"
Example (in styles.less file):
What is expected?
Let the Angular app successfully compile and show Ant design with the dark theme.
What is actually happening?
It does not allow to compile the Angular application showing the following error in the console.
The text was updated successfully, but these errors were encountered: