1 | "use strict";
|
---|
2 | /**
|
---|
3 | * @license
|
---|
4 | * Copyright Google LLC All Rights Reserved.
|
---|
5 | *
|
---|
6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
7 | * found in the LICENSE file at https://angular.io/license
|
---|
8 | */
|
---|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
10 | exports.createCustomTheme = void 0;
|
---|
11 | /** Create custom theme for the given application configuration. */
|
---|
12 | function createCustomTheme(name = 'app') {
|
---|
13 | return `
|
---|
14 | // Custom Theming for Angular Material
|
---|
15 | // For more information: https://material.angular.io/guide/theming
|
---|
16 | @use '~@angular/material' as mat;
|
---|
17 | // Plus imports for other components in your app.
|
---|
18 |
|
---|
19 | // Include the common styles for Angular Material. We include this here so that you only
|
---|
20 | // have to load a single css file for Angular Material in your app.
|
---|
21 | // Be sure that you only ever include this mixin once!
|
---|
22 | @include mat.core();
|
---|
23 |
|
---|
24 | // Define the palettes for your theme using the Material Design palettes available in palette.scss
|
---|
25 | // (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
---|
26 | // hue. Available color palettes: https://material.io/design/color/
|
---|
27 | $${name}-primary: mat.define-palette(mat.$indigo-palette);
|
---|
28 | $${name}-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
|
---|
29 |
|
---|
30 | // The warn palette is optional (defaults to red).
|
---|
31 | $${name}-warn: mat.define-palette(mat.$red-palette);
|
---|
32 |
|
---|
33 | // Create the theme object. A theme consists of configurations for individual
|
---|
34 | // theming systems such as "color" or "typography".
|
---|
35 | $${name}-theme: mat.define-light-theme((
|
---|
36 | color: (
|
---|
37 | primary: $${name}-primary,
|
---|
38 | accent: $${name}-accent,
|
---|
39 | warn: $${name}-warn,
|
---|
40 | )
|
---|
41 | ));
|
---|
42 |
|
---|
43 | // Include theme styles for core and each component used in your app.
|
---|
44 | // Alternatively, you can import and @include the theme mixins for each component
|
---|
45 | // that you are using.
|
---|
46 | @include mat.all-component-themes($${name}-theme);
|
---|
47 |
|
---|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