@smitag/angular-shared-ui 19.2.1 → 19.2.3
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/README.md +31 -2
- package/package.json +1 -1
- package/src/lib/styles/components/_card.scss +14 -0
- package/src/lib/styles/components/_colors.scss +95 -0
- package/src/lib/styles/components/_dialog.scss +1 -1
- package/src/lib/styles/components/_drawer.scss +8 -0
- package/src/lib/styles/components/_helper.scss +15 -0
- package/src/lib/styles/components/_layout.scss +42 -0
- package/src/lib/styles/styles.scss +1 -1
- package/src/lib/styles/themes/admin.scss +3 -3
- package/src/lib/styles/themes/default.scss +3 -3
package/README.md
CHANGED
|
@@ -19,11 +19,40 @@ This repository contains themes for [Angular Material](https://github.com/angula
|
|
|
19
19
|
```
|
|
20
20
|
## Applying the theme color
|
|
21
21
|
|
|
22
|
+
[Deprecated] it means that its use is not recommended, and it may be removed in future versions!
|
|
22
23
|
If you want to apply the theme primary color to html elements, set the class to `theme-color-primary`.
|
|
23
|
-
For the secondary color use `theme-color-secondary`.
|
|
24
|
+
For the secondary color use `theme-color-secondary`. [/Deprecated]
|
|
25
|
+
|
|
26
|
+
The system-level-colors generates a set of CSS classes based on color role that can be used across an app.
|
|
27
|
+
|
|
28
|
+
* **Primary**, **Secondary**, **Tertiary** – Accent color roles used to emphasize or de-emphasize foreground elements.
|
|
29
|
+
* **Container** – Roles used as a fill color for foreground elements like buttons.
|
|
30
|
+
* **On** – Roles starting with this term indicate a color for text or icons on top of its paired parent color. For example, on primary is used for text and icons against the primary fill color.
|
|
31
|
+
* **Variant** – Roles ending with this term offer a lower emphasis alternative to its non-variant pair. For example, outline variant is a less emphasized version of the outline color.
|
|
32
|
+
* **Surface** – A role used for backgrounds and large, low-emphasis areas of the screen.
|
|
33
|
+
|
|
34
|
+
Name | background-color | color |
|
|
35
|
+
| --------------------------- | -------------------------- | ----------------------- |
|
|
36
|
+
| Primary | .primary | .on-primary |
|
|
37
|
+
| Primary container | .primary-container | .on-primary-container |
|
|
38
|
+
| Secondary | .secondary | .on-secondary |
|
|
39
|
+
| Secondary container | .secondary-container | .on-secondary-container |
|
|
40
|
+
| Tertiary | .tertiary | .on-tertiary |
|
|
41
|
+
| Tertiary container | .tertiary-container | .on-tertiary-container |
|
|
42
|
+
| Error | .error | .on-error |
|
|
43
|
+
| Outline | - | .outline |
|
|
44
|
+
| Outline variant | - | .outline-variant |
|
|
45
|
+
| Surface | .surface | - |
|
|
46
|
+
| Surface container lowest | .surface-container-lowest | - |
|
|
47
|
+
| Surface container low | .surface-container-low | - |
|
|
48
|
+
| Surface container | .surface-container | - |
|
|
49
|
+
| Surface container high | .surface-container-high | - |
|
|
50
|
+
| Surface container highest | .surface-container-highest | - |
|
|
24
51
|
|
|
25
52
|
```html
|
|
26
|
-
<mat-
|
|
53
|
+
<mat-card class="primary"> <!-- background-color -->
|
|
54
|
+
<mat-card-content class="on-primary">primary</mat-card-content> <!-- color -->
|
|
55
|
+
</mat-card>
|
|
27
56
|
```
|
|
28
57
|
|
|
29
58
|
## Applying typography
|
package/package.json
CHANGED
|
@@ -6,6 +6,16 @@
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
.card-icon {
|
|
10
|
+
order: -1;
|
|
11
|
+
margin-right: 8px;
|
|
12
|
+
mat-icon {
|
|
13
|
+
height: 40px;
|
|
14
|
+
width: 40px;
|
|
15
|
+
font-size: 36px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
9
19
|
.mat-mdc-card,
|
|
10
20
|
.mat-mdc-card .mat-expansion-panel {
|
|
11
21
|
box-shadow: 0 1px 1px 0 rgba(60, 64, 67, 0.08),
|
|
@@ -16,6 +26,10 @@
|
|
|
16
26
|
margin-top: -8px !important;
|
|
17
27
|
}
|
|
18
28
|
|
|
29
|
+
.mat-mdc-card.flat-card {
|
|
30
|
+
border: 1px solid var(--mat-sys-outline-variant);
|
|
31
|
+
}
|
|
32
|
+
|
|
19
33
|
.mat-mdc-card.flat-card,
|
|
20
34
|
mat-accordion.flat-card,
|
|
21
35
|
mat-expansion-panel.flat-card {
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.primary {
|
|
2
|
+
background-color: var(--mat-sys-primary) !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.primary-container {
|
|
6
|
+
background-color: var(--mat-sys-primary-container) !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.on-primary {
|
|
10
|
+
color: var(--mat-sys-on-primary) !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.on-primary-container {
|
|
14
|
+
color: var(--mat-sys-on-primary-container) !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.secondary {
|
|
18
|
+
background-color: var(--mat-sys-secondary) !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.secondary-container {
|
|
22
|
+
background-color: var(--mat-sys-secondary-container) !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.on-secondary {
|
|
26
|
+
color: var(--mat-sys-on-secondary) !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.on-secondary-container {
|
|
30
|
+
color: var(--mat-sys-on-secondary-container) !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.tertiary {
|
|
34
|
+
background-color: var(--mat-sys-tertiary) !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tertiary-container {
|
|
38
|
+
background-color: var(--mat-sys-tertiary-container) !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.on-tertiary {
|
|
42
|
+
color: var(--mat-sys-on-tertiary) !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.on-tertiary-container {
|
|
46
|
+
color: var(--mat-sys-on-tertiary-container) !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.error {
|
|
50
|
+
background-color: var(--mat-sys-error) !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.error-container {
|
|
54
|
+
background-color: var(--mat-sys-error-container) !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.on-error {
|
|
58
|
+
color: var(--mat-sys-on-error) !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.on-error-container {
|
|
62
|
+
color: var(--mat-sys-on-error-container) !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.outline {
|
|
66
|
+
color: var(--mat-sys-outline) !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.outline-variant {
|
|
70
|
+
color: var(--mat-sys-outline-variant) !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.surface {
|
|
74
|
+
background-color: var(--mat-sys-surface) !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.surface-container-lowest {
|
|
78
|
+
background-color: var(--mat-sys-surface-container-lowest) !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.surface-container-low {
|
|
82
|
+
background-color: var(--mat-sys-surface-container-low) !important;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.surface-container {
|
|
86
|
+
background-color: var(--mat-sys-surface-container) !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.surface-container-high {
|
|
90
|
+
background-color: var(--mat-sys-surface-container-high) !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.surface-container-highest {
|
|
94
|
+
background-color: var(--mat-sys-surface-container-highest) !important;
|
|
95
|
+
}
|
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
color: var(--mat-sys-outline-variant);
|
|
20
20
|
font-size: 24px;
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
.mdc-list-group__subheader {
|
|
24
|
+
margin: .75rem 16px 0 16px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.mat-divider {
|
|
28
|
+
border-top-color: var(--mat-sys-outline-variant, var(--mat-sys-outline));
|
|
29
|
+
}
|
|
22
30
|
}
|
|
23
31
|
|
|
24
32
|
.mat-mdc-list-item {
|
|
@@ -53,3 +53,18 @@
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
@mixin mdc-surface-colors($theme) {
|
|
58
|
+
$colors: (
|
|
59
|
+
'surface',
|
|
60
|
+
'surface-container-lowest',
|
|
61
|
+
'surface-container-low',
|
|
62
|
+
'surface-container',
|
|
63
|
+
'surface-container-high',
|
|
64
|
+
'surface-container-highest'
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
@each $color in $colors {
|
|
68
|
+
--mdc-#{$color}: #{mat.get-theme-color($theme, $color)};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -253,42 +253,84 @@
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
+
.gap-8-lg-md {
|
|
257
|
+
@media screen and (max-width: 1919px) and (min-width: 1280px) {
|
|
258
|
+
gap: 8 !important;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
256
262
|
.gap-0-lg-md {
|
|
257
263
|
@media screen and (max-width: 1919px) and (min-width: 1280px) {
|
|
258
264
|
gap: 0 !important;
|
|
259
265
|
}
|
|
260
266
|
}
|
|
261
267
|
|
|
268
|
+
.gap-8-md-sm {
|
|
269
|
+
@media screen and (max-width: 1279px) and (min-width: 960px) {
|
|
270
|
+
gap: 8 !important;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
262
274
|
.gap-0-md-sm {
|
|
263
275
|
@media screen and (max-width: 1279px) and (min-width: 960px) {
|
|
264
276
|
gap: 0 !important;
|
|
265
277
|
}
|
|
266
278
|
}
|
|
267
279
|
|
|
280
|
+
.gap-8-sm-xs {
|
|
281
|
+
@media screen and (max-width: 959px) and (min-width: 600px) {
|
|
282
|
+
gap: 8 !important;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
268
286
|
.gap-0-sm-xs {
|
|
269
287
|
@media screen and (max-width: 959px) and (min-width: 600px) {
|
|
270
288
|
gap: 0 !important;
|
|
271
289
|
}
|
|
272
290
|
}
|
|
273
291
|
|
|
292
|
+
.gap-8-lg {
|
|
293
|
+
@media screen and (max-width: 1919px) {
|
|
294
|
+
gap: 8 !important;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
274
298
|
.gap-0-lg {
|
|
275
299
|
@media screen and (max-width: 1919px) {
|
|
276
300
|
gap: 0 !important;
|
|
277
301
|
}
|
|
278
302
|
}
|
|
279
303
|
|
|
304
|
+
.gap-8-md {
|
|
305
|
+
@media screen and (max-width: 1279px) {
|
|
306
|
+
gap: 8 !important;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
280
310
|
.gap-0-md {
|
|
281
311
|
@media screen and (max-width: 1279px) {
|
|
282
312
|
gap: 0 !important;
|
|
283
313
|
}
|
|
284
314
|
}
|
|
285
315
|
|
|
316
|
+
.gap-8-sm {
|
|
317
|
+
@media screen and (max-width: 959px) {
|
|
318
|
+
gap: 8 !important;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
286
322
|
.gap-0-sm {
|
|
287
323
|
@media screen and (max-width: 959px) {
|
|
288
324
|
gap: 0 !important;
|
|
289
325
|
}
|
|
290
326
|
}
|
|
291
327
|
|
|
328
|
+
.gap-8-xs {
|
|
329
|
+
@media screen and (max-width: 599px) {
|
|
330
|
+
gap: 8 !important;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
292
334
|
.gap-0-xs {
|
|
293
335
|
@media screen and (max-width: 599px) {
|
|
294
336
|
gap: 0 !important;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use './components/helper';
|
|
2
2
|
@use './components/header';
|
|
3
3
|
@use './components/card';
|
|
4
|
+
@use './components/colors';
|
|
4
5
|
@use './components/form';
|
|
5
6
|
@use './components/tab';
|
|
6
7
|
@use './components/toolbar';
|
|
@@ -14,7 +15,6 @@ body {
|
|
|
14
15
|
font-family: 'Poppins', sans-serif;
|
|
15
16
|
height: 100%;
|
|
16
17
|
margin: 0;
|
|
17
|
-
background-color: #f2f2f6;
|
|
18
18
|
font-weight: 400;
|
|
19
19
|
color: rgba(0, 0, 0, 0.87);
|
|
20
20
|
box-sizing: border-box;
|
|
@@ -74,8 +74,8 @@ $_palettes: (
|
|
|
74
74
|
80: #c8c5ca,
|
|
75
75
|
90: #e5e1e6,
|
|
76
76
|
95: #f3eff4,
|
|
77
|
-
98: #
|
|
78
|
-
99: #
|
|
77
|
+
98: #fffbff,
|
|
78
|
+
99: #fffdff,
|
|
79
79
|
100: #ffffff,
|
|
80
80
|
4: #0e0e11,
|
|
81
81
|
6: #131316,
|
|
@@ -96,7 +96,7 @@ $_palettes: (
|
|
|
96
96
|
30: #46464f,
|
|
97
97
|
35: #52515b,
|
|
98
98
|
40: #5e5d67,
|
|
99
|
-
50: #
|
|
99
|
+
50: #777680,
|
|
100
100
|
60: #918f9a,
|
|
101
101
|
70: #acaab4,
|
|
102
102
|
80: #c7c5d0,
|
|
@@ -74,8 +74,8 @@ $_palettes: (
|
|
|
74
74
|
80: #c8c5ca,
|
|
75
75
|
90: #e5e1e6,
|
|
76
76
|
95: #f3eff4,
|
|
77
|
-
98: #
|
|
78
|
-
99: #
|
|
77
|
+
98: #fffbff,
|
|
78
|
+
99: #fffdff,
|
|
79
79
|
100: #ffffff,
|
|
80
80
|
4: #0e0e11,
|
|
81
81
|
6: #131316,
|
|
@@ -96,7 +96,7 @@ $_palettes: (
|
|
|
96
96
|
30: #46464f,
|
|
97
97
|
35: #52515b,
|
|
98
98
|
40: #5e5d67,
|
|
99
|
-
50: #
|
|
99
|
+
50: #777680,
|
|
100
100
|
60: #918f9a,
|
|
101
101
|
70: #acaab4,
|
|
102
102
|
80: #c7c5d0,
|