@smitag/angular-shared-ui 0.0.18 → 18.0.1
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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smitag/angular-shared-ui",
|
|
3
3
|
"email": "benjamin.speidel@smartinsurtech.de",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "18.0.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Styling elements and methods shared by all frontends",
|
|
7
7
|
"man": "README.md",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"name": "Benjamin Speidel"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/material": ">=
|
|
19
|
+
"@angular/material": ">=18"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@angular/cdk": ">=
|
|
23
|
-
"@angular/material": ">=
|
|
22
|
+
"@angular/cdk": ">=18",
|
|
23
|
+
"@angular/material": ">=18"
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false
|
|
26
26
|
}
|
|
@@ -68,6 +68,16 @@ input[type='file']::file-selector-button {
|
|
|
68
68
|
height: 16px;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(
|
|
72
|
+
.mat-mdc-option-multiple
|
|
73
|
+
) {
|
|
74
|
+
background-color: rgba(27, 27, 31, 0.12) !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.mdc-icon-button.mat-warn {
|
|
78
|
+
color: #cc0000;
|
|
79
|
+
}
|
|
80
|
+
|
|
71
81
|
@media (max-width: 1280px) {
|
|
72
82
|
.mat-form-field-hint {
|
|
73
83
|
margin-bottom: 45px;
|
|
@@ -1,55 +1,3 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
|
-
@mixin generateCssVariables($variables) {
|
|
4
|
-
:root {
|
|
5
|
-
@each $name, $color in $variables {
|
|
6
|
-
@if type-of($color) == 'map' {
|
|
7
|
-
--theme-#{$name}: #{map.get($color, 500)};
|
|
8
|
-
@include generateCssVariablesWithPrefix($color, $name);
|
|
9
|
-
} @else {
|
|
10
|
-
--theme-#{$name}: #{$color};
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin generateCssVariablesWithPrefix($variables, $prefix) {
|
|
17
|
-
@each $name, $color in $variables {
|
|
18
|
-
@if type-of($color) == 'map' {
|
|
19
|
-
@include generateCssVariablesWithPrefix($color, #{$prefix}-#{$name});
|
|
20
|
-
} @else {
|
|
21
|
-
--theme-#{$prefix}-#{$name}: #{$color};
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@mixin generateClasses($variables) {
|
|
27
|
-
@each $name, $color in $variables {
|
|
28
|
-
@if type-of($color) == 'map' {
|
|
29
|
-
.theme-#{$name} {
|
|
30
|
-
color: map.get($color, 500);
|
|
31
|
-
}
|
|
32
|
-
@include generateClassesWithPrefix($color, $name);
|
|
33
|
-
} @else {
|
|
34
|
-
.theme-#{$name} {
|
|
35
|
-
color: $color;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@mixin generateClassesWithPrefix($variables, $prefix) {
|
|
42
|
-
@each $name, $color in $variables {
|
|
43
|
-
@if type-of($color) == 'map' {
|
|
44
|
-
@include generateClassesWithPrefix($color, #{$prefix}-#{$name});
|
|
45
|
-
} @else {
|
|
46
|
-
.theme-#{$prefix}-#{$name} {
|
|
47
|
-
color: $color;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
1
|
@mixin customComponents($primary, $secondary, $tertiary) {
|
|
54
2
|
.mat-mdc-card-title.colored {
|
|
55
3
|
background-color: rgba($secondary, 0.1);
|
|
@@ -64,6 +12,18 @@
|
|
|
64
12
|
input[type='file']::file-selector-button {
|
|
65
13
|
background-color: $primary;
|
|
66
14
|
}
|
|
15
|
+
|
|
16
|
+
mat-toolbar.first-toolbar {
|
|
17
|
+
background-color: $primary;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mdc-icon-button.mat-primary {
|
|
21
|
+
color: $primary;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.theme-color-primary {
|
|
25
|
+
color: $primary;
|
|
26
|
+
}
|
|
67
27
|
}
|
|
68
28
|
|
|
69
29
|
@mixin whiteToolbar($primary, $second-color) {
|
|
@@ -1,156 +1,158 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
@use 'sass:map';
|
|
3
|
-
@use '../components/base';
|
|
4
3
|
@use '../components/helper';
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
200: #000000,
|
|
26
|
-
300: #000000,
|
|
27
|
-
400: #ffffff,
|
|
28
|
-
500: #ffffff,
|
|
29
|
-
600: #ffffff,
|
|
30
|
-
700: #ffffff,
|
|
31
|
-
800: #ffffff,
|
|
32
|
-
900: #ffffff,
|
|
33
|
-
A100: #000000,
|
|
34
|
-
A200: #000000,
|
|
35
|
-
A400: #000000,
|
|
36
|
-
A700: #000000,
|
|
37
|
-
),
|
|
5
|
+
// primary: #080A6D, secondary: #47DEFD, tertiary: #FFE614
|
|
6
|
+
$_palettes: (
|
|
7
|
+
primary: (
|
|
8
|
+
0: #000000,
|
|
9
|
+
10: #03036a,
|
|
10
|
+
20: #1f237d,
|
|
11
|
+
25: #2b3088,
|
|
12
|
+
30: #373c94,
|
|
13
|
+
35: #4349a1,
|
|
14
|
+
40: #03036a,
|
|
15
|
+
50: #696ec9,
|
|
16
|
+
60: #8288e5,
|
|
17
|
+
70: #9ea3ff,
|
|
18
|
+
80: #bfc2ff,
|
|
19
|
+
90: #e0e0ff,
|
|
20
|
+
95: #f1efff,
|
|
21
|
+
98: #fbf8ff,
|
|
22
|
+
99: #fffbff,
|
|
23
|
+
100: #ffffff,
|
|
38
24
|
),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
100: #000000,
|
|
57
|
-
200: #000000,
|
|
58
|
-
300: #000000,
|
|
59
|
-
400: #ffffff,
|
|
60
|
-
500: #ffffff,
|
|
61
|
-
600: #ffffff,
|
|
62
|
-
700: #ffffff,
|
|
63
|
-
800: #ffffff,
|
|
64
|
-
900: #ffffff,
|
|
65
|
-
A100: #000000,
|
|
66
|
-
A200: #000000,
|
|
67
|
-
A400: #000000,
|
|
68
|
-
A700: #000000,
|
|
69
|
-
),
|
|
25
|
+
secondary: (
|
|
26
|
+
0: #000000,
|
|
27
|
+
10: #001f26,
|
|
28
|
+
20: #003640,
|
|
29
|
+
25: #00424d,
|
|
30
|
+
30: #004e5c,
|
|
31
|
+
35: #005b6a,
|
|
32
|
+
40: #006879,
|
|
33
|
+
50: #008398,
|
|
34
|
+
60: #009fb8,
|
|
35
|
+
70: #00bbd9,
|
|
36
|
+
80: #3dd8f7,
|
|
37
|
+
90: #a9edff,
|
|
38
|
+
95: #d7f6ff,
|
|
39
|
+
98: #f0fbff,
|
|
40
|
+
99: #f8fdff,
|
|
41
|
+
100: #ffffff,
|
|
70
42
|
),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
43
|
+
tertiary: (
|
|
44
|
+
0: #000000,
|
|
45
|
+
10: #201c00,
|
|
46
|
+
20: #373100,
|
|
47
|
+
25: #433c00,
|
|
48
|
+
30: #504700,
|
|
49
|
+
35: #5d5300,
|
|
50
|
+
40: #6a5f00,
|
|
51
|
+
50: #867800,
|
|
52
|
+
60: #a29200,
|
|
53
|
+
70: #c0ac00,
|
|
54
|
+
80: #dec800,
|
|
55
|
+
90: #fde40f,
|
|
56
|
+
95: #fff2a9,
|
|
57
|
+
98: #fff9ea,
|
|
58
|
+
99: #fffbff,
|
|
59
|
+
100: #ffffff,
|
|
60
|
+
),
|
|
61
|
+
neutral: (
|
|
62
|
+
0: #000000,
|
|
63
|
+
10: #1b1b1f,
|
|
64
|
+
20: #303034,
|
|
65
|
+
25: #3c3b3f,
|
|
66
|
+
30: #47464a,
|
|
67
|
+
35: #535256,
|
|
68
|
+
40: #5f5e62,
|
|
69
|
+
50: #78767a,
|
|
70
|
+
60: #929094,
|
|
71
|
+
70: #adaaaf,
|
|
72
|
+
80: #c8c5ca,
|
|
73
|
+
90: #e5e1e6,
|
|
74
|
+
95: #f3eff4,
|
|
75
|
+
98: #fcf8fd,
|
|
76
|
+
99: #fffbff,
|
|
77
|
+
100: #ffffff,
|
|
78
|
+
4: #0e0e11,
|
|
79
|
+
6: #131316,
|
|
80
|
+
12: #201f23,
|
|
81
|
+
17: #2a292d,
|
|
82
|
+
22: #353438,
|
|
83
|
+
24: #39393c,
|
|
84
|
+
87: #dcd9de,
|
|
85
|
+
92: #eae7ec,
|
|
86
|
+
94: #f0edf1,
|
|
87
|
+
96: #f6f2f7,
|
|
88
|
+
),
|
|
89
|
+
neutral-variant: (
|
|
90
|
+
0: #000000,
|
|
91
|
+
10: #1b1b23,
|
|
92
|
+
20: #303038,
|
|
93
|
+
25: #3b3b43,
|
|
94
|
+
30: #46464f,
|
|
95
|
+
35: #52515b,
|
|
96
|
+
40: #5e5d67,
|
|
97
|
+
50: #777680,
|
|
98
|
+
60: #918f9a,
|
|
99
|
+
70: #acaab4,
|
|
100
|
+
80: #c7c5d0,
|
|
101
|
+
90: #e4e1ec,
|
|
102
|
+
95: #f2effa,
|
|
103
|
+
98: #fbf8ff,
|
|
104
|
+
99: #fffbff,
|
|
105
|
+
100: #ffffff,
|
|
106
|
+
),
|
|
107
|
+
error: (
|
|
108
|
+
0: #000000,
|
|
109
|
+
10: #410002,
|
|
110
|
+
20: #690005,
|
|
111
|
+
25: #7e0007,
|
|
112
|
+
30: #93000a,
|
|
113
|
+
35: #a80710,
|
|
114
|
+
40: #ba1a1a,
|
|
115
|
+
50: #de3730,
|
|
116
|
+
60: #ff5449,
|
|
117
|
+
70: #ff897d,
|
|
118
|
+
80: #ffb4ab,
|
|
119
|
+
90: #ffdad6,
|
|
120
|
+
95: #ffedea,
|
|
121
|
+
98: #fff8f7,
|
|
122
|
+
99: #fffbff,
|
|
123
|
+
100: #ffffff,
|
|
102
124
|
),
|
|
103
125
|
);
|
|
104
126
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
$app-secondary: mat.define-palette(map.get($theme-colors, 'color-secondary'));
|
|
111
|
-
$app-tertiary: mat.define-palette(map.get($theme-colors, 'color-tertiary'));
|
|
112
|
-
$app-warn: mat.define-palette(map.get(base.$base-colors, 'color-warn'));
|
|
113
|
-
|
|
114
|
-
$typography: mat.define-typography-config(
|
|
115
|
-
$font-family: 'Poppins, sans-serif',
|
|
116
|
-
$headline-6:
|
|
117
|
-
mat.define-typography-level(
|
|
118
|
-
$font-size: 20px,
|
|
119
|
-
$line-height: 32px,
|
|
120
|
-
$font-weight: 500,
|
|
121
|
-
$letter-spacing: normal,
|
|
122
|
-
),
|
|
123
|
-
$body-1:
|
|
124
|
-
mat.define-typography-level(
|
|
125
|
-
$font-size: 16px,
|
|
126
|
-
$line-height: normal,
|
|
127
|
-
$font-weight: 400,
|
|
128
|
-
$letter-spacing: normal,
|
|
129
|
-
),
|
|
130
|
-
$button:
|
|
131
|
-
mat.define-typography-level(
|
|
132
|
-
$font-size: 14px,
|
|
133
|
-
$line-height: 14px,
|
|
134
|
-
$font-weight: 600,
|
|
135
|
-
$letter-spacing: 0.5px,
|
|
136
|
-
),
|
|
127
|
+
$_rest: (
|
|
128
|
+
secondary: map.get($_palettes, secondary),
|
|
129
|
+
neutral: map.get($_palettes, neutral),
|
|
130
|
+
neutral-variant: map.get($_palettes, neutral-variant),
|
|
131
|
+
error: map.get($_palettes, error),
|
|
137
132
|
);
|
|
133
|
+
$_primary: map.merge(map.get($_palettes, primary), $_rest);
|
|
134
|
+
$_tertiary: map.merge(map.get($_palettes, tertiary), $_rest);
|
|
138
135
|
|
|
139
|
-
$theme: mat.define-
|
|
136
|
+
$light-theme: mat.define-theme(
|
|
140
137
|
(
|
|
141
138
|
color: (
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
theme-type: light,
|
|
140
|
+
primary: $_primary,
|
|
141
|
+
tertiary: $_tertiary,
|
|
142
|
+
),
|
|
143
|
+
typography: (
|
|
144
|
+
brand-family: 'Poppins',
|
|
145
|
+
plain-family: 'Poppins',
|
|
146
|
+
bold-weight: 900,
|
|
145
147
|
),
|
|
146
|
-
typography: $typography,
|
|
147
148
|
)
|
|
148
149
|
);
|
|
149
150
|
|
|
150
|
-
|
|
151
|
-
mat.
|
|
152
|
-
mat.
|
|
153
|
-
|
|
154
|
-
)
|
|
155
|
-
|
|
156
|
-
|
|
151
|
+
html {
|
|
152
|
+
@include mat.core-theme($light-theme);
|
|
153
|
+
@include mat.all-component-themes($light-theme);
|
|
154
|
+
@include helper.customComponents(
|
|
155
|
+
mat.get-theme-color($light-theme, primary, 10),
|
|
156
|
+
mat.get-theme-color($light-theme, secondary, 10)
|
|
157
|
+
);
|
|
158
|
+
}
|
|
@@ -1,161 +1,162 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
@use 'sass:map';
|
|
3
|
-
@use '../components/base';
|
|
4
3
|
@use '../components/helper';
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
200: #000000,
|
|
26
|
-
300: #000000,
|
|
27
|
-
400: #ffffff,
|
|
28
|
-
500: #ffffff,
|
|
29
|
-
600: #ffffff,
|
|
30
|
-
700: #ffffff,
|
|
31
|
-
800: #ffffff,
|
|
32
|
-
900: #ffffff,
|
|
33
|
-
A100: #000000,
|
|
34
|
-
A200: #000000,
|
|
35
|
-
A400: #000000,
|
|
36
|
-
A700: #000000,
|
|
37
|
-
),
|
|
5
|
+
// primary: #080A6D, secondary: #47DEFD, tertiary: #FFE614
|
|
6
|
+
$_palettes: (
|
|
7
|
+
primary: (
|
|
8
|
+
0: #000000,
|
|
9
|
+
10: #03036a,
|
|
10
|
+
20: #1f237d,
|
|
11
|
+
25: #2b3088,
|
|
12
|
+
30: #373c94,
|
|
13
|
+
35: #4349a1,
|
|
14
|
+
40: #03036a,
|
|
15
|
+
50: #696ec9,
|
|
16
|
+
60: #8288e5,
|
|
17
|
+
70: #9ea3ff,
|
|
18
|
+
80: #bfc2ff,
|
|
19
|
+
90: #e0e0ff,
|
|
20
|
+
95: #f1efff,
|
|
21
|
+
98: #fbf8ff,
|
|
22
|
+
99: #fffbff,
|
|
23
|
+
100: #ffffff,
|
|
38
24
|
),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
100: #000000,
|
|
57
|
-
200: #000000,
|
|
58
|
-
300: #000000,
|
|
59
|
-
400: #ffffff,
|
|
60
|
-
500: #ffffff,
|
|
61
|
-
600: #ffffff,
|
|
62
|
-
700: #ffffff,
|
|
63
|
-
800: #ffffff,
|
|
64
|
-
900: #ffffff,
|
|
65
|
-
A100: #000000,
|
|
66
|
-
A200: #000000,
|
|
67
|
-
A400: #000000,
|
|
68
|
-
A700: #000000,
|
|
69
|
-
),
|
|
25
|
+
secondary: (
|
|
26
|
+
0: #000000,
|
|
27
|
+
10: #001f26,
|
|
28
|
+
20: #003640,
|
|
29
|
+
25: #00424d,
|
|
30
|
+
30: #004e5c,
|
|
31
|
+
35: #005b6a,
|
|
32
|
+
40: #006879,
|
|
33
|
+
50: #008398,
|
|
34
|
+
60: #009fb8,
|
|
35
|
+
70: #00bbd9,
|
|
36
|
+
80: #3dd8f7,
|
|
37
|
+
90: #a9edff,
|
|
38
|
+
95: #d7f6ff,
|
|
39
|
+
98: #f0fbff,
|
|
40
|
+
99: #f8fdff,
|
|
41
|
+
100: #ffffff,
|
|
70
42
|
),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
43
|
+
tertiary: (
|
|
44
|
+
0: #000000,
|
|
45
|
+
10: #201c00,
|
|
46
|
+
20: #373100,
|
|
47
|
+
25: #433c00,
|
|
48
|
+
30: #504700,
|
|
49
|
+
35: #5d5300,
|
|
50
|
+
40: #6a5f00,
|
|
51
|
+
50: #867800,
|
|
52
|
+
60: #a29200,
|
|
53
|
+
70: #c0ac00,
|
|
54
|
+
80: #dec800,
|
|
55
|
+
90: #fde40f,
|
|
56
|
+
95: #fff2a9,
|
|
57
|
+
98: #fff9ea,
|
|
58
|
+
99: #fffbff,
|
|
59
|
+
100: #ffffff,
|
|
60
|
+
),
|
|
61
|
+
neutral: (
|
|
62
|
+
0: #000000,
|
|
63
|
+
10: #1b1b1f,
|
|
64
|
+
20: #303034,
|
|
65
|
+
25: #3c3b3f,
|
|
66
|
+
30: #47464a,
|
|
67
|
+
35: #535256,
|
|
68
|
+
40: #5f5e62,
|
|
69
|
+
50: #78767a,
|
|
70
|
+
60: #929094,
|
|
71
|
+
70: #adaaaf,
|
|
72
|
+
80: #c8c5ca,
|
|
73
|
+
90: #e5e1e6,
|
|
74
|
+
95: #f3eff4,
|
|
75
|
+
98: #fcf8fd,
|
|
76
|
+
99: #fffbff,
|
|
77
|
+
100: #ffffff,
|
|
78
|
+
4: #0e0e11,
|
|
79
|
+
6: #131316,
|
|
80
|
+
12: #201f23,
|
|
81
|
+
17: #2a292d,
|
|
82
|
+
22: #353438,
|
|
83
|
+
24: #39393c,
|
|
84
|
+
87: #dcd9de,
|
|
85
|
+
92: #eae7ec,
|
|
86
|
+
94: #f0edf1,
|
|
87
|
+
96: #f6f2f7,
|
|
88
|
+
),
|
|
89
|
+
neutral-variant: (
|
|
90
|
+
0: #000000,
|
|
91
|
+
10: #1b1b23,
|
|
92
|
+
20: #303038,
|
|
93
|
+
25: #3b3b43,
|
|
94
|
+
30: #46464f,
|
|
95
|
+
35: #52515b,
|
|
96
|
+
40: #5e5d67,
|
|
97
|
+
50: #777680,
|
|
98
|
+
60: #918f9a,
|
|
99
|
+
70: #acaab4,
|
|
100
|
+
80: #c7c5d0,
|
|
101
|
+
90: #e4e1ec,
|
|
102
|
+
95: #f2effa,
|
|
103
|
+
98: #fbf8ff,
|
|
104
|
+
99: #fffbff,
|
|
105
|
+
100: #ffffff,
|
|
106
|
+
),
|
|
107
|
+
error: (
|
|
108
|
+
0: #000000,
|
|
109
|
+
10: #410002,
|
|
110
|
+
20: #690005,
|
|
111
|
+
25: #7e0007,
|
|
112
|
+
30: #93000a,
|
|
113
|
+
35: #a80710,
|
|
114
|
+
40: #ba1a1a,
|
|
115
|
+
50: #de3730,
|
|
116
|
+
60: #ff5449,
|
|
117
|
+
70: #ff897d,
|
|
118
|
+
80: #ffb4ab,
|
|
119
|
+
90: #ffdad6,
|
|
120
|
+
95: #ffedea,
|
|
121
|
+
98: #fff8f7,
|
|
122
|
+
99: #fffbff,
|
|
123
|
+
100: #ffffff,
|
|
102
124
|
),
|
|
103
125
|
);
|
|
104
126
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
$app-secondary: mat.define-palette(map.get($theme-colors, 'color-secondary'));
|
|
111
|
-
$app-tertiary: mat.define-palette(map.get($theme-colors, 'color-tertiary'));
|
|
112
|
-
$app-warn: mat.define-palette(map.get(base.$base-colors, 'color-warn'));
|
|
113
|
-
|
|
114
|
-
$typography: mat.define-typography-config(
|
|
115
|
-
$font-family: 'Poppins, sans-serif',
|
|
116
|
-
$headline-6:
|
|
117
|
-
mat.define-typography-level(
|
|
118
|
-
$font-size: 20px,
|
|
119
|
-
$line-height: 32px,
|
|
120
|
-
$font-weight: 500,
|
|
121
|
-
$letter-spacing: normal,
|
|
122
|
-
),
|
|
123
|
-
$body-1:
|
|
124
|
-
mat.define-typography-level(
|
|
125
|
-
$font-size: 16px,
|
|
126
|
-
$line-height: normal,
|
|
127
|
-
$font-weight: 400,
|
|
128
|
-
$letter-spacing: normal,
|
|
129
|
-
),
|
|
130
|
-
$button:
|
|
131
|
-
mat.define-typography-level(
|
|
132
|
-
$font-size: 14px,
|
|
133
|
-
$line-height: 14px,
|
|
134
|
-
$font-weight: 600,
|
|
135
|
-
$letter-spacing: 0.5px,
|
|
136
|
-
),
|
|
127
|
+
$_rest: (
|
|
128
|
+
secondary: map.get($_palettes, secondary),
|
|
129
|
+
neutral: map.get($_palettes, neutral),
|
|
130
|
+
neutral-variant: map.get($_palettes, neutral-variant),
|
|
131
|
+
error: map.get($_palettes, error),
|
|
137
132
|
);
|
|
133
|
+
$_primary: map.merge(map.get($_palettes, primary), $_rest);
|
|
134
|
+
$_tertiary: map.merge(map.get($_palettes, tertiary), $_rest);
|
|
138
135
|
|
|
139
|
-
$theme: mat.define-
|
|
136
|
+
$light-theme: mat.define-theme(
|
|
140
137
|
(
|
|
141
138
|
color: (
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
theme-type: light,
|
|
140
|
+
primary: $_primary,
|
|
141
|
+
tertiary: $_tertiary,
|
|
142
|
+
),
|
|
143
|
+
typography: (
|
|
144
|
+
brand-family: 'Poppins',
|
|
145
|
+
plain-family: 'Poppins',
|
|
146
|
+
bold-weight: 900,
|
|
145
147
|
),
|
|
146
|
-
typography: $typography,
|
|
147
148
|
)
|
|
148
149
|
);
|
|
149
150
|
|
|
150
|
-
|
|
151
|
-
mat.
|
|
152
|
-
mat.
|
|
153
|
-
|
|
154
|
-
)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
)
|
|
160
|
-
|
|
161
|
-
|
|
151
|
+
html {
|
|
152
|
+
@include mat.core-theme($light-theme);
|
|
153
|
+
@include mat.all-component-themes($light-theme);
|
|
154
|
+
@include helper.customComponents(
|
|
155
|
+
mat.get-theme-color($light-theme, primary, 10),
|
|
156
|
+
mat.get-theme-color($light-theme, secondary, 10)
|
|
157
|
+
);
|
|
158
|
+
@include helper.whiteToolbar(
|
|
159
|
+
mat.get-color-from-palette($light-theme, primary, 10),
|
|
160
|
+
mat.get-color-from-palette($light-theme, primary, 10)
|
|
161
|
+
);
|
|
162
|
+
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
@use './helper';
|
|
3
|
-
|
|
4
|
-
// theme-independant variables
|
|
5
|
-
$base-colors: (
|
|
6
|
-
color-warn: (
|
|
7
|
-
50: #f9e0e0,
|
|
8
|
-
100: #f0b3b3,
|
|
9
|
-
200: #e68080,
|
|
10
|
-
300: #db4d4d,
|
|
11
|
-
400: #d42626,
|
|
12
|
-
500: #cc0000,
|
|
13
|
-
600: #c70000,
|
|
14
|
-
700: #c00000,
|
|
15
|
-
800: #b90000,
|
|
16
|
-
900: #ad0000,
|
|
17
|
-
A100: #ffd7d7,
|
|
18
|
-
A200: #ffa4a4,
|
|
19
|
-
A400: #ff7171,
|
|
20
|
-
A700: #ff5858,
|
|
21
|
-
contrast: (
|
|
22
|
-
50: #000000,
|
|
23
|
-
100: #000000,
|
|
24
|
-
200: #000000,
|
|
25
|
-
300: #ffffff,
|
|
26
|
-
400: #ffffff,
|
|
27
|
-
500: #ffffff,
|
|
28
|
-
600: #ffffff,
|
|
29
|
-
700: #ffffff,
|
|
30
|
-
800: #ffffff,
|
|
31
|
-
900: #ffffff,
|
|
32
|
-
A100: #000000,
|
|
33
|
-
A200: #000000,
|
|
34
|
-
A400: #000000,
|
|
35
|
-
A700: #000000,
|
|
36
|
-
),
|
|
37
|
-
),
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
@include helper.generateCssVariables($base-colors);
|
|
41
|
-
|
|
42
|
-
@include helper.generateClasses($base-colors);
|
|
43
|
-
|
|
44
|
-
$color-text-dark: #000000;
|
|
45
|
-
$color-text-light: #ffffff;
|
|
46
|
-
$color-text-disabled: #d7d5d5;
|
|
47
|
-
$color-text-inactive: #9e9e9e;
|
|
48
|
-
$color-background-dark: #e5e5e5;
|
|
49
|
-
$color-background-light: #f2f2f2;
|
|
50
|
-
$color-background-white: #ffffff;
|
|
51
|
-
$color-footer: #444444;
|
|
52
|
-
|
|
53
|
-
$shadow-bottom: 0 1px 1px 0 rgba(60, 64, 67, 0.08),
|
|
54
|
-
0 1px 3px 0 rgba(60, 64, 67, 0.16);
|
|
55
|
-
$shadow-top: 0px -1px 1px rgba(60, 64, 67, 0.08),
|
|
56
|
-
0px -1px 3px rgba(60, 64, 67, 0.16);
|
|
57
|
-
|
|
58
|
-
@include mat.core();
|