i have started applying a custom theme for my angular project,but i am confused a bit whether it's possible to define the theme as less file. the hierarchy of my new theme is like this:
**
-custom-theme.scss
-custom-components-themes.scss
** the desired is **
- -custom-theme.less
- -custom-components-themes.less
**
-- custom-components-themes.scss eaxmple:
// you only have to add additional componenets here (instead of in every theme class)
@mixin custom-components-theme($theme) {
// Extract whichever individual palettes you need from the theme.
$primary: map-get($theme, primary);
$accent: map-get($theme, accent);
$background-color: map_get($primary, A1000);
// Use mat-color to extract individual colors from a palette as necessary.
.mat-sidenav {
Background: linear-gradient( mat-color($primary, A900), mat-color($primary, A1000)) ; }
.mat-sidenav .mat-toolbar {
background-image: linear-gradient(mat-color($primary, A50), mat-color($primary, A800)) !important;
color: mat-color($primary, 50) ;
font-family: "Segoe UI";
font-size: 23px ;
}
thank you in advance