You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Way to easily Use LESS/SASS Variables in component LESS/SASS Files #3535
Apologies if I'm posting this question in the wrong place, but I'm using a global style sheet, written in LESS. I have angular-cli configured to use LESS style sheets for each component, rather than CSS. Is there a way for the CLI to generate components with my variables.less auto imported so I don't have to import them manually every time I want to use variables in a component's styles? Same goes for SASS.
I am facing the same situation, and I think that's the only way.
In my case I have to generate multiple themes. What I'm doing now is a gulp task that replace my color-variables.sass and execute the the ng build for each theme I have.
Activity
fural commentedon Dec 13, 2016
I am facing the same situation, and I think that's the only way.
In my case I have to generate multiple themes. What I'm doing now is a gulp task that replace my
color-variables.sassand execute the theng buildfor each theme I have.filipesilva commentedon Dec 30, 2016
Dupe of #1791. Work ongoing in #2747
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.