@elderbyte/ngx-starter 19.1.1 → 19.1.2
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/fesm2022/elderbyte-ngx-starter.mjs +2 -2
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/theme-sizes.d.ts +1 -1
- package/package.json +1 -1
- package/theming/abstracts/_elder-design-tokens.scss +184 -14
- package/theming/abstracts/_elder-starter-theme.scss +3 -0
- package/theming/base/_elder-fixes-base.scss +7 -15
- package/theming/components/_elder-scrollbar-theme.scss +45 -0
- package/theming/utilities/_elder-common-utils.scss +10 -0
package/package.json
CHANGED
|
@@ -1,12 +1,42 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
2
3
|
@use './elder-scss-variables' as config;
|
|
3
4
|
|
|
4
5
|
@mixin elder-design-tokens() {
|
|
5
6
|
@include elder-badge-sizing();
|
|
6
7
|
|
|
8
|
+
@include color-theme-x();
|
|
9
|
+
|
|
7
10
|
& {
|
|
11
|
+
//--md-sys-color-surface-container-highest: hsl(216, 56%, 96%);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.elder-light-theme,
|
|
15
|
+
&.elder-dark-theme {
|
|
16
|
+
// --md-sys-color-surface-container-highest: hsl(218, 56%, 95%); // light blue
|
|
17
|
+
// --md-sys-color-surface-container-highest: hsl(220, 50%, 98%); // gmail bg blue
|
|
18
|
+
// --md-sys-color-surface-container-highest: hsl(216, 56%, 98%); // google drive bg blue
|
|
19
|
+
// --md-sys-color-surface-container-highest: hsl(216, 42%, 97%);
|
|
20
|
+
//--md-sys-color-surface-container-highest: hsl(216, 56%, 96%);
|
|
21
|
+
//--md-sys-color-surface-container-highest: hsl(216, 99%, 96%); // P favorit
|
|
22
|
+
//--md-sys-color-surface-container-highest: hsl(216, 49%, 90%);
|
|
23
|
+
--md-sys-color-surface-container-highest: hsl(41, 39%, 93%);
|
|
24
|
+
--md-sys-color-surface-container-highest: hsl(0, 0%, 95%); // xy
|
|
25
|
+
--md-sys-color-surface-container-highest: var(--md-sys-color-surface-container);
|
|
26
|
+
// --md-sys-color-surface-container-high: hsl(218, 38%, 93%); // xy
|
|
27
|
+
// --md-sys-color-surface-container: hsl(218, 38%, 91%); // xy
|
|
28
|
+
// --md-sys-color-surface-container-low: hsl(218, 38%, 8%); // xy
|
|
8
29
|
--md-sys-color-background: var(--md-sys-color-surface-container-highest);
|
|
30
|
+
//--md-sys-color-background: var(--md-sys-color-surface-container-low);
|
|
9
31
|
--mat-app-background-color: var(--md-sys-color-background);
|
|
32
|
+
// --mat-app-background-color: hsl(218, 0%, 92%);
|
|
33
|
+
|
|
34
|
+
//--mat-app-background-color: hsl(218, 21%, 34%);
|
|
35
|
+
//--mat-app-background-color: var(--md-sys-color-primary);
|
|
36
|
+
|
|
37
|
+
// .mat-mdc-tab-header * {
|
|
38
|
+
// color: white !important;
|
|
39
|
+
// }
|
|
10
40
|
|
|
11
41
|
// mat variables
|
|
12
42
|
--mat-sidenav-container-width: auto; // is set to around 300px by default in MAT 3 (MAT 2 was auto by default)
|
|
@@ -32,7 +62,7 @@
|
|
|
32
62
|
--mat-dialog-container-elevation-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.6);
|
|
33
63
|
}
|
|
34
64
|
|
|
35
|
-
// elder custom variables
|
|
65
|
+
// // elder custom variables
|
|
36
66
|
--elder-border-radius-sm: 4px; // typical small border radius, inspired by mat 2
|
|
37
67
|
--elder-border-light: 1px solid var(--md-sys-color-outline-variant);
|
|
38
68
|
--elder-box-shadow-default: var(--mat-app-elevation-shadow-level-8);
|
|
@@ -51,7 +81,7 @@
|
|
|
51
81
|
--elder-nav-link-hover-color: var(--elder-backdrop-highlight-color);
|
|
52
82
|
--elder-nav-link-active-color: var(--elder-backdrop-highlight-color);
|
|
53
83
|
|
|
54
|
-
// elder pane
|
|
84
|
+
// // elder pane
|
|
55
85
|
--elder-pane-padding: #{map.get(config.$sizes, sm)};
|
|
56
86
|
--elder-pane-gap: #{map.get(config.$sizes, sm)};
|
|
57
87
|
--elder-pane-border-radius: var(--mdc-outlined-card-container-shape, 12px);
|
|
@@ -86,6 +116,16 @@
|
|
|
86
116
|
--elder-gold-light: #{map.get(config.$custom-colors, elder-gold-light)};
|
|
87
117
|
--elder-gray-medium: #{map.get(config.$custom-colors, elder-gray-medium)};
|
|
88
118
|
|
|
119
|
+
--elder-blue: var(--md-sys-color-primary);
|
|
120
|
+
--md-sys-color-tertiary: var(--elder-gold);
|
|
121
|
+
//--md-sys-color-tertiary-container: var(--elder-gold-semi-light);
|
|
122
|
+
//--elder-gold: var(--md-sys-color-tertiary);
|
|
123
|
+
// --elder-gold-dark: var(--md-sys-color-tertiary-container);
|
|
124
|
+
// --elder-gold-semi-dark: var(--md-sys-color-tertiary-fixed-dim);
|
|
125
|
+
// --elder-gold-semi-light: var(--md-sys-color-tertiary-fixed);
|
|
126
|
+
// --elder-gold-light: var(--md-sys-color-tertiary-container);
|
|
127
|
+
--elder-gray-medium: var(--md-sys-color-secondary-container);
|
|
128
|
+
|
|
89
129
|
--elder-color-highlight-strong: hsl(214, 18%, 85%);
|
|
90
130
|
--elder-color-highlight-strong: var(--elder-gold-light);
|
|
91
131
|
--elder-color-highlight-light: #ebebeb;
|
|
@@ -113,6 +153,18 @@
|
|
|
113
153
|
--mat-toolbar-title-text-line-height: 36px;
|
|
114
154
|
}
|
|
115
155
|
|
|
156
|
+
// light theme overwrites
|
|
157
|
+
&.elder-light-theme {
|
|
158
|
+
//--md-sys-color-primary: var(--elder-blue);
|
|
159
|
+
--md-sys-color-tertiary: var(--elder-gold);
|
|
160
|
+
--md-sys-color-tertiary-container: var(--elder-gold-light);
|
|
161
|
+
--md-sys-color-on-tertiary: var(--md-sys-color-on-surface);
|
|
162
|
+
--md-sys-color-secondary-container: hsl(214, 44%, 84%);
|
|
163
|
+
--md-sys-color-secondary-fixed: hsl(214, 44%, 89%);
|
|
164
|
+
//--md-sys-color-primary-container: #a6c7ed;
|
|
165
|
+
//--md-sys-color-primary: #0b284f;
|
|
166
|
+
}
|
|
167
|
+
|
|
116
168
|
// chip colors light
|
|
117
169
|
&.elder-light-theme {
|
|
118
170
|
--elder-chip-color-state-none: #{map.get(config.$chip-colors, state-none)};
|
|
@@ -142,18 +194,7 @@
|
|
|
142
194
|
|
|
143
195
|
&.elder-dark-theme {
|
|
144
196
|
// dark theme blue
|
|
145
|
-
--md-sys-color-primary: hsl(222, 45%, 74%);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// light theme overwrites
|
|
149
|
-
&.elder-light-theme {
|
|
150
|
-
--md-sys-color-primary: var(--elder-blue);
|
|
151
|
-
--md-sys-color-tertiary: var(--elder-gold);
|
|
152
|
-
--md-sys-color-tertiary-container: var(--elder-gold-light);
|
|
153
|
-
--md-sys-color-on-tertiary: var(--md-sys-color-on-surface);
|
|
154
|
-
--md-sys-color-secondary-container: hsl(214, 44%, 84%);
|
|
155
|
-
--md-sys-color-secondary-fixed: hsl(214, 44%, 89%);
|
|
156
|
-
--md-sys-color-primary-container: #a6c7ed;
|
|
197
|
+
--md-sys-color-primary: hsl(222, 45%, 74%); // dim primary color
|
|
157
198
|
}
|
|
158
199
|
|
|
159
200
|
// dark theme overwrites
|
|
@@ -211,3 +252,132 @@
|
|
|
211
252
|
--mat-badge-large-size-line-height: var(--mat-badge-legacy-large-size-container-size);
|
|
212
253
|
}
|
|
213
254
|
}
|
|
255
|
+
|
|
256
|
+
@mixin color-theme-x() {
|
|
257
|
+
&.elder-light-theme,
|
|
258
|
+
&.elder-dark-theme {
|
|
259
|
+
@include mat.theme-overrides(
|
|
260
|
+
(
|
|
261
|
+
primary: #475f89,
|
|
262
|
+
on-primary: #ffffff,
|
|
263
|
+
primary-container: #d7e3ff,
|
|
264
|
+
on-primary-container: #001b3e,
|
|
265
|
+
inverse-primary: #afc7f7,
|
|
266
|
+
primary-fixed: #d7e3ff,
|
|
267
|
+
primary-fixed-dim: #afc7f7,
|
|
268
|
+
on-primary-fixed: #001b3e,
|
|
269
|
+
on-primary-fixed-variant: #2f476f,
|
|
270
|
+
secondary: #565e71,
|
|
271
|
+
on-secondary: #ffffff,
|
|
272
|
+
secondary-container: #dae2f9,
|
|
273
|
+
on-secondary-container: #131b2c,
|
|
274
|
+
secondary-fixed: #dae2f9,
|
|
275
|
+
secondary-fixed-dim: #bec6dc,
|
|
276
|
+
on-secondary-fixed: #131b2c,
|
|
277
|
+
on-secondary-fixed-variant: #3f4759,
|
|
278
|
+
tertiary: #6f5c2e,
|
|
279
|
+
on-tertiary: #ffffff,
|
|
280
|
+
tertiary-container: #fae0a5,
|
|
281
|
+
on-tertiary-container: #251a00,
|
|
282
|
+
tertiary-fixed: #fae0a5,
|
|
283
|
+
tertiary-fixed-dim: #ddc48c,
|
|
284
|
+
on-tertiary-fixed: #251a00,
|
|
285
|
+
on-tertiary-fixed-variant: #564518,
|
|
286
|
+
background: #fcf8f8,
|
|
287
|
+
on-background: #1c1b1c,
|
|
288
|
+
surface: #fcf8f8,
|
|
289
|
+
surface-dim: #ddd9d9,
|
|
290
|
+
surface-bright: #fcf8f8,
|
|
291
|
+
surface-container-lowest: #ffffff,
|
|
292
|
+
surface-container-low: #f7f3f2,
|
|
293
|
+
surface-container: #f1eded,
|
|
294
|
+
surface-container-high: #ebe7e7,
|
|
295
|
+
surface-container-highest: #e5e2e1,
|
|
296
|
+
on-surface: #1c1b1c,
|
|
297
|
+
shadow: #000000,
|
|
298
|
+
scrim: #000000,
|
|
299
|
+
surface-tint: #5e5e62,
|
|
300
|
+
inverse-surface: #313030,
|
|
301
|
+
inverse-on-surface: #f4f0f0,
|
|
302
|
+
outline: #76777b,
|
|
303
|
+
outline-variant: #c6c6cb,
|
|
304
|
+
neutral: #787676,
|
|
305
|
+
neutral10: #1c1b1c,
|
|
306
|
+
error: #ba1a1a,
|
|
307
|
+
error-container: #ffdad6,
|
|
308
|
+
on-error: #ffffff,
|
|
309
|
+
on-error-container: #410002,
|
|
310
|
+
surface-variant: #e2e2e7,
|
|
311
|
+
on-surface-variant: #45474b,
|
|
312
|
+
neutral-variant: #76777c,
|
|
313
|
+
neutral-variant20: #2f3034,
|
|
314
|
+
inverse-secondary: #bec6dc,
|
|
315
|
+
inverse-tertiary: #ddc48c,
|
|
316
|
+
),
|
|
317
|
+
'md-sys-color'
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&.elder-dark-theme {
|
|
322
|
+
@include mat.theme-overrides(
|
|
323
|
+
(
|
|
324
|
+
primary: #afc7f7,
|
|
325
|
+
on-primary: #163057,
|
|
326
|
+
primary-container: #2f476f,
|
|
327
|
+
on-primary-container: #d7e3ff,
|
|
328
|
+
inverse-primary: #475f89,
|
|
329
|
+
primary-fixed: #d7e3ff,
|
|
330
|
+
primary-fixed-dim: #afc7f7,
|
|
331
|
+
on-primary-fixed: #001b3e,
|
|
332
|
+
on-primary-fixed-variant: #2f476f,
|
|
333
|
+
secondary: #bec6dc,
|
|
334
|
+
on-secondary: #283042,
|
|
335
|
+
secondary-container: #3f4759,
|
|
336
|
+
on-secondary-container: #dae2f9,
|
|
337
|
+
secondary-fixed: #dae2f9,
|
|
338
|
+
secondary-fixed-dim: #bec6dc,
|
|
339
|
+
on-secondary-fixed: #131b2c,
|
|
340
|
+
on-secondary-fixed-variant: #3f4759,
|
|
341
|
+
tertiary: #ddc48c,
|
|
342
|
+
on-tertiary: #3d2e04,
|
|
343
|
+
tertiary-container: #564518,
|
|
344
|
+
on-tertiary-container: #fae0a5,
|
|
345
|
+
tertiary-fixed: #fae0a5,
|
|
346
|
+
tertiary-fixed-dim: #ddc48c,
|
|
347
|
+
on-tertiary-fixed: #251a00,
|
|
348
|
+
on-tertiary-fixed-variant: #564518,
|
|
349
|
+
background: #141313,
|
|
350
|
+
on-background: #e5e2e1,
|
|
351
|
+
surface: #141313,
|
|
352
|
+
surface-dim: #141313,
|
|
353
|
+
surface-bright: #3a3939,
|
|
354
|
+
surface-container-lowest: #0e0e0e,
|
|
355
|
+
surface-container-low: #1c1b1c,
|
|
356
|
+
surface-container: #201f20,
|
|
357
|
+
surface-container-high: #2a2a2a,
|
|
358
|
+
surface-container-highest: #353435,
|
|
359
|
+
on-surface: #e5e2e1,
|
|
360
|
+
shadow: #000000,
|
|
361
|
+
scrim: #000000,
|
|
362
|
+
surface-tint: #c7c6ca,
|
|
363
|
+
inverse-surface: #e5e2e1,
|
|
364
|
+
inverse-on-surface: #313030,
|
|
365
|
+
outline: #909095,
|
|
366
|
+
outline-variant: #45474b,
|
|
367
|
+
neutral: #787676,
|
|
368
|
+
neutral10: #1c1b1c,
|
|
369
|
+
error: #ffb4ab,
|
|
370
|
+
error-container: #93000a,
|
|
371
|
+
on-error: #690005,
|
|
372
|
+
on-error-container: #ffdad6,
|
|
373
|
+
surface-variant: #45474b,
|
|
374
|
+
on-surface-variant: #c6c6cb,
|
|
375
|
+
neutral-variant: #76777c,
|
|
376
|
+
neutral-variant20: #2f3034,
|
|
377
|
+
inverse-secondary: #565e71,
|
|
378
|
+
inverse-tertiary: #6f5c2e,
|
|
379
|
+
),
|
|
380
|
+
'md-sys-color'
|
|
381
|
+
);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
@use '../components/elder-select-theme' as elder-select;
|
|
17
17
|
@use '../components/elder-toolbar-theme' as elder-toolbar;
|
|
18
18
|
@use '../components/elder-table-theme' as elder-table;
|
|
19
|
+
@use '../components/elder-scrollbar-theme' as elder-scrollbar;
|
|
20
|
+
|
|
19
21
|
|
|
20
22
|
// Create a theme.
|
|
21
23
|
@mixin starter-theme($theme) {
|
|
@@ -46,4 +48,5 @@
|
|
|
46
48
|
@include elder-select.theme($theme);
|
|
47
49
|
@include elder-toolbar.theme($theme);
|
|
48
50
|
@include elder-table.theme($theme);
|
|
51
|
+
@include elder-scrollbar.theme();
|
|
49
52
|
}
|
|
@@ -2,20 +2,7 @@
|
|
|
2
2
|
@use './elder-base-mixins' as mixins;
|
|
3
3
|
@use 'sass:map';
|
|
4
4
|
|
|
5
|
-
@mixin elder-fixes-base($theme) {
|
|
6
|
-
::-webkit-scrollbar {
|
|
7
|
-
width: var(--elder-scrollbar-width);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
::-webkit-scrollbar-thumb {
|
|
11
|
-
background: var(--md-sys-color-outline-variant);
|
|
12
|
-
border-radius: 5px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
::-webkit-scrollbar-thumb:hover {
|
|
16
|
-
background: var(--md-sys-color-outline);
|
|
17
|
-
}
|
|
18
|
-
|
|
5
|
+
@mixin elder-fixes-base($theme) {
|
|
19
6
|
.mat-app-background {
|
|
20
7
|
display: block;
|
|
21
8
|
}
|
|
@@ -168,7 +155,8 @@
|
|
|
168
155
|
}
|
|
169
156
|
|
|
170
157
|
&.elder-light-theme .mdc-linear-progress__buffer-bar {
|
|
171
|
-
--mdc-linear-progress-track-color: #
|
|
158
|
+
--mdc-linear-progress-track-color: #f8f8f8;
|
|
159
|
+
--mdc-linear-progress-track-color: var(--md-sys-color-secondary-fixed-dim);
|
|
172
160
|
}
|
|
173
161
|
|
|
174
162
|
&.elder-light-theme elder-data-transfer-aggregate .mdc-linear-progress__buffer-bar {
|
|
@@ -197,4 +185,8 @@
|
|
|
197
185
|
// --mdc-switch-selected-hover-handle-color: color-mix(in hsl, var(--md-sys-color-tertiary), black 16%);
|
|
198
186
|
}
|
|
199
187
|
}
|
|
188
|
+
|
|
189
|
+
&.elder-light-theme .main-nav-logo{
|
|
190
|
+
filter: brightness(1.09) saturate(1.07);
|
|
191
|
+
}
|
|
200
192
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:color';
|
|
3
|
+
@use '@angular/material' as mat;
|
|
4
|
+
@use '../abstracts/elder-scss-variables' as config;
|
|
5
|
+
|
|
6
|
+
@mixin theme() {
|
|
7
|
+
// scrollbar styling
|
|
8
|
+
::-webkit-scrollbar {
|
|
9
|
+
width: var(--elder-scrollbar-width);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
::-webkit-scrollbar-thumb {
|
|
13
|
+
background: var(--md-sys-color-outline-variant);
|
|
14
|
+
border-radius: 5px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
::-webkit-scrollbar-thumb:hover {
|
|
18
|
+
background: var(--md-sys-color-outline);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.scrollbar-xs {
|
|
22
|
+
@include scrollbar-width(map.get(config.$sizes, xs));
|
|
23
|
+
}
|
|
24
|
+
.scrollbar-sm {
|
|
25
|
+
@include scrollbar-width(map.get(config.$sizes, sm));
|
|
26
|
+
}
|
|
27
|
+
.scrollbar-md {
|
|
28
|
+
@include scrollbar-width(map.get(config.$sizes, md));
|
|
29
|
+
}
|
|
30
|
+
.scrollbar-lg {
|
|
31
|
+
@include scrollbar-width(map.get(config.$sizes, lg));
|
|
32
|
+
}
|
|
33
|
+
.scrollbar-xl {
|
|
34
|
+
@include scrollbar-width(map.get(config.$sizes, xl));
|
|
35
|
+
}
|
|
36
|
+
.scrollbar-xxl {
|
|
37
|
+
@include scrollbar-width(map.get(config.$sizes, xxl));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin scrollbar-width($width) {
|
|
42
|
+
&::-webkit-scrollbar {
|
|
43
|
+
width: $width;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -2,21 +2,31 @@
|
|
|
2
2
|
.border-none {
|
|
3
3
|
border: none;
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
.bold {
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
.border-radius-0 {
|
|
6
11
|
border-radius: 0;
|
|
7
12
|
}
|
|
13
|
+
|
|
8
14
|
.display-none {
|
|
9
15
|
display: none;
|
|
10
16
|
}
|
|
17
|
+
|
|
11
18
|
.text-center {
|
|
12
19
|
text-align: center;
|
|
13
20
|
}
|
|
21
|
+
|
|
14
22
|
.overflow-hidden {
|
|
15
23
|
overflow: hidden;
|
|
16
24
|
}
|
|
25
|
+
|
|
17
26
|
.overflow-auto {
|
|
18
27
|
overflow: auto;
|
|
19
28
|
}
|
|
29
|
+
|
|
20
30
|
.full-width {
|
|
21
31
|
width: 100%; // legacy, keep for now
|
|
22
32
|
}
|