Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 Angular 库。我想在我的库中使用应用程序主题的原色。我无权访问theme.scss文件,因此无法在我的组件样式文件中导入它。我怎样才能做到这一点?
theme.scss
谢谢
我发现了。您可以像这样在 SCSS 中使用应用程序主题变量:
{ color: var(--app-priamry-color); }