@ndwnu/design-system 14.2.1 → 14.3.0

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 +1539 -1525
  2. package/README.md +4 -4
  3. package/assets/icons.ts +83 -83
  4. package/fesm2022/ndwnu-design-system.mjs +260 -220
  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 +144 -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 +205 -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 +46 -48
@@ -1,133 +1,133 @@
1
- /* Mixins */
2
- @mixin ndw-heading-xl {
3
- font-family: var(--ndw-font-family-heading);
4
- font-size: 2.5rem;
5
- font-weight: var(--ndw-font-weight-bold);
6
- line-height: 150%;
7
- }
8
-
9
- @mixin ndw-heading-lg {
10
- font-family: var(--ndw-font-family-heading);
11
- font-size: 2rem;
12
- font-weight: var(--ndw-font-weight-bold);
13
- line-height: 150%;
14
- }
15
-
16
- @mixin ndw-heading-md {
17
- font-family: var(--ndw-font-family-heading);
18
- font-size: 1.5rem;
19
- font-weight: var(--ndw-font-weight-bold);
20
- line-height: 150%;
21
- }
22
-
23
- @mixin ndw-heading-sm {
24
- font-family: var(--ndw-font-family-heading);
25
- font-size: 1.25rem;
26
- font-weight: var(--ndw-font-weight-bold);
27
- line-height: 150%;
28
- }
29
-
30
- @mixin ndw-paragraph-bold-xl {
31
- font-family: var(--ndw-font-family-body);
32
- font-size: 1.125rem;
33
- font-weight: var(--ndw-font-weight-bold);
34
- line-height: 150%;
35
- }
36
-
37
- @mixin ndw-paragraph-xl {
38
- font-family: var(--ndw-font-family-body);
39
- font-size: 1.125rem;
40
- font-weight: var(--ndw-font-weight-regular);
41
- line-height: 150%;
42
- }
43
-
44
- @mixin ndw-paragraph-bold-lg {
45
- font-family: var(--ndw-font-family-body);
46
- font-size: 1rem;
47
- font-weight: var(--ndw-font-weight-bold);
48
- line-height: 150%;
49
- }
50
-
51
- @mixin ndw-paragraph-lg {
52
- font-family: var(--ndw-font-family-body);
53
- font-size: 1rem;
54
- font-weight: var(--ndw-font-weight-regular);
55
- line-height: 150%;
56
- }
57
-
58
- @mixin ndw-paragraph-bold-md {
59
- font-family: var(--ndw-font-family-body);
60
- font-size: 0.8125rem;
61
- font-weight: var(--ndw-font-weight-bold);
62
- line-height: 150%;
63
- }
64
-
65
- @mixin ndw-paragraph-md {
66
- font-family: var(--ndw-font-family-body);
67
- font-size: 0.8125rem;
68
- font-weight: var(--ndw-font-weight-regular);
69
- line-height: 150%;
70
- }
71
-
72
- @mixin ndw-paragraph-bold-sm {
73
- font-family: var(--ndw-font-family-body);
74
- font-size: 0.6875rem;
75
- font-weight: var(--ndw-font-weight-bold);
76
- line-height: 150%;
77
- }
78
-
79
- @mixin ndw-paragraph-sm {
80
- font-family: var(--ndw-font-family-body);
81
- font-size: 0.6875rem;
82
- font-weight: var(--ndw-font-weight-regular);
83
- line-height: 150%;
84
- }
85
-
86
- /* Classes */
87
- .ndw-heading-xl {
88
- @include ndw-heading-xl;
89
- }
90
-
91
- .ndw-heading-lg {
92
- @include ndw-heading-lg;
93
- }
94
-
95
- .ndw-heading-md {
96
- @include ndw-heading-md;
97
- }
98
-
99
- .ndw-heading-sm {
100
- @include ndw-heading-sm;
101
- }
102
-
103
- .ndw-paragraph-bold-xl {
104
- @include ndw-paragraph-bold-xl;
105
- }
106
-
107
- .ndw-paragraph-xl {
108
- @include ndw-paragraph-xl;
109
- }
110
-
111
- .ndw-paragraph-bold-lg {
112
- @include ndw-paragraph-bold-lg;
113
- }
114
-
115
- .ndw-paragraph-lg {
116
- @include ndw-paragraph-lg;
117
- }
118
-
119
- .ndw-paragraph-bold-md {
120
- @include ndw-paragraph-bold-md;
121
- }
122
-
123
- .ndw-paragraph-md {
124
- @include ndw-paragraph-md;
125
- }
126
-
127
- .ndw-paragraph-bold-sm {
128
- @include ndw-paragraph-bold-sm;
129
- }
130
-
131
- .ndw-paragraph-sm {
132
- @include ndw-paragraph-sm;
133
- }
1
+ /* Mixins */
2
+ @mixin ndw-heading-xl {
3
+ font-family: var(--ndw-font-family-heading);
4
+ font-size: 2.5rem;
5
+ font-weight: var(--ndw-font-weight-bold);
6
+ line-height: 150%;
7
+ }
8
+
9
+ @mixin ndw-heading-lg {
10
+ font-family: var(--ndw-font-family-heading);
11
+ font-size: 2rem;
12
+ font-weight: var(--ndw-font-weight-bold);
13
+ line-height: 150%;
14
+ }
15
+
16
+ @mixin ndw-heading-md {
17
+ font-family: var(--ndw-font-family-heading);
18
+ font-size: 1.5rem;
19
+ font-weight: var(--ndw-font-weight-bold);
20
+ line-height: 150%;
21
+ }
22
+
23
+ @mixin ndw-heading-sm {
24
+ font-family: var(--ndw-font-family-heading);
25
+ font-size: 1.25rem;
26
+ font-weight: var(--ndw-font-weight-bold);
27
+ line-height: 150%;
28
+ }
29
+
30
+ @mixin ndw-paragraph-bold-xl {
31
+ font-family: var(--ndw-font-family-body);
32
+ font-size: 1.125rem;
33
+ font-weight: var(--ndw-font-weight-bold);
34
+ line-height: 150%;
35
+ }
36
+
37
+ @mixin ndw-paragraph-xl {
38
+ font-family: var(--ndw-font-family-body);
39
+ font-size: 1.125rem;
40
+ font-weight: var(--ndw-font-weight-regular);
41
+ line-height: 150%;
42
+ }
43
+
44
+ @mixin ndw-paragraph-bold-lg {
45
+ font-family: var(--ndw-font-family-body);
46
+ font-size: 1rem;
47
+ font-weight: var(--ndw-font-weight-bold);
48
+ line-height: 150%;
49
+ }
50
+
51
+ @mixin ndw-paragraph-lg {
52
+ font-family: var(--ndw-font-family-body);
53
+ font-size: 1rem;
54
+ font-weight: var(--ndw-font-weight-regular);
55
+ line-height: 150%;
56
+ }
57
+
58
+ @mixin ndw-paragraph-bold-md {
59
+ font-family: var(--ndw-font-family-body);
60
+ font-size: 0.8125rem;
61
+ font-weight: var(--ndw-font-weight-bold);
62
+ line-height: 150%;
63
+ }
64
+
65
+ @mixin ndw-paragraph-md {
66
+ font-family: var(--ndw-font-family-body);
67
+ font-size: 0.8125rem;
68
+ font-weight: var(--ndw-font-weight-regular);
69
+ line-height: 150%;
70
+ }
71
+
72
+ @mixin ndw-paragraph-bold-sm {
73
+ font-family: var(--ndw-font-family-body);
74
+ font-size: 0.6875rem;
75
+ font-weight: var(--ndw-font-weight-bold);
76
+ line-height: 150%;
77
+ }
78
+
79
+ @mixin ndw-paragraph-sm {
80
+ font-family: var(--ndw-font-family-body);
81
+ font-size: 0.6875rem;
82
+ font-weight: var(--ndw-font-weight-regular);
83
+ line-height: 150%;
84
+ }
85
+
86
+ /* Classes */
87
+ .ndw-heading-xl {
88
+ @include ndw-heading-xl;
89
+ }
90
+
91
+ .ndw-heading-lg {
92
+ @include ndw-heading-lg;
93
+ }
94
+
95
+ .ndw-heading-md {
96
+ @include ndw-heading-md;
97
+ }
98
+
99
+ .ndw-heading-sm {
100
+ @include ndw-heading-sm;
101
+ }
102
+
103
+ .ndw-paragraph-bold-xl {
104
+ @include ndw-paragraph-bold-xl;
105
+ }
106
+
107
+ .ndw-paragraph-xl {
108
+ @include ndw-paragraph-xl;
109
+ }
110
+
111
+ .ndw-paragraph-bold-lg {
112
+ @include ndw-paragraph-bold-lg;
113
+ }
114
+
115
+ .ndw-paragraph-lg {
116
+ @include ndw-paragraph-lg;
117
+ }
118
+
119
+ .ndw-paragraph-bold-md {
120
+ @include ndw-paragraph-bold-md;
121
+ }
122
+
123
+ .ndw-paragraph-md {
124
+ @include ndw-paragraph-md;
125
+ }
126
+
127
+ .ndw-paragraph-bold-sm {
128
+ @include ndw-paragraph-bold-sm;
129
+ }
130
+
131
+ .ndw-paragraph-sm {
132
+ @include ndw-paragraph-sm;
133
+ }
@@ -1,92 +1,92 @@
1
- :root {
2
- /* Spacing */
3
- --ndw-spacing-3xs: 0.125rem;
4
- --ndw-spacing-2xs: 0.25rem;
5
- --ndw-spacing-xs: 0.5rem;
6
- --ndw-spacing-sm: 0.75rem;
7
- --ndw-spacing-md: 1rem;
8
- --ndw-spacing-lg: 1.5rem;
9
- --ndw-spacing-xl: 2rem;
10
- --ndw-spacing-2xl: 2.5rem;
11
- --ndw-spacing-3xl: 3rem;
12
- --ndw-spacing-4xl: 5rem;
13
- --ndw-spacing-5xl: 8rem;
14
-
15
- /* Border */
16
- --ndw-border-size-sm: 1px;
17
- --ndw-border-size-md: 2px;
18
- --ndw-border-size-lg: 3px;
19
-
20
- /* Radius */
21
- --ndw-border-radius-xs: 0.125rem;
22
- --ndw-border-radius-sm: 0.25rem;
23
- --ndw-border-radius-md: 0.5rem;
24
- --ndw-border-radius-lg: 1.5rem;
25
-
26
- /* Letter spacing */
27
- --ndw-letter-spacing-sm: 0.1rem;
28
- --ndw-letter-spacing-md: 0.2rem;
29
- --ndw-letter-spacing-lg: 0.3rem;
30
-
31
- /* Elevation */
32
- --ndw-elevation-info: 0 0 0.5rem 0 hsla(var(--_link-500), 0.25);
33
- --ndw-elevation-content: 0 0.125rem 0.125rem 0 hsla(var(--_grey-600), 0.05);
34
- --ndw-elevation-dropdown: 0 0.25rem 1rem hsla(var(--_grey-600), 0.125);
35
- --ndw-elevation-popover: 0 0.5rem 1.25rem hsla(var(--_grey-600), 0.125);
36
- --ndw-elevation-toast: 0 0.75rem 1.25rem hsla(var(--_grey-600), 0.125);
37
- --ndw-backdrop-color: var(--ndw-alpha-black-040);
38
-
39
- /* Animation */
40
- --ndw-animation-speed-very-fast: 100ms;
41
- --ndw-animation-speed-fast: 200ms;
42
- --ndw-animation-speed-default: 300ms;
43
- --ndw-animation-speed-slow: 500ms;
44
-
45
- /* Icon Size */
46
- --ndw-icon-size-md: 1rem;
47
- --ndw-icon-size-lg: 1.5rem;
48
-
49
- /* Mult-select Size */
50
- --multi-select-default-width: 18.75rem;
51
-
52
- /* Typography */
53
- // Font Family
54
- --ndw-font-family-body: 'Nunito Sans Variable', sans-serif;
55
- --ndw-font-family-heading: 'DM Sans Variable', sans-serif;
56
-
57
- // Font Size
58
- --ndw-base-font-size: 16px;
59
-
60
- --ndw-font-size-2xs: 0.5625rem;
61
- --ndw-font-size-xs: 0.6875rem;
62
- --ndw-font-size-sm: 0.8125rem;
63
- --ndw-font-size-md: 1.125rem;
64
- --ndw-font-size-lg: 1.25rem;
65
- --ndw-font-size-xl: 1.5rem;
66
-
67
- // Font Weight
68
- --ndw-font-weight-regular: 400;
69
- --ndw-font-weight-bold: 650;
70
-
71
- // Line Height
72
- --ndw-line-height-sm: 1.375rem;
73
- --ndw-line-height-md: 1.5rem;
74
-
75
- /* Transform */
76
- --ndw-rotate-half: rotate(180deg);
77
-
78
- /* Modal */
79
- --ndw-modal-width-sm: 31.25rem;
80
- --ndw-modal-width-md: 45rem;
81
-
82
- /* Navigation */
83
- --main-navigation-collapse-width: 2.75rem;
84
- --main-navigation-expanded-width: 12.5rem;
85
- --main-navigation-mobile-header-height: 3.5rem;
86
- }
87
-
88
- /* Screen sizes */
89
- $ndw-screen-2xs: 480px;
90
- $ndw-screen-xs: 768px;
91
- $ndw-screen-sm: 1024px;
92
- $ndw-screen-md: 1440px;
1
+ :root {
2
+ /* Spacing */
3
+ --ndw-spacing-3xs: 0.125rem;
4
+ --ndw-spacing-2xs: 0.25rem;
5
+ --ndw-spacing-xs: 0.5rem;
6
+ --ndw-spacing-sm: 0.75rem;
7
+ --ndw-spacing-md: 1rem;
8
+ --ndw-spacing-lg: 1.5rem;
9
+ --ndw-spacing-xl: 2rem;
10
+ --ndw-spacing-2xl: 2.5rem;
11
+ --ndw-spacing-3xl: 3rem;
12
+ --ndw-spacing-4xl: 5rem;
13
+ --ndw-spacing-5xl: 8rem;
14
+
15
+ /* Border */
16
+ --ndw-border-size-sm: 1px;
17
+ --ndw-border-size-md: 2px;
18
+ --ndw-border-size-lg: 3px;
19
+
20
+ /* Radius */
21
+ --ndw-border-radius-xs: 0.125rem;
22
+ --ndw-border-radius-sm: 0.25rem;
23
+ --ndw-border-radius-md: 0.5rem;
24
+ --ndw-border-radius-lg: 1.5rem;
25
+
26
+ /* Letter spacing */
27
+ --ndw-letter-spacing-sm: 0.1rem;
28
+ --ndw-letter-spacing-md: 0.2rem;
29
+ --ndw-letter-spacing-lg: 0.3rem;
30
+
31
+ /* Elevation */
32
+ --ndw-elevation-info: 0 0 0.5rem 0 hsla(var(--_link-500), 0.25);
33
+ --ndw-elevation-content: 0 0.125rem 0.125rem 0 hsla(var(--_grey-600), 0.05);
34
+ --ndw-elevation-dropdown: 0 0.25rem 1rem hsla(var(--_grey-600), 0.125);
35
+ --ndw-elevation-popover: 0 0.5rem 1.25rem hsla(var(--_grey-600), 0.125);
36
+ --ndw-elevation-toast: 0 0.75rem 1.25rem hsla(var(--_grey-600), 0.125);
37
+ --ndw-backdrop-color: var(--ndw-alpha-black-040);
38
+
39
+ /* Animation */
40
+ --ndw-animation-speed-very-fast: 100ms;
41
+ --ndw-animation-speed-fast: 200ms;
42
+ --ndw-animation-speed-default: 300ms;
43
+ --ndw-animation-speed-slow: 500ms;
44
+
45
+ /* Icon Size */
46
+ --ndw-icon-size-md: 1rem;
47
+ --ndw-icon-size-lg: 1.5rem;
48
+
49
+ /* Mult-select Size */
50
+ --multi-select-default-width: 18.75rem;
51
+
52
+ /* Typography */
53
+ // Font Family
54
+ --ndw-font-family-body: 'Nunito Sans Variable', sans-serif;
55
+ --ndw-font-family-heading: 'DM Sans Variable', sans-serif;
56
+
57
+ // Font Size
58
+ --ndw-base-font-size: 16px;
59
+
60
+ --ndw-font-size-2xs: 0.5625rem;
61
+ --ndw-font-size-xs: 0.6875rem;
62
+ --ndw-font-size-sm: 0.8125rem;
63
+ --ndw-font-size-md: 1.125rem;
64
+ --ndw-font-size-lg: 1.25rem;
65
+ --ndw-font-size-xl: 1.5rem;
66
+
67
+ // Font Weight
68
+ --ndw-font-weight-regular: 400;
69
+ --ndw-font-weight-bold: 650;
70
+
71
+ // Line Height
72
+ --ndw-line-height-sm: 1.375rem;
73
+ --ndw-line-height-md: 1.5rem;
74
+
75
+ /* Transform */
76
+ --ndw-rotate-half: rotate(180deg);
77
+
78
+ /* Modal */
79
+ --ndw-modal-width-sm: 31.25rem;
80
+ --ndw-modal-width-md: 45rem;
81
+
82
+ /* Navigation */
83
+ --main-navigation-collapse-width: 2.75rem;
84
+ --main-navigation-expanded-width: 12.5rem;
85
+ --main-navigation-mobile-header-height: 3.5rem;
86
+ }
87
+
88
+ /* Screen sizes */
89
+ $ndw-screen-2xs: 480px;
90
+ $ndw-screen-xs: 768px;
91
+ $ndw-screen-sm: 1024px;
92
+ $ndw-screen-md: 1440px;
@@ -1,85 +1,85 @@
1
- import { ColorGroup } from '@ndwnu/core';
2
-
3
- export const PRIMARY: ColorGroup = {
4
- name: 'Primary',
5
- colors: [
6
- { value: 50 },
7
- { value: 100 },
8
- { value: 200 },
9
- { value: 300 },
10
- { value: 400 },
11
- { value: 500 },
12
- { value: 600 },
13
- { value: 700 },
14
- { value: 800 },
15
- ],
16
- };
17
-
18
- export const SECONDARY: ColorGroup = {
19
- name: 'Secondary',
20
- colors: [
21
- { value: 50 },
22
- { value: 100 },
23
- { value: 200 },
24
- { value: 300 },
25
- { value: 400 },
26
- { value: 500 },
27
- { value: 600 },
28
- { value: 700 },
29
- ],
30
- };
31
-
32
- export const TERTIARY: ColorGroup = {
33
- name: 'Tertiary',
34
- colors: [{ value: 400 }, { value: 500 }],
35
- };
36
-
37
- export const GREY: ColorGroup = {
38
- name: 'Grey',
39
- colors: [
40
- { value: undefined, altName: 'White' },
41
- { value: 100 },
42
- { value: 200 },
43
- { value: 300 },
44
- { value: 400 },
45
- { value: 500 },
46
- { value: 600 },
47
- { value: 700 },
48
- ],
49
- };
50
-
51
- export const LINK: ColorGroup = {
52
- name: 'Link',
53
- colors: [{ value: 400 }, { value: 500 }],
54
- };
55
-
56
- export const NOTIFICATIONS: ColorGroup = {
57
- name: 'Notifications',
58
- colors: [
59
- { value: 100, altName: 'Positive' },
60
- { value: 200, altName: 'Positive' },
61
- { value: 300, altName: 'Positive' },
62
- { value: 500, altName: 'Positive' },
63
- { value: 600, altName: 'Positive' },
64
- { value: 100, altName: 'Warning' },
65
- { value: 200, altName: 'Warning' },
66
- { value: 300, altName: 'Warning' },
67
- { value: 500, altName: 'Warning' },
68
- { value: 600, altName: 'Warning' },
69
- { value: 100, altName: 'Critical' },
70
- { value: 200, altName: 'Critical' },
71
- { value: 300, altName: 'Critical' },
72
- { value: 500, altName: 'Critical' },
73
- { value: 100, altName: 'Info' },
74
- { value: 200, altName: 'Info' },
75
- { value: 300, altName: 'Info' },
76
- { value: 500, altName: 'Info' },
77
- { value: 100, altName: 'Alternative' },
78
- { value: 500, altName: 'Alternative' },
79
- ],
80
- };
81
-
82
- export const ALPHAS: ColorGroup = {
83
- name: 'Alphas',
84
- alphas: ['Black-007', 'Black-015', 'Black-040', 'Primary-007', 'Primary-015'],
85
- };
1
+ import { ColorGroup } from '@ndwnu/core';
2
+
3
+ export const PRIMARY: ColorGroup = {
4
+ name: 'Primary',
5
+ colors: [
6
+ { value: 50 },
7
+ { value: 100 },
8
+ { value: 200 },
9
+ { value: 300 },
10
+ { value: 400 },
11
+ { value: 500 },
12
+ { value: 600 },
13
+ { value: 700 },
14
+ { value: 800 },
15
+ ],
16
+ };
17
+
18
+ export const SECONDARY: ColorGroup = {
19
+ name: 'Secondary',
20
+ colors: [
21
+ { value: 50 },
22
+ { value: 100 },
23
+ { value: 200 },
24
+ { value: 300 },
25
+ { value: 400 },
26
+ { value: 500 },
27
+ { value: 600 },
28
+ { value: 700 },
29
+ ],
30
+ };
31
+
32
+ export const TERTIARY: ColorGroup = {
33
+ name: 'Tertiary',
34
+ colors: [{ value: 400 }, { value: 500 }],
35
+ };
36
+
37
+ export const GREY: ColorGroup = {
38
+ name: 'Grey',
39
+ colors: [
40
+ { value: undefined, altName: 'White' },
41
+ { value: 100 },
42
+ { value: 200 },
43
+ { value: 300 },
44
+ { value: 400 },
45
+ { value: 500 },
46
+ { value: 600 },
47
+ { value: 700 },
48
+ ],
49
+ };
50
+
51
+ export const LINK: ColorGroup = {
52
+ name: 'Link',
53
+ colors: [{ value: 400 }, { value: 500 }],
54
+ };
55
+
56
+ export const NOTIFICATIONS: ColorGroup = {
57
+ name: 'Notifications',
58
+ colors: [
59
+ { value: 100, altName: 'Positive' },
60
+ { value: 200, altName: 'Positive' },
61
+ { value: 300, altName: 'Positive' },
62
+ { value: 500, altName: 'Positive' },
63
+ { value: 600, altName: 'Positive' },
64
+ { value: 100, altName: 'Warning' },
65
+ { value: 200, altName: 'Warning' },
66
+ { value: 300, altName: 'Warning' },
67
+ { value: 500, altName: 'Warning' },
68
+ { value: 600, altName: 'Warning' },
69
+ { value: 100, altName: 'Critical' },
70
+ { value: 200, altName: 'Critical' },
71
+ { value: 300, altName: 'Critical' },
72
+ { value: 500, altName: 'Critical' },
73
+ { value: 100, altName: 'Info' },
74
+ { value: 200, altName: 'Info' },
75
+ { value: 300, altName: 'Info' },
76
+ { value: 500, altName: 'Info' },
77
+ { value: 100, altName: 'Alternative' },
78
+ { value: 500, altName: 'Alternative' },
79
+ ],
80
+ };
81
+
82
+ export const ALPHAS: ColorGroup = {
83
+ name: 'Alphas',
84
+ alphas: ['Black-007', 'Black-015', 'Black-040', 'Primary-007', 'Primary-015'],
85
+ };
@@ -1,24 +1,24 @@
1
- import { template } from '@ndwnu/core';
2
- import { type Meta, type StoryObj } from '@storybook/angular';
3
-
4
- import {
5
- ALPHAS,
6
- GREY,
7
- LINK,
8
- NOTIFICATIONS,
9
- PRIMARY,
10
- SECONDARY,
11
- TERTIARY,
12
- } from './colors.stories.model';
13
-
14
- const meta: Meta = {
15
- title: 'Core/Colors',
16
- render: () => ({
17
- template: template([PRIMARY, SECONDARY, TERTIARY, GREY, LINK, NOTIFICATIONS, ALPHAS]),
18
- }),
19
- } as Meta;
20
-
21
- export default meta;
22
- type Story = StoryObj;
23
-
24
- export const Colors: Story = {};
1
+ import { template } from '@ndwnu/core';
2
+ import { type Meta, type StoryObj } from '@storybook/angular';
3
+
4
+ import {
5
+ ALPHAS,
6
+ GREY,
7
+ LINK,
8
+ NOTIFICATIONS,
9
+ PRIMARY,
10
+ SECONDARY,
11
+ TERTIARY,
12
+ } from './colors.stories.model';
13
+
14
+ const meta: Meta = {
15
+ title: 'Core/Colors',
16
+ render: () => ({
17
+ template: template([PRIMARY, SECONDARY, TERTIARY, GREY, LINK, NOTIFICATIONS, ALPHAS]),
18
+ }),
19
+ } as Meta;
20
+
21
+ export default meta;
22
+ type Story = StoryObj;
23
+
24
+ export const Colors: Story = {};
@@ -1,5 +1,5 @@
1
- @forward 'colors';
2
- @forward 'fonts';
3
- @forward 'material';
4
- @forward 'typography';
5
- @forward 'variables';
1
+ @forward 'colors';
2
+ @forward 'fonts';
3
+ @forward 'material';
4
+ @forward 'typography';
5
+ @forward 'variables';