首页 > 解决方案 > Angular 中的两个主题。SCSS中的变量问题

问题描述

我尝试通过这个流程在 Angular 10 中实现两个主题。它仅适用于 css。我在我的项目中使用 SCSS。如何修改此示例以使用 scss?抱歉,我这里没有任何代码。您可以在链接中找到它的代码。感谢帮助!

标签: cssangularvariablessassfrontend

解决方案


app.component.css将文件更改为app.component.scss并在 app.component.ts 中更改styleUrlsapp.component.scss


推荐阅读