invensys-ng 21.3.2 → 21.3.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 CHANGED
@@ -11,3 +11,35 @@ 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
+ For explicit control, import the theme pieces separately:
26
+
27
+ ```scss
28
+ @use "invensys-ng/src/lib/themes/colors.theme.scss" as colors-theme;
29
+ @use "invensys-ng/src/lib/themes/typography.theme.scss" as typography-theme;
30
+ @use "invensys-ng/src/lib/themes/scrollbar.theme.scss" as scrollbar-theme;
31
+ @use "invensys-ng/src/lib/themes/scrollbar-mixins.scss" as scrollbar;
32
+ @use "invensys-ng/src/lib/themes/color-variables.scss" as vars;
33
+
34
+ @include colors-theme.define-color-palette(light);
35
+ @include colors-theme.define-color-palette(dark);
36
+ @include scrollbar-theme.define-scrollbar-theme();
37
+ @include typography-theme.define-typography();
38
+
39
+ html,
40
+ body {
41
+ background-color: vars.$color-surface-ground;
42
+ color: vars.$color-text-primary;
43
+ @include scrollbar.themed-scrollbar();
44
+ }
45
+ ```