@smitag/angular-shared-ui 18.1.19 → 19.1.8

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@smitag/angular-shared-ui",
3
3
  "email": "benjamin.speidel@smartinsurtech.de",
4
- "version": "18.1.19",
4
+ "version": "19.1.8",
5
5
  "license": "MIT",
6
6
  "description": "Styling elements and methods shared by all frontends",
7
7
  "man": "README.md",
@@ -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: 'Poppins',
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)
@@ -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: 'Poppins',
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)