invensys-ng 21.3.2 → 21.3.4

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
@@ -11,3 +11,38 @@ A modern Angular component library for enterprise apps.
11
11
  ```bash
12
12
  npm install invensys-ng
13
13
  ```
14
+
15
+ ## Theme Setup
16
+
17
+ Import the bundled theme once from your application `styles.scss`:
18
+
19
+ ```scss
20
+ @use "invensys-ng/src/lib/themes/theme.scss" as invensys-theme;
21
+
22
+ @include invensys-theme.define-theme();
23
+ ```
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
+
28
+ For explicit control, import the theme pieces separately:
29
+
30
+ ```scss
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;
33
+ @use "invensys-ng/src/lib/themes/typography.theme.scss" as typography-theme;
34
+ @use "invensys-ng/src/lib/themes/scrollbar.theme.scss" as scrollbar-theme;
35
+ @use "invensys-ng/src/lib/themes/scrollbar-mixins.scss" as scrollbar;
36
+ @use "invensys-ng/src/lib/themes/color-variables.scss" as vars;
37
+
38
+ @include colors-theme.define-color-palette(light);
39
+ @include colors-theme.define-color-palette(dark);
40
+ @include body-theme.define-body();
41
+ @include scrollbar-theme.define-scrollbar-theme();
42
+ @include typography-theme.define-typography();
43
+
44
+ html,
45
+ body {
46
+ @include scrollbar.themed-scrollbar();
47
+ }
48
+ ```