invensys-ng 21.3.3 → 21.3.5
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 +5 -2
- package/package.json +1 -1
- package/src/lib/themes/body.theme.scss +9 -0
- package/src/lib/themes/theme.scss +6 -1
package/README.md
CHANGED
|
@@ -22,10 +22,14 @@ Import the bundled theme once from your application `styles.scss`:
|
|
|
22
22
|
@include invensys-theme.define-theme();
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
This includes light/dark color tokens, body defaults, typography, and scrollbar tokens.
|
|
26
|
+
Use `@include invensys-theme.define-theme($body: false);` if your application owns its body styling.
|
|
27
|
+
|
|
25
28
|
For explicit control, import the theme pieces separately:
|
|
26
29
|
|
|
27
30
|
```scss
|
|
28
31
|
@use "invensys-ng/src/lib/themes/colors.theme.scss" as colors-theme;
|
|
32
|
+
@use "invensys-ng/src/lib/themes/body.theme.scss" as body-theme;
|
|
29
33
|
@use "invensys-ng/src/lib/themes/typography.theme.scss" as typography-theme;
|
|
30
34
|
@use "invensys-ng/src/lib/themes/scrollbar.theme.scss" as scrollbar-theme;
|
|
31
35
|
@use "invensys-ng/src/lib/themes/scrollbar-mixins.scss" as scrollbar;
|
|
@@ -33,13 +37,12 @@ For explicit control, import the theme pieces separately:
|
|
|
33
37
|
|
|
34
38
|
@include colors-theme.define-color-palette(light);
|
|
35
39
|
@include colors-theme.define-color-palette(dark);
|
|
40
|
+
@include body-theme.define-body();
|
|
36
41
|
@include scrollbar-theme.define-scrollbar-theme();
|
|
37
42
|
@include typography-theme.define-typography();
|
|
38
43
|
|
|
39
44
|
html,
|
|
40
45
|
body {
|
|
41
|
-
background-color: vars.$color-surface-ground;
|
|
42
|
-
color: vars.$color-text-primary;
|
|
43
46
|
@include scrollbar.themed-scrollbar();
|
|
44
47
|
}
|
|
45
48
|
```
|
package/package.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
@use "./colors.theme.scss" as colors-theme;
|
|
2
|
+
@use "./body.theme.scss" as body-theme;
|
|
2
3
|
@use "./scrollbar.theme.scss" as scrollbar-theme;
|
|
3
4
|
@use "./typography.theme.scss" as typography-theme;
|
|
4
5
|
|
|
5
|
-
@mixin define-theme($typography: true, $scrollbar: true) {
|
|
6
|
+
@mixin define-theme($body: true, $typography: true, $scrollbar: true) {
|
|
6
7
|
@include colors-theme.define-color-palette(light);
|
|
7
8
|
@include colors-theme.define-color-palette(dark);
|
|
8
9
|
|
|
10
|
+
@if $body {
|
|
11
|
+
@include body-theme.define-body();
|
|
12
|
+
}
|
|
13
|
+
|
|
9
14
|
@if $scrollbar {
|
|
10
15
|
@include scrollbar-theme.define-scrollbar-theme();
|
|
11
16
|
}
|