@smitag/angular-shared-ui 18.1.19 → 19.1.9
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
CHANGED
|
@@ -25,3 +25,29 @@ For the secondary color use `theme-color-secondary`.
|
|
|
25
25
|
```html
|
|
26
26
|
<mat-icon class="theme-color-primary" fontSet="far" fontIcon="fa-edit"></mat-icon>
|
|
27
27
|
```
|
|
28
|
+
|
|
29
|
+
## Applying typography
|
|
30
|
+
|
|
31
|
+
The typography-hierarchy generates a set of CSS classes based on type scale levels. A type scale is a selection of font styles that can be used across an app.
|
|
32
|
+
|
|
33
|
+
There are large, medium, and small variations for Display, Headline, Title, Body and Label. You can read more about it [here](https://v18.material.angular.io/guide/typography#type-scale-levels).
|
|
34
|
+
|
|
35
|
+
The table below lists the CSS classes emitted and the native elements styled:
|
|
36
|
+
|
|
37
|
+
| CSS class | Typescale level | Native Element |
|
|
38
|
+
| ------------ | --------------- | -------------- |
|
|
39
|
+
| .mat-display-large | display-large | \<h1\> |
|
|
40
|
+
| .mat-display-medium | display-medium | \<h2\> |
|
|
41
|
+
| .mat-display-small | display_small | \<h3\> |
|
|
42
|
+
| .mat-headline-large | headline-large | \<h4\> |
|
|
43
|
+
| .mat-headline-medium | headline-medium | \<h5\> |
|
|
44
|
+
| .mat-headline-small | headline-small | \<h6\> |
|
|
45
|
+
| .mat-title-large | title-large | none |
|
|
46
|
+
| .mat-title-medium | title-medium | none |
|
|
47
|
+
| .mat-title-small | title-small | none |
|
|
48
|
+
| .mat-body-large | body-large | none |
|
|
49
|
+
| .mat-body-medium | body-medium | none |
|
|
50
|
+
| .mat-body-small | body-small | none |
|
|
51
|
+
| .mat-label-large | label-large | none |
|
|
52
|
+
| .mat-label-medium | label-medium | none |
|
|
53
|
+
| .mat-label-small | label-small | none |
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
.mat-drawer-container {
|
|
2
|
+
height: calc(100vh - 64px) !important;
|
|
2
3
|
background-color: #f2f2f6 !important;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
.mat-drawer {
|
|
6
|
-
width:
|
|
7
|
+
width: 255px !important;
|
|
8
|
+
box-shadow: none;
|
|
9
|
+
border-right: 1px solid rgba(0, 0, 0, 0.12) !important;
|
|
10
|
+
border-radius: 0 !important;
|
|
7
11
|
|
|
8
12
|
.drawer-title {
|
|
9
13
|
padding: 16px 16px 0 16px;
|
|
@@ -17,8 +21,24 @@
|
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
.mat-mdc-list-item {
|
|
25
|
+
width: unset !important;
|
|
26
|
+
margin: 8px;
|
|
27
|
+
border-radius: 12px !important;
|
|
28
|
+
color: var(--mat-sys-primary);
|
|
29
|
+
|
|
30
|
+
.mat-icon {
|
|
31
|
+
margin-top: 8px;
|
|
32
|
+
color: var(--mat-sys-primary);
|
|
23
33
|
}
|
|
24
34
|
}
|
|
35
|
+
|
|
36
|
+
.mat-mdc-list-item:hover {
|
|
37
|
+
background-color: var(--mat-sys-surface-variant);
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.mat-mdc-list-item.active {
|
|
42
|
+
border: 2px solid var(--mat-sys-primary);
|
|
43
|
+
color: var(--mat-sys-primary);
|
|
44
|
+
}
|
|
@@ -86,7 +86,7 @@ $_palettes: (
|
|
|
86
86
|
87: #dcd9de,
|
|
87
87
|
92: #eae7ec,
|
|
88
88
|
94: #f0edf1,
|
|
89
|
-
96: #
|
|
89
|
+
96: #fcf8fd,
|
|
90
90
|
),
|
|
91
91
|
neutral-variant: (
|
|
92
92
|
0: #000000,
|
|
@@ -96,7 +96,7 @@ $_palettes: (
|
|
|
96
96
|
30: #46464f,
|
|
97
97
|
35: #52515b,
|
|
98
98
|
40: #5e5d67,
|
|
99
|
-
50: #
|
|
99
|
+
50: #C7C5D0,
|
|
100
100
|
60: #918f9a,
|
|
101
101
|
70: #acaab4,
|
|
102
102
|
80: #c7c5d0,
|
|
@@ -141,11 +141,15 @@ $light-theme: mat.define-theme(
|
|
|
141
141
|
theme-type: light,
|
|
142
142
|
primary: $_primary,
|
|
143
143
|
tertiary: $_tertiary,
|
|
144
|
+
use-system-variables: true,
|
|
144
145
|
),
|
|
145
146
|
typography: (
|
|
146
|
-
brand-family: '
|
|
147
|
+
brand-family: 'IBM Plex Sans',
|
|
147
148
|
plain-family: 'Poppins',
|
|
148
149
|
bold-weight: 900,
|
|
150
|
+
medium-weight: 500,
|
|
151
|
+
regular-weight: 400,
|
|
152
|
+
use-system-variables: true,
|
|
149
153
|
),
|
|
150
154
|
)
|
|
151
155
|
);
|
|
@@ -153,6 +157,9 @@ $light-theme: mat.define-theme(
|
|
|
153
157
|
html {
|
|
154
158
|
@include mat.core-theme($light-theme);
|
|
155
159
|
@include mat.all-component-themes($light-theme);
|
|
160
|
+
@include mat.system-level-colors($light-theme);
|
|
161
|
+
@include mat.system-level-typography($light-theme);
|
|
162
|
+
@include mat.typography-hierarchy($light-theme);
|
|
156
163
|
@include helper.customComponents(
|
|
157
164
|
mat.get-theme-color($light-theme, primary, 40),
|
|
158
165
|
mat.get-theme-color($light-theme, secondary, 40)
|
|
@@ -86,7 +86,7 @@ $_palettes: (
|
|
|
86
86
|
87: #dcd9de,
|
|
87
87
|
92: #eae7ec,
|
|
88
88
|
94: #f0edf1,
|
|
89
|
-
96: #
|
|
89
|
+
96: #fcf8fd,
|
|
90
90
|
),
|
|
91
91
|
neutral-variant: (
|
|
92
92
|
0: #000000,
|
|
@@ -96,7 +96,7 @@ $_palettes: (
|
|
|
96
96
|
30: #46464f,
|
|
97
97
|
35: #52515b,
|
|
98
98
|
40: #5e5d67,
|
|
99
|
-
50: #
|
|
99
|
+
50: #C7C5D0,
|
|
100
100
|
60: #918f9a,
|
|
101
101
|
70: #acaab4,
|
|
102
102
|
80: #c7c5d0,
|
|
@@ -141,11 +141,15 @@ $light-theme: mat.define-theme(
|
|
|
141
141
|
theme-type: light,
|
|
142
142
|
primary: $_primary,
|
|
143
143
|
tertiary: $_tertiary,
|
|
144
|
+
use-system-variables: true,
|
|
144
145
|
),
|
|
145
146
|
typography: (
|
|
146
|
-
brand-family: '
|
|
147
|
+
brand-family: 'IBM Plex Sans',
|
|
147
148
|
plain-family: 'Poppins',
|
|
148
149
|
bold-weight: 900,
|
|
150
|
+
medium-weight: 500,
|
|
151
|
+
regular-weight: 400,
|
|
152
|
+
use-system-variables: true,
|
|
149
153
|
),
|
|
150
154
|
)
|
|
151
155
|
);
|
|
@@ -153,6 +157,9 @@ $light-theme: mat.define-theme(
|
|
|
153
157
|
html {
|
|
154
158
|
@include mat.core-theme($light-theme);
|
|
155
159
|
@include mat.all-component-themes($light-theme);
|
|
160
|
+
@include mat.system-level-colors($light-theme);
|
|
161
|
+
@include mat.system-level-typography($light-theme);
|
|
162
|
+
@include mat.typography-hierarchy($light-theme);
|
|
156
163
|
@include helper.customComponents(
|
|
157
164
|
mat.get-theme-color($light-theme, primary, 40),
|
|
158
165
|
mat.get-theme-color($light-theme, secondary, 40)
|