@ndwnu/design-system 14.2.0 → 14.2.2

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.
Files changed (56) hide show
  1. package/CLAUDE.md +1525 -1525
  2. package/README.md +4 -4
  3. package/assets/icons.ts +83 -83
  4. package/fesm2022/ndwnu-design-system.mjs +161 -158
  5. package/fesm2022/ndwnu-design-system.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/styles/FONTS.md +46 -46
  8. package/styles/base/_colors.scss +246 -246
  9. package/styles/base/_fonts.scss +13 -13
  10. package/styles/base/_material.scss +17 -17
  11. package/styles/base/_typography.scss +133 -133
  12. package/styles/base/_variables.scss +92 -92
  13. package/styles/base/colors.stories.model.ts +85 -85
  14. package/styles/base/colors.stories.ts +24 -24
  15. package/styles/base/index.scss +5 -5
  16. package/styles/base/typography.stories.ts +111 -111
  17. package/styles/components/_button.scss +133 -133
  18. package/styles/components/_card.scss +3 -3
  19. package/styles/components/_datepicker.scss +134 -134
  20. package/styles/components/_divider.scss +10 -10
  21. package/styles/components/_dropdown.scss +8 -8
  22. package/styles/components/_edit-bar.scss +97 -97
  23. package/styles/components/_filter-button.scss +39 -39
  24. package/styles/components/_guided-tour.scss +70 -70
  25. package/styles/components/_input.scss +253 -253
  26. package/styles/components/_label.scss +23 -23
  27. package/styles/components/_link.scss +36 -36
  28. package/styles/components/_list-item.scss +7 -7
  29. package/styles/components/_map.scss +137 -114
  30. package/styles/components/_menu-button.scss +37 -37
  31. package/styles/components/_popover.scss +19 -19
  32. package/styles/components/_summary-card.scss +183 -183
  33. package/styles/components/_table.scss +8 -8
  34. package/styles/components/divider.stories.ts +80 -80
  35. package/styles/components/index.scss +17 -17
  36. package/styles/components/link.stories.ts +154 -154
  37. package/styles/index.scss +4 -4
  38. package/styles/layout/_grid.scss +165 -165
  39. package/styles/layout/_overlay.scss +7 -7
  40. package/styles/layout/grid.stories.ts +168 -168
  41. package/styles/layout/index.scss +2 -2
  42. package/styles/storybook/_core.scss +60 -60
  43. package/styles/storybook/_reset.scss +21 -21
  44. package/styles/storybook/index.scss +17 -17
  45. package/styles/storybook/overrides/_buttons.scss +95 -95
  46. package/styles/storybook/overrides/_code-previews.scss +97 -97
  47. package/styles/storybook/overrides/_content.scss +24 -24
  48. package/styles/storybook/overrides/_headers.scss +31 -31
  49. package/styles/storybook/overrides/_layout.scss +44 -44
  50. package/styles/storybook/overrides/_table.scss +112 -112
  51. package/styles/storybook/overrides/index.scss +6 -6
  52. package/styles/storybook/overrides.css +355 -355
  53. package/styles/utils/_screenreader.scss +13 -13
  54. package/styles/utils/classes.stories.ts +157 -157
  55. package/styles/utils/index.scss +1 -1
  56. package/types/ndwnu-design-system.d.ts +6 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndwnu/design-system",
3
- "version": "14.2.0",
3
+ "version": "14.2.2",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^21.0.0",
6
6
  "@angular/common": "^21.0.0",
