Global style influence in ng-zorro-ant

ng-zorro-ant requires that the node_modules/ng-zorro-antd/src/ng-zorro-antd.min.css file be introduced into the global style.
where node_modules/ng-zorro-antd/src/style/core/base.less rewrites the tag default style, including the marginline-height style, which has an impact on the style of the business code.
how to deal with this problem?

Jul.22,2021

you need to do this by custom theme .


I seldom write styles with ng-zorro. At most, I define a few common class and layouts, and the rest are their UI. Enough, part of the personalization can be set to its component css

Menu