28 lines
678 B
TypeScript
28 lines
678 B
TypeScript
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright Google LLC All Rights Reserved.
|
||
|
|
*
|
||
|
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
|
* found in the LICENSE file at https://angular.dev/license
|
||
|
|
*/
|
||
|
|
|
||
|
|
/** Create custom theme for the given application configuration. */
|
||
|
|
export function createCustomTheme(name: string = 'app') {
|
||
|
|
return `
|
||
|
|
// Custom Theming for Angular Material
|
||
|
|
// For more information: https://material.angular.io/guide/theming
|
||
|
|
@use '@angular/material' as mat;
|
||
|
|
|
||
|
|
html {
|
||
|
|
@include mat.theme((
|
||
|
|
color: (
|
||
|
|
theme-type: light,
|
||
|
|
primary: mat.$azure-palette,
|
||
|
|
tertiary: mat.$blue-palette,
|
||
|
|
),
|
||
|
|
typography: Roboto,
|
||
|
|
density: 0,
|
||
|
|
));
|
||
|
|
}`;
|
||
|
|
}
|