Repository navigation
Less with angular material #4509
Replies: 1 comment
|
That snippet cannot be translated directly into Less. You can keep the rest of the application in Less and add one global Sass entry just for Material theming, for example @use '@angular/material' as mat;
:root {
@include mat.dialog-overrides((
container-color: orange,
subhead-color: red,
));
}Add that file to the global Less cannot execute Angular Material's Sass API. Importing already-generated CSS from Less is possible, but importing the Material Sass source as Less is not equivalent. Also check that your installed Angular Material version includes References: Angular Material styling API, Less import behavior. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
How do I implement the code below in less?
@use '@angular/material' as mat;
// Customize the entire app. Change :root to your selector if you want to scope the styles.
:root {
@include mat.dialog-overrides((
container-color: orange,
subhead-color: red,
));
}
All reactions