@porscheinformatik/material-addons 21.0.4 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,57 +1,95 @@
1
1
  @use 'sass:map';
2
2
  @use '@angular/material' as mat;
3
3
 
4
- $primary-palette: undefined;
5
- $accent-palette: undefined;
6
- $warn-palette: undefined;
7
- $default-palette: undefined;
8
- $is-dark-theme: undefined;
9
-
10
- $typography: mat.m2-define-typography-config(
11
- $font-family: 'Roboto, sans-serif',
12
- );
13
-
14
- @function build-custom-theme($theme-name, $primary-palette, $default-colors, $warn-palette: mat.$m2-red-palette) {
15
- $material-addons-colors-primary: mat.m2-define-palette($primary-palette);
16
- $material-addons-colors-warn: mat.m2-define-palette($warn-palette);
17
- $material-addons-theme: mat.m2-define-light-theme(
4
+ // Build an Angular Material theme along with the metadata MAD needs to expose CSS variables.
5
+ @function build-custom-theme-m3(
6
+ $theme-name,
7
+ $primary-hex,
8
+ $tertiary-hex,
9
+ $custom-colors,
10
+ $default-colors,
11
+ $background-hex: #fafafa,
12
+ $palettes: null
13
+ ) {
14
+ $mat-theme: mat.define-theme(
18
15
  (
19
16
  color: (
20
- primary: $material-addons-colors-primary,
21
- accent: $material-addons-colors-primary,
22
- warn: $material-addons-colors-warn,
17
+ theme-type: light,
18
+ primary: if($palettes, map.get($palettes, primary), mat.$azure-palette),
19
+ tertiary: if($palettes, map.get($palettes, tertiary), mat.$blue-palette),
20
+ use-system-variables: true,
21
+ ),
22
+ typography: (
23
+ brand-family: 'Roboto',
24
+ plain-family: 'Roboto',
25
+ ),
26
+ density: (
27
+ scale: 0,
23
28
  ),
24
- typography: $typography,
25
29
  )
26
30
  );
27
31
 
28
- $color-config: mat.m2-get-color-config($material-addons-theme);
29
- $primary-palette: map.get($color-config, 'primary') !global;
30
- $accent-palette: map.get($color-config, 'accent') !global;
31
- $warn-palette: map.get($color-config, 'warn') !global;
32
- $default-palette: $default-colors !global;
33
- $is-dark-theme: map.get($color-config, 'is-dark') !global;
32
+ @return (
33
+ mat-theme: $mat-theme,
34
+ theme-name: $theme-name,
35
+ primary-color: $primary-hex,
36
+ tertiary-color: $tertiary-hex,
37
+ background-color: $background-hex,
38
+ custom-colors: $custom-colors,
39
+ default-palette: $default-colors
40
+ );
41
+ }
34
42
 
35
- @return $material-addons-theme;
43
+ @function material-theme($theme-config) {
44
+ @return map.get($theme-config, mat-theme);
36
45
  }
37
46
 
38
- @function get-main-color() {
39
- @return map-get($primary-palette, 500);
47
+ @function get-theme-name($theme-config) {
48
+ @return map.get($theme-config, theme-name);
40
49
  }
41
50
 
42
- @function get-selection-background() {
43
- @return map-get($primary-palette, 50);
51
+ @function get-main-color($theme-config) {
52
+ @return map.get($theme-config, primary-color);
53
+ }
54
+
55
+ @function get-selection-background($theme-config) {
56
+ @return mix(white, get-main-color($theme-config), 90%);
44
57
  }
45
58
 
46
59
  @function get-table-hover-color($color) {
47
60
  @return rgba($color, 0.08);
48
61
  }
49
62
 
50
- @function get-background-color() {
51
- @return map-get($primary-palette, background-color);
63
+ @function get-background-color($theme-config) {
64
+ @return map.get($theme-config, background-color);
65
+ }
66
+
67
+ @function get-hover-color($theme-config) {
68
+ @return mix(white, get-main-color($theme-config), 90%);
69
+ }
70
+
71
+ @function get-panel-color($theme-config) {
72
+ @return mix(black, get-main-color($theme-config), 30%);
52
73
  }
53
74
 
54
- @function map-get-or-default($theme-map, $key) {
55
- $key-exists: map-has-key($theme-map, $key);
56
- @return map-get(if($key-exists, $theme-map, $default-palette), $key);
75
+ @function get-custom-color($theme-config, $key) {
76
+ $custom-colors: map.get($theme-config, custom-colors);
77
+ @if $custom-colors == null {
78
+ @return null;
79
+ }
80
+ @return map.get($custom-colors, $key);
81
+ }
82
+
83
+ @function map-get-or-default($theme-config, $key) {
84
+ $custom-colors: map.get($theme-config, custom-colors);
85
+ @if $custom-colors != null and map.has-key($custom-colors, $key) {
86
+ @return map.get($custom-colors, $key);
87
+ }
88
+
89
+ $default-palette: map.get($theme-config, default-palette);
90
+ @if $default-palette != null and map.has-key($default-palette, $key) {
91
+ @return map.get($default-palette, $key);
92
+ }
93
+
94
+ @return null;
57
95
  }
@@ -0,0 +1,89 @@
1
+ @use '../theme';
2
+
3
+ $default-palette: (
4
+ panel-background-color: #e8e8e8,
5
+ panel-border-color: #cccccc,
6
+ panel-select-background: white,
7
+ alert-success-background-color: rgb(238, 252, 227),
8
+ alert-success-border-color: rgb(66, 129, 14),
9
+ alert-success-text-color: #155724,
10
+ alert-info-background-color: rgb(229, 247, 255),
11
+ alert-info-border-color: rgb(0, 121, 173),
12
+ alert-info-text-color: #0c5460,
13
+ alert-warning-background-color: rgb(255, 242, 214),
14
+ alert-warning-border-color: rgb(255, 185, 46),
15
+ alert-warning-text-color: #856404,
16
+ alert-error-background-color: rgb(255, 242, 240),
17
+ alert-error-border-color: rgb(224, 34, 0),
18
+ alert-error-text-color: #721c24,
19
+ );
20
+
21
+ // Mixin to define CSS variables (must be called in :root selector)
22
+ @mixin color-variables($theme-name, $theme) {
23
+ $main-primary: theme.get-main-color($theme);
24
+ $selection-background: theme.get-selection-background($theme);
25
+ $table-hover-color: theme.get-table-hover-color($main-primary);
26
+ $background-color: theme.get-background-color($theme);
27
+ $hover-color: theme.get-hover-color($theme);
28
+ $panel-color: theme.get-panel-color($theme);
29
+
30
+ $warn-color: theme.get-custom-color($theme, warn-color);
31
+ $error-color: theme.get-custom-color($theme, error-color);
32
+ $info-color: theme.get-custom-color($theme, info-color);
33
+ $success-color: theme.get-custom-color($theme, success-color);
34
+
35
+ $panel-background-color: theme.map-get-or-default($theme, panel-background-color);
36
+ $panel-border-color: theme.map-get-or-default($theme, panel-border-color);
37
+ $panel-select-background: theme.map-get-or-default($theme, panel-select-background);
38
+
39
+ $alert-success-background-color: theme.map-get-or-default($theme, alert-success-background-color);
40
+ $alert-success-border-color: theme.map-get-or-default($theme, alert-success-border-color);
41
+ $alert-success-text-color: theme.map-get-or-default($theme, alert-success-text-color);
42
+
43
+ $alert-info-background-color: theme.map-get-or-default($theme, alert-info-background-color);
44
+ $alert-info-border-color: theme.map-get-or-default($theme, alert-info-border-color);
45
+ $alert-info-text-color: theme.map-get-or-default($theme, alert-info-text-color);
46
+
47
+ $alert-warning-background-color: theme.map-get-or-default($theme, alert-warning-background-color);
48
+ $alert-warning-border-color: theme.map-get-or-default($theme, alert-warning-border-color);
49
+ $alert-warning-text-color: theme.map-get-or-default($theme, alert-warning-text-color);
50
+
51
+ $alert-error-background-color: theme.map-get-or-default($theme, alert-error-background-color);
52
+ $alert-error-border-color: theme.map-get-or-default($theme, alert-error-border-color);
53
+ $alert-error-text-color: theme.map-get-or-default($theme, alert-error-text-color);
54
+
55
+ --main-primary: #{$main-primary};
56
+ --selection-background: #{$selection-background};
57
+ --hover-color: #{$hover-color};
58
+ --table-hover-color: #{$table-hover-color};
59
+ --warn-color: #{$warn-color};
60
+ --error-color: #{$error-color};
61
+ --background-color: #{$background-color};
62
+ --panel-color: var(--mat-sys-on-surface);
63
+ --panel-background-color: #{$panel-background-color};
64
+ --panel-border-color: #{$panel-border-color};
65
+ --panel-select-background: #{$panel-select-background};
66
+ --mat-button-protected-label-text-color: #{$main-primary};
67
+ --alert-success-background-color: #{$alert-success-background-color};
68
+ --alert-success-border-color: #{$alert-success-border-color};
69
+ --alert-success-text-color: #{$alert-success-text-color};
70
+ --alert-info-background-color: #{$alert-info-background-color};
71
+ --alert-info-border-color: #{$alert-info-border-color};
72
+ --alert-info-text-color: #{$alert-info-text-color};
73
+ --alert-warning-background-color: #{$alert-warning-background-color};
74
+ --alert-warning-border-color: #{$alert-warning-border-color};
75
+ --alert-warning-text-color: #{$alert-warning-text-color};
76
+ --alert-error-background-color: #{$alert-error-background-color};
77
+ --alert-error-border-color: #{$alert-error-border-color};
78
+ --alert-error-text-color: #{$alert-error-text-color};
79
+
80
+ --step-border-color: var(--mat-sys-outline-variant);
81
+ --step-complete-color: #{$alert-success-border-color};
82
+ --step-neutral-color: var(--mat-sys-outline);
83
+ --step-header-selected-background: var(--mat-sys-surface-variant);
84
+ --step-header-default-background: var(--mat-sys-surface);
85
+ --toolbar-background: var(--mat-sys-surface);
86
+ --datatable-background: var(--mat-sys-surface);
87
+ --datatable-hover: var(--mat-sys-surface-variant);
88
+ --container-shape: 0.25rem;
89
+ }
@@ -0,0 +1,137 @@
1
+ // This file was generated by running 'ng generate @angular/material:theme-color'.
2
+ // Proceed with caution if making changes to this file.
3
+
4
+ @use 'sass:map';
5
+ @use '@angular/material' as mat;
6
+
7
+ // Note: Color palettes are generated from primary: #004665, tertiary: #00648f, error: #c21d00
8
+ $_palettes: (
9
+ primary: (
10
+ 0: #000000,
11
+ 10: #001e2e,
12
+ 20: #00344c,
13
+ 25: #00405c,
14
+ 30: #0c4c6b,
15
+ 35: #1f5777,
16
+ 40: #2d6484,
17
+ 50: #497c9e,
18
+ 60: #6396b9,
19
+ 70: #7eb1d5,
20
+ 80: #99cdf2,
21
+ 90: #c8e6ff,
22
+ 95: #e5f2ff,
23
+ 98: #f6faff,
24
+ 99: #fbfcff,
25
+ 100: #ffffff,
26
+ ),
27
+ secondary: (
28
+ 0: #000000,
29
+ 10: #0a1d29,
30
+ 20: #20323f,
31
+ 25: #2b3e4a,
32
+ 30: #374956,
33
+ 35: #425562,
34
+ 40: #4e616f,
35
+ 50: #677988,
36
+ 60: #8093a2,
37
+ 70: #9baebd,
38
+ 80: #b6c9d9,
39
+ 90: #d2e5f6,
40
+ 95: #e5f2ff,
41
+ 98: #f6faff,
42
+ 99: #fbfcff,
43
+ 100: #ffffff,
44
+ ),
45
+ tertiary: (
46
+ 0: #000000,
47
+ 10: #001e2e,
48
+ 20: #00344d,
49
+ 25: #00405d,
50
+ 30: #004c6d,
51
+ 35: #00587e,
52
+ 40: #026590,
53
+ 50: #317eaa,
54
+ 60: #5098c5,
55
+ 70: #6cb3e2,
56
+ 80: #88ceff,
57
+ 90: #c8e6ff,
58
+ 95: #e5f2ff,
59
+ 98: #f6faff,
60
+ 99: #fbfcff,
61
+ 100: #ffffff,
62
+ ),
63
+ neutral: (
64
+ 0: #000000,
65
+ 10: #191c1e,
66
+ 20: #2e3133,
67
+ 25: #393c3e,
68
+ 30: #454749,
69
+ 35: #505355,
70
+ 40: #5c5e61,
71
+ 50: #75777a,
72
+ 60: #8f9193,
73
+ 70: #aaabae,
74
+ 80: #c5c6c9,
75
+ 90: #e1e2e5,
76
+ 95: #f0f1f3,
77
+ 98: #f9f9fc,
78
+ 99: #fbfcff,
79
+ 100: #ffffff,
80
+ 4: #0c0e11,
81
+ 6: #111416,
82
+ 12: #1d2022,
83
+ 17: #282a2d,
84
+ 22: #333537,
85
+ 24: #37393c,
86
+ 87: #d9dadd,
87
+ 92: #e7e8eb,
88
+ 94: #edeef1,
89
+ 96: #f3f3f6,
90
+ ),
91
+ neutral-variant: (
92
+ 0: #000000,
93
+ 10: #161c21,
94
+ 20: #2b3137,
95
+ 25: #363c42,
96
+ 30: #41484d,
97
+ 35: #4d5359,
98
+ 40: #585f65,
99
+ 50: #71787e,
100
+ 60: #8b9198,
101
+ 70: #a5acb3,
102
+ 80: #c1c7ce,
103
+ 90: #dde3ea,
104
+ 95: #ebf1f8,
105
+ 98: #f6faff,
106
+ 99: #fbfcff,
107
+ 100: #ffffff,
108
+ ),
109
+ error: (
110
+ 0: #000000,
111
+ 10: #3f0400,
112
+ 20: #650a00,
113
+ 25: #790e00,
114
+ 30: #8e1300,
115
+ 35: #a41700,
116
+ 40: #ba1b00,
117
+ 50: #e03417,
118
+ 60: #ff5637,
119
+ 70: #ff8a73,
120
+ 80: #ffb4a5,
121
+ 90: #ffdad3,
122
+ 95: #ffede9,
123
+ 98: #fff8f6,
124
+ 99: #fffbff,
125
+ 100: #ffffff,
126
+ ),
127
+ );
128
+
129
+ $_rest: (
130
+ secondary: map.get($_palettes, secondary),
131
+ neutral: map.get($_palettes, neutral),
132
+ neutral-variant: map.get($_palettes, neutral-variant),
133
+ error: map.get($_palettes, error),
134
+ );
135
+
136
+ $primary-palette: map.merge(map.get($_palettes, primary), $_rest);
137
+ $tertiary-palette: map.merge(map.get($_palettes, tertiary), $_rest);
package/themes/pbv.scss CHANGED
@@ -1,57 +1,48 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
1
  @use './common/theme' as theme;
4
2
  @use './common/styles' as common;
5
- @use './common/button';
3
+ @use './common/theme-entry' as theme-entry;
4
+ @use './carcat-palettes' as carcat;
6
5
 
7
6
  $theme-name: 'pbv';
8
7
 
9
- $primary-palette: (
10
- 50: #e0e9ed,
11
- 100: #b3c8d1,
12
- 200: #80a3b2,
13
- 300: #4d7e93,
14
- 400: #26627c,
15
- 500: #004665,
16
- 600: #003f5d,
17
- 700: #003753,
18
- 800: #002f49,
19
- 900: #002037,
20
- A100: #6eb3ff,
21
- A200: #3b98ff,
22
- A400: #087eff,
23
- A700: #0071ee,
24
- contrast: common.$contrast,
25
- background-color: #fafafa,
8
+ // M3 Theme Configuration
9
+ $primary-color: #0072a3;
10
+ $tertiary-color: #005073; // Info color
11
+ $background-color: #fcfcfc;
12
+
13
+ $custom-colors: (
26
14
  warn-color: #ad7600,
27
15
  error-color: #c21d00,
28
- info-color: #00648f,
16
+ info-color: #005073,
29
17
  success-color: #3c8500,
30
18
  );
31
19
 
32
- $warn-palette: (
33
- 50: #f2e4e8,
34
- 100: #dfbbc5,
35
- 200: #ca8e9e,
36
- 300: #b56077,
37
- 400: #a53e5a,
38
- 500: #970505,
39
- 600: #8d1937,
40
- 700: #82142f,
41
- 800: #781127,
42
- 900: #67091a,
43
- A100: #ff99a6,
44
- A200: #ff667a,
45
- A400: #ff334e,
46
- A700: #ff1a38,
47
- contrast: common.$contrast,
20
+ // M3 palettes generated from brand colors (same primary as CarCat)
21
+ $palettes: (
22
+ primary: carcat.$primary-palette,
23
+ tertiary: carcat.$tertiary-palette,
48
24
  );
49
25
 
50
- @include mat.elevation-classes();
51
- @include mat.app-background();
26
+ // Build M3 theme
27
+ $custom-theme: theme.build-custom-theme-m3(
28
+ $theme-name,
29
+ $primary-color,
30
+ $tertiary-color,
31
+ $custom-colors,
32
+ common.$default-palette,
33
+ $background-color,
34
+ $palettes
35
+ );
52
36
 
53
- $custom-theme: theme.build-custom-theme($theme-name, $primary-palette, common.$default-palette, $warn-palette);
37
+ $pbv-root-overrides: (
38
+ --selection-background: #79c6e6,
39
+ --hover-color: #79c6e6,
40
+ --panel-color: #000000,
41
+ );
54
42
 
55
- @include mat.all-component-themes($custom-theme);
56
- @include mat.all-component-typographies($custom-theme);
57
- @include common.theme($theme-name, $custom-theme);
43
+ @include theme-entry.apply-theme(
44
+ $custom-theme,
45
+ (
46
+ root-overrides: $pbv-root-overrides,
47
+ )
48
+ );
@@ -0,0 +1,137 @@
1
+ // This file was generated by running 'ng generate @angular/material:theme-color'.
2
+ // Proceed with caution if making changes to this file.
3
+
4
+ @use 'sass:map';
5
+ @use '@angular/material' as mat;
6
+
7
+ // Note: Color palettes are generated from primary: #14a1a9, tertiary: #00648f, error: #c21d00
8
+ $_palettes: (
9
+ primary: (
10
+ 0: #000000,
11
+ 10: #002022,
12
+ 20: #00373a,
13
+ 25: #004346,
14
+ 30: #004f53,
15
+ 35: #005c61,
16
+ 40: #00696f,
17
+ 50: #00848b,
18
+ 60: #11a0a8,
19
+ 70: #41bbc3,
20
+ 80: #63d7df,
21
+ 90: #81f4fc,
22
+ 95: #c3fbff,
23
+ 98: #e8feff,
24
+ 99: #f3feff,
25
+ 100: #ffffff,
26
+ ),
27
+ secondary: (
28
+ 0: #000000,
29
+ 10: #002022,
30
+ 20: #093639,
31
+ 25: #184144,
32
+ 30: #254d50,
33
+ 35: #31595c,
34
+ 40: #3d6568,
35
+ 50: #567e81,
36
+ 60: #70989b,
37
+ 70: #8ab2b5,
38
+ 80: #a5ced1,
39
+ 90: #c0eaed,
40
+ 95: #cef8fc,
41
+ 98: #e8feff,
42
+ 99: #f3feff,
43
+ 100: #ffffff,
44
+ ),
45
+ tertiary: (
46
+ 0: #000000,
47
+ 10: #001e2e,
48
+ 20: #00344d,
49
+ 25: #00405d,
50
+ 30: #004c6d,
51
+ 35: #00587e,
52
+ 40: #026590,
53
+ 50: #317eaa,
54
+ 60: #5098c5,
55
+ 70: #6cb3e2,
56
+ 80: #88ceff,
57
+ 90: #c8e6ff,
58
+ 95: #e5f2ff,
59
+ 98: #f6faff,
60
+ 99: #fbfcff,
61
+ 100: #ffffff,
62
+ ),
63
+ neutral: (
64
+ 0: #000000,
65
+ 10: #171d1d,
66
+ 20: #2c3132,
67
+ 25: #373c3d,
68
+ 30: #424848,
69
+ 35: #4e5354,
70
+ 40: #5a5f60,
71
+ 50: #727878,
72
+ 60: #8c9292,
73
+ 70: #a7acac,
74
+ 80: #c2c7c8,
75
+ 90: #dee3e3,
76
+ 95: #edf2f2,
77
+ 98: #f5fafa,
78
+ 99: #f8fdfd,
79
+ 100: #ffffff,
80
+ 4: #0a0f10,
81
+ 6: #0f1415,
82
+ 12: #1b2121,
83
+ 17: #252b2b,
84
+ 22: #303636,
85
+ 24: #353a3b,
86
+ 87: #d6dbdb,
87
+ 92: #e4e9e9,
88
+ 94: #eaefef,
89
+ 96: #eff5f5,
90
+ ),
91
+ neutral-variant: (
92
+ 0: #000000,
93
+ 10: #121d1e,
94
+ 20: #273233,
95
+ 25: #323e3e,
96
+ 30: #3d494a,
97
+ 35: #485556,
98
+ 40: #546161,
99
+ 50: #6d797a,
100
+ 60: #869394,
101
+ 70: #a1aeae,
102
+ 80: #bcc9ca,
103
+ 90: #d8e5e6,
104
+ 95: #e6f3f4,
105
+ 98: #effcfd,
106
+ 99: #f3feff,
107
+ 100: #ffffff,
108
+ ),
109
+ error: (
110
+ 0: #000000,
111
+ 10: #3f0400,
112
+ 20: #650a00,
113
+ 25: #790e00,
114
+ 30: #8e1300,
115
+ 35: #a41700,
116
+ 40: #ba1b00,
117
+ 50: #e03417,
118
+ 60: #ff5637,
119
+ 70: #ff8a73,
120
+ 80: #ffb4a5,
121
+ 90: #ffdad3,
122
+ 95: #ffede9,
123
+ 98: #fff8f6,
124
+ 99: #fffbff,
125
+ 100: #ffffff,
126
+ ),
127
+ );
128
+
129
+ $_rest: (
130
+ secondary: map.get($_palettes, secondary),
131
+ neutral: map.get($_palettes, neutral),
132
+ neutral-variant: map.get($_palettes, neutral-variant),
133
+ error: map.get($_palettes, error),
134
+ );
135
+
136
+ $primary-palette: map.merge(map.get($_palettes, primary), $_rest);
137
+ $tertiary-palette: map.merge(map.get($_palettes, tertiary), $_rest);
package/themes/poa.scss CHANGED
@@ -1,57 +1,37 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
1
  @use './common/theme' as theme;
4
2
  @use './common/styles' as common;
5
- @use './common/button';
3
+ @use './common/theme-entry' as theme-entry;
4
+ @use './poa-palettes' as poa;
6
5
 
7
6
  $theme-name: 'poa';
8
7
 
9
- $primary-palette: (
10
- 50: #e8f3f3,
11
- 100: #e2fafb,
12
- 200: #c5f5f8,
13
- 300: #a8f0f4,
14
- 400: #8cebf1,
15
- 500: #14a1a9,
16
- 600: #32d3da,
17
- 700: #23c0c7,
18
- 800: #1ea4aa,
19
- 900: #19888d,
20
- A100: #ccfdff,
21
- A200: #adfcff,
22
- A400: #86faff,
23
- A700: #16f7ff,
24
- contrast: common.$contrast,
25
- background-color: #fafafa,
8
+ // M3 Theme Configuration
9
+ $primary-color: #14a1a9; // Former palette 500 value
10
+ $tertiary-color: #00648f; // Info color
11
+ $background-color: #fafafa;
12
+
13
+ $custom-colors: (
26
14
  warn-color: #ad7600,
27
15
  error-color: #c21d00,
28
16
  info-color: #00648f,
29
17
  success-color: #3c8500,
30
18
  );
31
19
 
32
- $warn-palette: (
33
- 50: #f8e4e0,
34
- 100: #edbbb3,
35
- 200: #e18e80,
36
- 300: #d4614d,
37
- 400: #cb3f26,
38
- 500: #c21d00,
39
- 600: #bc1a00,
40
- 700: #b41500,
41
- 800: #ac1100,
42
- 900: #9f0a00,
43
- A100: #ffcbc9,
44
- A200: #ff9996,
45
- A400: #ff6763,
46
- A700: #ff4e4a,
47
- contrast: common.$contrast,
20
+ // M3 palettes generated from POA brand colors
21
+ $palettes: (
22
+ primary: poa.$primary-palette,
23
+ tertiary: poa.$tertiary-palette,
48
24
  );
49
25
 
50
- @include mat.elevation-classes();
51
- @include mat.app-background();
52
-
53
- $custom-theme: theme.build-custom-theme($theme-name, $primary-palette, common.$default-palette);
26
+ // Build M3 theme
27
+ $custom-theme: theme.build-custom-theme-m3(
28
+ $theme-name,
29
+ $primary-color,
30
+ $tertiary-color,
31
+ $custom-colors,
32
+ common.$default-palette,
33
+ $background-color,
34
+ $palettes
35
+ );
54
36
 
55
- @include mat.all-component-themes($custom-theme);
56
- @include mat.all-component-typographies($custom-theme);
57
- @include common.theme($theme-name, $custom-theme);
37
+ @include theme-entry.apply-theme($custom-theme);