package/styles/FONTS.md CHANGED
@@ -1,46 +1,46 @@
1
- # Fonts
2
-
3
- The design system self-hosts its fonts via [Fontsource](https://fontsource.org/) instead of loading them from the Google Fonts CDN. This avoids a runtime dependency on `fonts.googleapis.com` / `fonts.gstatic.com`.
4
-
5
- ## Fonts in use
6
-
7
- | Family | Used for | Fontsource package |
8
- | --------------------------------- | -------------------------------------- | ----------------------------------------------- |
9
- | DM Sans Variable | Headings (`--ndw-font-family-heading`) | `@fontsource-variable/dm-sans` |
10
- | Nunito Sans Variable | Body text (`--ndw-font-family-body`) | `@fontsource-variable/nunito-sans` |
11
- | Material Symbols Rounded Variable | Icons (`<ndw-icon>`) | `@fontsource-variable/material-symbols-rounded` |
12
-
13
- These three packages are declared as **peer dependencies** of `@ndwnu/design-system`. Consuming apps install them alongside the design system:
14
-
15
- ```bash
16
- npm install @fontsource-variable/dm-sans @fontsource-variable/nunito-sans @fontsource-variable/material-symbols-rounded
17
- ```
18
-
19
- ## How they are loaded
20
-
21
- The `@font-face` declarations live in [`base/_fonts.scss`](./base/_fonts.scss), which is `@forward`ed from [`base/index.scss`](./base/index.scss). `base/index.scss` is pulled in by the global stylesheet entry [`index.scss`](./index.scss), which apps include in their `angular.json`:
22
-
23
- ```jsonc
24
- // angular.json > projects > your-app > architect > build > options > styles
25
- "styles": [
26
- "./node_modules/@ndwnu/design-system/styles/index.scss"
27
- ]
28
- ```
29
-
30
- Component-scoped SCSS files only `@use 'base/typography'` (mixins and classes). They never pull in `_fonts.scss`, which keeps `@font-face` declarations out of every component bundle and prevents ng-packagr from inlining megabytes of font CSS per component.
31
-
32
- ## Subset selection
33
-
34
- Each Fontsource package exposes several CSS entrypoints with different axis combinations. We pick the smallest subset that covers actual usage:
35
-
36
- | Family | Entrypoint used | Axes | Notes |
37
- | ------------------------ | ------------------------------ | -------------- | ------------------------------------------------------------------------------------- |
38
- | DM Sans | `opsz.css` + `opsz-italic.css` | `opsz`, `wght` | Matches the Google URL the project used previously (`opsz 9..40`, `wght 400..650`). |
39
- | Nunito Sans | `opsz.css` + `opsz-italic.css` | `opsz`, `wght` | Matches the previous Google URL (`opsz 6..12`, `wght 400..650`). |
40
- | Material Symbols Rounded | `fill.css` | `wght`, `FILL` | We only toggle `FILL` (see below). Choosing `fill.css` over `full.css` saves ~3.7 MB. |
41
-
42
- The icon component sets `font-variation-settings: 'FILL' 1;` in [`icon.component.scss`](../lib/components/icon/icon.component.scss) to switch between outlined and filled icons. We do not vary the `opsz` or `GRAD` axes for icons, so `fill.css` (≈1.4 MB) is sufficient. If a future feature needs those axes, switch the import to `full.css` (≈5.1 MB) — the tradeoff is bundle size.
43
-
44
- ## Material Symbols Rounded class
45
-
46
- Google's hosted CSS provides a `.material-symbols-rounded` class that pairs the font-family with `font-feature-settings: 'liga'` (so glyph name → ligature → icon works). Fontsource does not, so [`_fonts.scss`](./base/_fonts.scss) defines the equivalent rule locally. The `<ndw-icon>` component applies this class via its host binding.
1
+ # Fonts
2
+
3
+ The design system self-hosts its fonts via [Fontsource](https://fontsource.org/) instead of loading them from the Google Fonts CDN. This avoids a runtime dependency on `fonts.googleapis.com` / `fonts.gstatic.com`.
4
+
5
+ ## Fonts in use
6
+
7
+ | Family | Used for | Fontsource package |
8
+ | --------------------------------- | -------------------------------------- | ----------------------------------------------- |
9
+ | DM Sans Variable | Headings (`--ndw-font-family-heading`) | `@fontsource-variable/dm-sans` |
10
+ | Nunito Sans Variable | Body text (`--ndw-font-family-body`) | `@fontsource-variable/nunito-sans` |
11
+ | Material Symbols Rounded Variable | Icons (`<ndw-icon>`) | `@fontsource-variable/material-symbols-rounded` |
12
+
13
+ These three packages are declared as **peer dependencies** of `@ndwnu/design-system`. Consuming apps install them alongside the design system:
14
+
15
+ ```bash
16
+ npm install @fontsource-variable/dm-sans @fontsource-variable/nunito-sans @fontsource-variable/material-symbols-rounded
17
+ ```
18
+
19
+ ## How they are loaded
20
+
21
+ The `@font-face` declarations live in [`base/_fonts.scss`](./base/_fonts.scss), which is `@forward`ed from [`base/index.scss`](./base/index.scss). `base/index.scss` is pulled in by the global stylesheet entry [`index.scss`](./index.scss), which apps include in their `angular.json`:
22
+
23
+ ```jsonc
24
+ // angular.json > projects > your-app > architect > build > options > styles
25
+ "styles": [
26
+ "./node_modules/@ndwnu/design-system/styles/index.scss"
27
+ ]
28
+ ```
29
+
30
+ Component-scoped SCSS files only `@use 'base/typography'` (mixins and classes). They never pull in `_fonts.scss`, which keeps `@font-face` declarations out of every component bundle and prevents ng-packagr from inlining megabytes of font CSS per component.
31
+
32
+ ## Subset selection
33
+
34
+ Each Fontsource package exposes several CSS entrypoints with different axis combinations. We pick the smallest subset that covers actual usage:
35
+
36
+ | Family | Entrypoint used | Axes | Notes |
37
+ | ------------------------ | ------------------------------ | -------------- | ------------------------------------------------------------------------------------- |
38
+ | DM Sans | `opsz.css` + `opsz-italic.css` | `opsz`, `wght` | Matches the Google URL the project used previously (`opsz 9..40`, `wght 400..650`). |
39
+ | Nunito Sans | `opsz.css` + `opsz-italic.css` | `opsz`, `wght` | Matches the previous Google URL (`opsz 6..12`, `wght 400..650`). |
40
+ | Material Symbols Rounded | `fill.css` | `wght`, `FILL` | We only toggle `FILL` (see below). Choosing `fill.css` over `full.css` saves ~3.7 MB. |
41
+
42
+ The icon component sets `font-variation-settings: 'FILL' 1;` in [`icon.component.scss`](../lib/components/icon/icon.component.scss) to switch between outlined and filled icons. We do not vary the `opsz` or `GRAD` axes for icons, so `fill.css` (≈1.4 MB) is sufficient. If a future feature needs those axes, switch the import to `full.css` (≈5.1 MB) — the tradeoff is bundle size.
43
+
44
+ ## Material Symbols Rounded class
45
+
46
+ Google's hosted CSS provides a `.material-symbols-rounded` class that pairs the font-family with `font-feature-settings: 'liga'` (so glyph name → ligature → icon works). Fontsource does not, so [`_fonts.scss`](./base/_fonts.scss) defines the equivalent rule locally. The `<ndw-icon>` component applies this class via its host binding.
@@ -1,246 +1,246 @@
1
- :root {
2
- /* Colors */
3
- // Grey
4
- --_grey-700: 195, 100%, 10%;
5
- --_grey-600: 196, 13%, 29%;
6
- --_grey-500: 197, 7%, 40%;
7
- --_grey-400: 204, 2%, 54%;
8
- --_grey-300: 192, 5%, 82%;
9
- --_grey-200: 204, 11%, 91%;
10
- --_grey-100: 200, 16%, 96%;
11
- --_grey-50: 0, 0%, 99%;
12
- --_white: 0, 0%, 100%;
13
-
14
- --ndw-color-grey-700: hsl(var(--_grey-700));
15
- --ndw-color-grey-600: hsl(var(--_grey-600));
16
- --ndw-color-grey-500: hsl(var(--_grey-500));
17
- --ndw-color-grey-400: hsl(var(--_grey-400));
18
- --ndw-color-grey-300: hsl(var(--_grey-300));
19
- --ndw-color-grey-200: hsl(var(--_grey-200));
20
- --ndw-color-grey-100: hsl(var(--_grey-100));
21
- --ndw-color-grey-50: hsl(var(--_grey-50));
22
- --ndw-color-white: hsl(var(--_white));
23
-
24
- // Primary
25
- --_primary: 19, 100%;
26
- --_primary-050: var(--_primary), 95%;
27
- --_primary-100: var(--_primary), 80%;
28
- --_primary-200: var(--_primary), 73%;
29
- --_primary-300: var(--_primary), 62%;
30
- --_primary-400: var(--_primary), 50%;
31
- --_primary-500: var(--_primary), 40%;
32
- --_primary-600: var(--_primary), 35%;
33
- --_primary-700: var(--_primary), 27%;
34
- --_primary-800: var(--_primary), 15%;
35
-
36
- --ndw-color-primary-050: hsl(var(--_primary-050));
37
- --ndw-color-primary-100: hsl(var(--_primary-100));
38
- --ndw-color-primary-200: hsl(var(--_primary-200));
39
- --ndw-color-primary-300: hsl(var(--_primary-300));
40
- --ndw-color-primary-400: hsl(var(--_primary-400));
41
- --ndw-color-primary-500: hsl(var(--_primary-500));
42
- --ndw-color-primary-600: hsl(var(--_primary-600));
43
- --ndw-color-primary-700: hsl(var(--_primary-700));
44
- --ndw-color-primary-800: hsl(var(--_primary-800));
45
-
46
- --ndw-color-primary: var(--ndw-color-primary-500);
47
- --ndw-color-primary-hover: var(--ndw-color-primary-600);
48
- --ndw-color-primary-active: var(--ndw-color-primary-700);
49
-
50
- // Secondary
51
- --_secondary-050: 209, 100%, 96%;
52
- --_secondary-100: 209, 85%, 91%;
53
- --_secondary-200: 209, 85%, 78%;
54
- --_secondary-300: 209, 85%, 69%;
55
- --_secondary-400: 208, 100%, 46%;
56
- --_secondary-500: 208, 100%, 41%;
57
- --_secondary-600: 209, 100%, 32%;
58
- --_secondary-700: 209, 100%, 18%;
59
-
60
- --ndw-color-secondary-050: hsl(var(--_secondary-050));
61
- --ndw-color-secondary-100: hsl(var(--_secondary-100));
62
- --ndw-color-secondary-200: hsl(var(--_secondary-200));
63
- --ndw-color-secondary-300: hsl(var(--_secondary-300));
64
- --ndw-color-secondary-400: hsl(var(--_secondary-400));
65
- --ndw-color-secondary-500: hsl(var(--_secondary-500));
66
- --ndw-color-secondary-600: hsl(var(--_secondary-600));
67
- --ndw-color-secondary-700: hsl(var(--_secondary-700));
68
-
69
- --ndw-color-secondary: var(--ndw-color-secondary-500);
70
- --ndw-color-secondary-hover: var(--ndw-color-secondary-600);
71
- --ndw-color-secondary-active: var(--ndw-color-secondary-700);
72
-
73
- // Tertiary
74
- --_tertiary-400: 43, 100%, 50%;
75
- --_tertiary-500: 42, 100%, 43%;
76
-
77
- --ndw-color-tertiary-400: hsl(var(--_tertiary-400));
78
- --ndw-color-tertiary-500: hsl(var(--_tertiary-500));
79
-
80
- // Links
81
- --_link: 208, 100%;
82
- --_link-400: var(--_link), 41%;
83
- --_link-500: var(--_link), 32%;
84
-
85
- --ndw-color-link-400: hsl(var(--_link-400));
86
- --ndw-color-link-500: hsl(var(--_link-500));
87
-
88
- // Feedback
89
- --_positive: 133, 92%;
90
- --_positive-100: 117, 56%, 92%;
91
- --_positive-200: var(--_positive), 88%;
92
- --_positive-300: var(--_positive), 82%;
93
- --_positive-500: var(--_positive), 33%;
94
- --_positive-600: var(--_positive), 24%;
95
- --_warning: 43, 93%;
96
- --_warning-100: 44, 100%, 94%;
97
- --_warning-200: var(--_warning), 92%;
98
- --_warning-300: var(--_warning), 88%;
99
- --_warning-500: var(--_warning), 43%;
100
- --_warning-600: 42, 83%, 32%;
101
- --_alternative: 292, 100%;
102
- --_alternative-100: var(--_alternative), 95%;
103
- --_alternative-500: 292, 95%, 33%;
104
- --_critical: 0, 100%;
105
- --_critical-100: var(--_critical), 98%;
106
- --_critical-200: var(--_critical), 95%;
107
- --_critical-300: var(--_critical), 90%;
108
- --_critical-500: var(--_critical), 46%;
109
- --_info-100: 210, 100%, 96%;
110
- --_info-200: 210, 86%, 91%;
111
- --_info-300: 209, 93%, 86%;
112
- --_info-500: 208, 100%, 41%;
113
-
114
- --ndw-color-positive-100: hsl(var(--_positive-100));
115
- --ndw-color-positive-200: hsl(var(--_positive-200));
116
- --ndw-color-positive-300: hsl(var(--_positive-300));
117
- --ndw-color-positive-500: hsl(var(--_positive-500));
118
- --ndw-color-positive-600: hsl(var(--_positive-600));
119
- --ndw-color-warning-100: hsl(var(--_warning-100));
120
- --ndw-color-warning-200: hsl(var(--_warning-200));
121
- --ndw-color-warning-300: hsl(var(--_warning-300));
122
- --ndw-color-warning-500: hsl(var(--_warning-500));
123
- --ndw-color-warning-600: hsl(var(--_warning-600));
124
- --ndw-color-alternative-100: hsl(var(--_alternative-100));
125
- --ndw-color-alternative-500: hsl(var(--_alternative-500));
126
- --ndw-color-critical-100: hsl(var(--_critical-100));
127
- --ndw-color-critical-200: hsl(var(--_critical-200));
128
- --ndw-color-critical-300: hsl(var(--_critical-300));
129
- --ndw-color-critical-500: hsl(var(--_critical-500));
130
- --ndw-color-info-100: hsl(var(--_info-100));
131
- --ndw-color-info-200: hsl(var(--_info-200));
132
- --ndw-color-info-300: hsl(var(--_info-300));
133
- --ndw-color-info-500: hsl(var(--_info-500));
134
-
135
- --ndw-color-notification: hsl(19, 100%, 35%);
136
-
137
- // Data
138
- --_data-a-500: 133, 100%, 21%;
139
- --_data-a-100: 101, 61%, 81%;
140
- --_data-b-500: 0, 0%, 27%;
141
- --_data-b-100: 0, 0%, 87%;
142
- --_data-c-500: 209, 97%, 38%;
143
- --_data-c-100: 194, 95%, 84%;
144
- --_data-d-500: 292, 95%, 33%;
145
- --_data-d-100: 292, 100%, 87%;
146
- --_data-e-500: 51, 95%, 23%;
147
- --_data-e-100: 54, 89%, 79%;
148
- --_data-f-500: 0, 97%, 35%;
149
- --_data-f-100: 0, 100%, 94%;
150
-
151
- --ndw-color-data-a-500: hsl(var(--_data-a-500));
152
- --ndw-color-data-a-100: hsl(var(--_data-a-100));
153
- --ndw-color-data-b-500: hsl(var(--_data-b-500));
154
- --ndw-color-data-b-100: hsl(var(--_data-b-100));
155
- --ndw-color-data-c-500: hsl(var(--_data-c-500));
156
- --ndw-color-data-c-100: hsl(var(--_data-c-100));
157
- --ndw-color-data-d-500: hsl(var(--_data-d-500));
158
- --ndw-color-data-d-100: hsl(var(--_data-d-100));
159
- --ndw-color-data-e-500: hsl(var(--_data-e-500));
160
- --ndw-color-data-e-100: hsl(var(--_data-e-100));
161
- --ndw-color-data-f-500: hsl(var(--_data-f-500));
162
- --ndw-color-data-f-100: hsl(var(--_data-f-100));
163
-
164
- // Alpha Primary
165
- --_alpha-black: 0, 0%, 0%;
166
- --_alpha-007: 0.07;
167
- --_alpha-015: 0.15;
168
- --_alpha-040: 0.4;
169
-
170
- --ndw-alpha-black-007: hsla(var(--_alpha-black), var(--_alpha-007));
171
- --ndw-alpha-black-015: hsla(var(--_alpha-black), var(--_alpha-015));
172
- --ndw-alpha-black-040: hsla(var(--_alpha-black), var(--_alpha-040));
173
-
174
- --ndw-alpha-white-040: hsla(var(--_white), var(--_alpha-040));
175
-
176
- --ndw-alpha-primary-007: hsla(var(--_primary-500), var(--_alpha-007));
177
- --ndw-alpha-primary-015: hsla(var(--_primary-500), var(--_alpha-015));
178
-
179
- // Background
180
- --ndw-color-background: var(--ndw-color-primary);
181
- --ndw-color-background-hover: var(--ndw-color-primary-hover);
182
- --ndw-color-background-active: var(--ndw-color-primary-active);
183
- --ndw-color-background-disabled: var(--ndw-color-grey-300);
184
-
185
- // Foreground
186
- --ndw-color-foreground: var(--ndw-color-white);
187
- --ndw-color-foreground-hover: var(--ndw-color-white);
188
- --ndw-color-foreground-active: var(--ndw-color-white);
189
-
190
- // Text
191
- --ndw-color-text: var(--ndw-color-grey-700);
192
- }
193
-
194
- [data-theme='nwb'] {
195
- /* Colors */
196
- // Primary
197
- --_primary-050: 176, 44%, 95%;
198
- --_primary-100: 176, 44%, 82%;
199
- --_primary-200: 176, 44%, 73%;
200
- --_primary-300: 176, 50%, 60%;
201
- --_primary-400: 176, 55%, 48%;
202
- --_primary-500: 176, 53%, 33%;
203
- --_primary-600: 176, 60%, 34%;
204
- --_primary-700: 176, 68%, 21%;
205
- --_primary-800: 176, 68%, 13%;
206
-
207
- --ndw-color-primary-050: hsl(var(--_primary-050));
208
- --ndw-color-primary-100: hsl(var(--_primary-100));
209
- --ndw-color-primary-200: hsl(var(--_primary-200));
210
- --ndw-color-primary-300: hsl(var(--_primary-300));
211
- --ndw-color-primary-400: hsl(var(--_primary-400));
212
- --ndw-color-primary-500: hsl(var(--_primary-500));
213
- --ndw-color-primary-600: hsl(var(--_primary-600));
214
- --ndw-color-primary-700: hsl(var(--_primary-700));
215
- --ndw-color-primary-800: hsl(var(--_primary-800));
216
-
217
- // Secondary
218
- --_secondary-050: 339, 100%, 96%;
219
- --_secondary-100: 333, 85%, 91%;
220
- --_secondary-200: 327, 85%, 78%;
221
- --_secondary-300: 324, 85%, 69%;
222
- --_secondary-400: 320, 70%, 60%;
223
- --_secondary-500: 312, 50%, 41%;
224
- --_secondary-600: 312, 50%, 32%;
225
- --_secondary-700: 312, 100%, 20%;
226
-
227
- --ndw-color-secondary-050: hsl(var(--_secondary-050));
228
- --ndw-color-secondary-100: hsl(var(--_secondary-100));
229
- --ndw-color-secondary-200: hsl(var(--_secondary-200));
230
- --ndw-color-secondary-300: hsl(var(--_secondary-300));
231
- --ndw-color-secondary-400: hsl(var(--_secondary-400));
232
- --ndw-color-secondary-500: hsl(var(--_secondary-500));
233
- --ndw-color-secondary-600: hsl(var(--_secondary-600));
234
- --ndw-color-secondary-700: hsl(var(--_secondary-700));
235
-
236
- // Tertiary
237
- --_tertiary-400: 309, 29%, 36%;
238
- --_tertiary-500: 309, 29%, 18%;
239
-
240
- --ndw-color-tertiary-400: hsl(var(--_tertiary-400));
241
- --ndw-color-tertiary-500: hsl(var(--_tertiary-500));
242
-
243
- // Alpha Primary
244
- --ndw-alpha-primary-007: hsla(var(--_primary-500), var(--_alpha-007));
245
- --ndw-alpha-primary-015: hsla(var(--_primary-500), var(--_alpha-015));
246
- }
1
+ :root {
2
+ /* Colors */
3
+ // Grey
4
+ --_grey-700: 195, 100%, 10%;
5
+ --_grey-600: 196, 13%, 29%;
6
+ --_grey-500: 197, 7%, 40%;
7
+ --_grey-400: 204, 2%, 54%;
8
+ --_grey-300: 192, 5%, 82%;
9
+ --_grey-200: 204, 11%, 91%;
10
+ --_grey-100: 200, 16%, 96%;
11
+ --_grey-50: 0, 0%, 99%;
12
+ --_white: 0, 0%, 100%;
13
+
14
+ --ndw-color-grey-700: hsl(var(--_grey-700));
15
+ --ndw-color-grey-600: hsl(var(--_grey-600));
16
+ --ndw-color-grey-500: hsl(var(--_grey-500));
17
+ --ndw-color-grey-400: hsl(var(--_grey-400));
18
+ --ndw-color-grey-300: hsl(var(--_grey-300));
19
+ --ndw-color-grey-200: hsl(var(--_grey-200));
20
+ --ndw-color-grey-100: hsl(var(--_grey-100));
21
+ --ndw-color-grey-50: hsl(var(--_grey-50));
22
+ --ndw-color-white: hsl(var(--_white));
23
+
24
+ // Primary
25
+ --_primary: 19, 100%;
26
+ --_primary-050: var(--_primary), 95%;
27
+ --_primary-100: var(--_primary), 80%;
28
+ --_primary-200: var(--_primary), 73%;
29
+ --_primary-300: var(--_primary), 62%;
30
+ --_primary-400: var(--_primary), 50%;
31
+ --_primary-500: var(--_primary), 40%;
32
+ --_primary-600: var(--_primary), 35%;
33
+ --_primary-700: var(--_primary), 27%;
34
+ --_primary-800: var(--_primary), 15%;
35
+
36
+ --ndw-color-primary-050: hsl(var(--_primary-050));
37
+ --ndw-color-primary-100: hsl(var(--_primary-100));
38
+ --ndw-color-primary-200: hsl(var(--_primary-200));
39
+ --ndw-color-primary-300: hsl(var(--_primary-300));
40
+ --ndw-color-primary-400: hsl(var(--_primary-400));
41
+ --ndw-color-primary-500: hsl(var(--_primary-500));
42
+ --ndw-color-primary-600: hsl(var(--_primary-600));
43
+ --ndw-color-primary-700: hsl(var(--_primary-700));
44
+ --ndw-color-primary-800: hsl(var(--_primary-800));
45
+
46
+ --ndw-color-primary: var(--ndw-color-primary-500);
47
+ --ndw-color-primary-hover: var(--ndw-color-primary-600);
48
+ --ndw-color-primary-active: var(--ndw-color-primary-700);
49
+
50
+ // Secondary
51
+ --_secondary-050: 209, 100%, 96%;
52
+ --_secondary-100: 209, 85%, 91%;
53
+ --_secondary-200: 209, 85%, 78%;
54
+ --_secondary-300: 209, 85%, 69%;
55
+ --_secondary-400: 208, 100%, 46%;
56
+ --_secondary-500: 208, 100%, 41%;
57
+ --_secondary-600: 209, 100%, 32%;
58
+ --_secondary-700: 209, 100%, 18%;
59
+
60
+ --ndw-color-secondary-050: hsl(var(--_secondary-050));
61
+ --ndw-color-secondary-100: hsl(var(--_secondary-100));
62
+ --ndw-color-secondary-200: hsl(var(--_secondary-200));
63
+ --ndw-color-secondary-300: hsl(var(--_secondary-300));
64
+ --ndw-color-secondary-400: hsl(var(--_secondary-400));
65
+ --ndw-color-secondary-500: hsl(var(--_secondary-500));
66
+ --ndw-color-secondary-600: hsl(var(--_secondary-600));
67
+ --ndw-color-secondary-700: hsl(var(--_secondary-700));
68
+
69
+ --ndw-color-secondary: var(--ndw-color-secondary-500);
70
+ --ndw-color-secondary-hover: var(--ndw-color-secondary-600);
71
+ --ndw-color-secondary-active: var(--ndw-color-secondary-700);
72
+
73
+ // Tertiary
74
+ --_tertiary-400: 43, 100%, 50%;
75
+ --_tertiary-500: 42, 100%, 43%;
76
+
77
+ --ndw-color-tertiary-400: hsl(var(--_tertiary-400));
78
+ --ndw-color-tertiary-500: hsl(var(--_tertiary-500));
79
+
80
+ // Links
81
+ --_link: 208, 100%;
82
+ --_link-400: var(--_link), 41%;
83
+ --_link-500: var(--_link), 32%;
84
+
85
+ --ndw-color-link-400: hsl(var(--_link-400));
86
+ --ndw-color-link-500: hsl(var(--_link-500));
87
+
88
+ // Feedback
89
+ --_positive: 133, 92%;
90
+ --_positive-100: 117, 56%, 92%;
91
+ --_positive-200: var(--_positive), 88%;
92
+ --_positive-300: var(--_positive), 82%;
93
+ --_positive-500: var(--_positive), 33%;
94
+ --_positive-600: var(--_positive), 24%;
95
+ --_warning: 43, 93%;
96
+ --_warning-100: 44, 100%, 94%;
97
+ --_warning-200: var(--_warning), 92%;
98
+ --_warning-300: var(--_warning), 88%;
99
+ --_warning-500: var(--_warning), 43%;
100
+ --_warning-600: 42, 83%, 32%;
101
+ --_alternative: 292, 100%;
102
+ --_alternative-100: var(--_alternative), 95%;
103
+ --_alternative-500: 292, 95%, 33%;
104
+ --_critical: 0, 100%;
105
+ --_critical-100: var(--_critical), 98%;
106
+ --_critical-200: var(--_critical), 95%;
107
+ --_critical-300: var(--_critical), 90%;
108
+ --_critical-500: var(--_critical), 46%;
109
+ --_info-100: 210, 100%, 96%;
110
+ --_info-200: 210, 86%, 91%;
111
+ --_info-300: 209, 93%, 86%;
112
+ --_info-500: 208, 100%, 41%;
113
+
114
+ --ndw-color-positive-100: hsl(var(--_positive-100));
115
+ --ndw-color-positive-200: hsl(var(--_positive-200));
116
+ --ndw-color-positive-300: hsl(var(--_positive-300));
117
+ --ndw-color-positive-500: hsl(var(--_positive-500));
118
+ --ndw-color-positive-600: hsl(var(--_positive-600));
119
+ --ndw-color-warning-100: hsl(var(--_warning-100));
120
+ --ndw-color-warning-200: hsl(var(--_warning-200));
121
+ --ndw-color-warning-300: hsl(var(--_warning-300));
122
+ --ndw-color-warning-500: hsl(var(--_warning-500));
123
+ --ndw-color-warning-600: hsl(var(--_warning-600));
124
+ --ndw-color-alternative-100: hsl(var(--_alternative-100));
125
+ --ndw-color-alternative-500: hsl(var(--_alternative-500));
126
+ --ndw-color-critical-100: hsl(var(--_critical-100));
127
+ --ndw-color-critical-200: hsl(var(--_critical-200));
128
+ --ndw-color-critical-300: hsl(var(--_critical-300));
129
+ --ndw-color-critical-500: hsl(var(--_critical-500));
130
+ --ndw-color-info-100: hsl(var(--_info-100));
131
+ --ndw-color-info-200: hsl(var(--_info-200));
132
+ --ndw-color-info-300: hsl(var(--_info-300));
133
+ --ndw-color-info-500: hsl(var(--_info-500));
134
+
135
+ --ndw-color-notification: hsl(19, 100%, 35%);
136
+
137
+ // Data
138
+ --_data-a-500: 133, 100%, 21%;
139
+ --_data-a-100: 101, 61%, 81%;
140
+ --_data-b-500: 0, 0%, 27%;
141
+ --_data-b-100: 0, 0%, 87%;
142
+ --_data-c-500: 209, 97%, 38%;
143
+ --_data-c-100: 194, 95%, 84%;
144
+ --_data-d-500: 292, 95%, 33%;
145
+ --_data-d-100: 292, 100%, 87%;
146
+ --_data-e-500: 51, 95%, 23%;
147
+ --_data-e-100: 54, 89%, 79%;
148
+ --_data-f-500: 0, 97%, 35%;
149
+ --_data-f-100: 0, 100%, 94%;
150
+
151
+ --ndw-color-data-a-500: hsl(var(--_data-a-500));
152
+ --ndw-color-data-a-100: hsl(var(--_data-a-100));
153
+ --ndw-color-data-b-500: hsl(var(--_data-b-500));
154
+ --ndw-color-data-b-100: hsl(var(--_data-b-100));
155
+ --ndw-color-data-c-500: hsl(var(--_data-c-500));
156
+ --ndw-color-data-c-100: hsl(var(--_data-c-100));
157
+ --ndw-color-data-d-500: hsl(var(--_data-d-500));
158
+ --ndw-color-data-d-100: hsl(var(--_data-d-100));
159
+ --ndw-color-data-e-500: hsl(var(--_data-e-500));
160
+ --ndw-color-data-e-100: hsl(var(--_data-e-100));
161
+ --ndw-color-data-f-500: hsl(var(--_data-f-500));
162
+ --ndw-color-data-f-100: hsl(var(--_data-f-100));
163
+
164
+ // Alpha Primary
165
+ --_alpha-black: 0, 0%, 0%;
166
+ --_alpha-007: 0.07;
167
+ --_alpha-015: 0.15;
168
+ --_alpha-040: 0.4;
169
+
170
+ --ndw-alpha-black-007: hsla(var(--_alpha-black), var(--_alpha-007));
171
+ --ndw-alpha-black-015: hsla(var(--_alpha-black), var(--_alpha-015));
172
+ --ndw-alpha-black-040: hsla(var(--_alpha-black), var(--_alpha-040));
173
+
174
+ --ndw-alpha-white-040: hsla(var(--_white), var(--_alpha-040));
175
+
176
+ --ndw-alpha-primary-007: hsla(var(--_primary-500), var(--_alpha-007));
177
+ --ndw-alpha-primary-015: hsla(var(--_primary-500), var(--_alpha-015));
178
+
179
+ // Background
180
+ --ndw-color-background: var(--ndw-color-primary);
181
+ --ndw-color-background-hover: var(--ndw-color-primary-hover);
182
+ --ndw-color-background-active: var(--ndw-color-primary-active);
183
+ --ndw-color-background-disabled: var(--ndw-color-grey-300);
184
+
185
+ // Foreground
186
+ --ndw-color-foreground: var(--ndw-color-white);
187
+ --ndw-color-foreground-hover: var(--ndw-color-white);
188
+ --ndw-color-foreground-active: var(--ndw-color-white);
189
+
190
+ // Text
191
+ --ndw-color-text: var(--ndw-color-grey-700);
192
+ }
193
+
194
+ [data-theme='nwb'] {
195
+ /* Colors */
196
+ // Primary
197
+ --_primary-050: 176, 44%, 95%;
198
+ --_primary-100: 176, 44%, 82%;
199
+ --_primary-200: 176, 44%, 73%;
200
+ --_primary-300: 176, 50%, 60%;
201
+ --_primary-400: 176, 55%, 48%;
202
+ --_primary-500: 176, 53%, 33%;
203
+ --_primary-600: 176, 60%, 34%;
204
+ --_primary-700: 176, 68%, 21%;
205
+ --_primary-800: 176, 68%, 13%;
206
+
207
+ --ndw-color-primary-050: hsl(var(--_primary-050));
208
+ --ndw-color-primary-100: hsl(var(--_primary-100));
209
+ --ndw-color-primary-200: hsl(var(--_primary-200));
210
+ --ndw-color-primary-300: hsl(var(--_primary-300));
211
+ --ndw-color-primary-400: hsl(var(--_primary-400));
212
+ --ndw-color-primary-500: hsl(var(--_primary-500));
213
+ --ndw-color-primary-600: hsl(var(--_primary-600));
214
+ --ndw-color-primary-700: hsl(var(--_primary-700));
215
+ --ndw-color-primary-800: hsl(var(--_primary-800));
216
+
217
+ // Secondary
218
+ --_secondary-050: 339, 100%, 96%;
219
+ --_secondary-100: 333, 85%, 91%;
220
+ --_secondary-200: 327, 85%, 78%;
221
+ --_secondary-300: 324, 85%, 69%;
222
+ --_secondary-400: 320, 70%, 60%;
223
+ --_secondary-500: 312, 50%, 41%;
224
+ --_secondary-600: 312, 50%, 32%;
225
+ --_secondary-700: 312, 100%, 20%;
226
+
227
+ --ndw-color-secondary-050: hsl(var(--_secondary-050));
228
+ --ndw-color-secondary-100: hsl(var(--_secondary-100));
229
+ --ndw-color-secondary-200: hsl(var(--_secondary-200));
230
+ --ndw-color-secondary-300: hsl(var(--_secondary-300));
231
+ --ndw-color-secondary-400: hsl(var(--_secondary-400));
232
+ --ndw-color-secondary-500: hsl(var(--_secondary-500));
233
+ --ndw-color-secondary-600: hsl(var(--_secondary-600));
234
+ --ndw-color-secondary-700: hsl(var(--_secondary-700));
235
+
236
+ // Tertiary
237
+ --_tertiary-400: 309, 29%, 36%;
238
+ --_tertiary-500: 309, 29%, 18%;
239
+
240
+ --ndw-color-tertiary-400: hsl(var(--_tertiary-400));
241
+ --ndw-color-tertiary-500: hsl(var(--_tertiary-500));
242
+
243
+ // Alpha Primary
244
+ --ndw-alpha-primary-007: hsla(var(--_primary-500), var(--_alpha-007));
245
+ --ndw-alpha-primary-015: hsla(var(--_primary-500), var(--_alpha-015));
246
+ }
@@ -1,13 +1,13 @@
1
- @import '@fontsource-variable/dm-sans/opsz.css';
2
- @import '@fontsource-variable/dm-sans/opsz-italic.css';
3
- @import '@fontsource-variable/nunito-sans/opsz.css';
4
- @import '@fontsource-variable/nunito-sans/opsz-italic.css';
5
- @import '@fontsource-variable/material-symbols-rounded/fill.css';
6
-
7
- .material-symbols-rounded {
8
- font-family: 'Material Symbols Rounded Variable', sans-serif;
9
- font-feature-settings: 'liga';
10
- font-style: normal;
11
- font-weight: normal;
12
- line-height: 1;
13
- }
1
+ @import '@fontsource-variable/dm-sans/opsz.css';
2
+ @import '@fontsource-variable/dm-sans/opsz-italic.css';
3
+ @import '@fontsource-variable/nunito-sans/opsz.css';
4
+ @import '@fontsource-variable/nunito-sans/opsz-italic.css';
5
+ @import '@fontsource-variable/material-symbols-rounded/fill.css';
6
+
7
+ .material-symbols-rounded {
8
+ font-family: 'Material Symbols Rounded Variable', sans-serif;
9
+ font-feature-settings: 'liga';
10
+ font-style: normal;
11
+ font-weight: normal;
12
+ line-height: 1;
13
+ }
@@ -1,17 +1,17 @@
1
- @use '@angular/material' as mat;
2
-
3
- html {
4
- @include mat.theme(
5
- (
6
- color: mat.$orange-palette,
7
- typography: (
8
- plain-family: var(--ndw-font-family-body),
9
- brand-family: var(--ndw-font-family-heading),
10
- bold-weight: var(--ndw-font-weight-bold),
11
- medium-weight: var(--ndw-font-weight-bold),
12
- regular-weight: var(--ndw-font-weight-regular),
13
- ),
14
- density: 0,
15
- )
16
- );
17
- }
1
+ @use '@angular/material' as mat;
2
+
3
+ html {
4
+ @include mat.theme(
5
+ (
6
+ color: mat.$orange-palette,
7
+ typography: (
8
+ plain-family: var(--ndw-font-family-body),
9
+ brand-family: var(--ndw-font-family-heading),
10
+ bold-weight: var(--ndw-font-weight-bold),
11
+ medium-weight: var(--ndw-font-weight-bold),
12
+ regular-weight: var(--ndw-font-weight-regular),
13
+ ),
14
+ density: 0,
15
+ )
16
+ );
17
+ }