@helsenorge/designsystem-react 13.0.0-workspaces-beta.1 → 13.0.0-workspaces-beta.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.
Files changed (58) hide show
  1. package/lib/CHANGELOG.md +4 -0
  2. package/lib/FormFieldTag.js.map +1 -1
  3. package/lib/Table.js +3 -3
  4. package/lib/Table.js.map +1 -1
  5. package/lib/TableBody.js +2 -2
  6. package/lib/TableBody.js.map +1 -1
  7. package/lib/TableCell.js +2 -2
  8. package/lib/TableCell.js.map +1 -1
  9. package/lib/TableExpandedRow.js +4 -4
  10. package/lib/TableExpandedRow.js.map +1 -1
  11. package/lib/TableExpanderCell.js +2 -2
  12. package/lib/TableExpanderCell.js.map +1 -1
  13. package/lib/TableHead.js +6 -6
  14. package/lib/TableHead.js.map +1 -1
  15. package/lib/TableHeadCell.js +5 -5
  16. package/lib/TableHeadCell.js.map +1 -1
  17. package/lib/TableRow.js +5 -5
  18. package/lib/TableRow.js.map +1 -1
  19. package/lib/components/FormFieldTag/FormFieldTag.d.ts +1 -1
  20. package/lib/components/Toast/styles.module.scss.d.ts +15 -0
  21. package/package.json +27 -9
  22. package/scss/_body.scss +11 -0
  23. package/scss/_breakpoints.scss +29 -0
  24. package/scss/_figma-tokens.scss +68 -0
  25. package/scss/_font-mixins.scss +262 -0
  26. package/scss/_font-settings.scss +8 -0
  27. package/scss/_fonts.scss +155 -0
  28. package/scss/_grid.scss +6 -0
  29. package/scss/_icon.scss +8 -0
  30. package/scss/_input.scss +139 -0
  31. package/scss/_palette.scss +146 -0
  32. package/scss/_print.scss +219 -0
  33. package/scss/_reset.scss +13 -0
  34. package/scss/_screen-reader.scss +63 -0
  35. package/scss/_spacers.scss +42 -0
  36. package/scss/bootstrap/LICENSE +22 -0
  37. package/scss/bootstrap/scss/_functions.scss +210 -0
  38. package/scss/bootstrap/scss/_grid.scss +73 -0
  39. package/scss/bootstrap/scss/_variables.scss +990 -0
  40. package/scss/bootstrap/scss/bootstrap-grid.scss +30 -0
  41. package/scss/bootstrap/scss/mixins/_breakpoints.scss +131 -0
  42. package/scss/bootstrap/scss/mixins/_deprecate.scss +11 -0
  43. package/scss/bootstrap/scss/mixins/_grid-framework.scss +89 -0
  44. package/scss/bootstrap/scss/mixins/_grid.scss +76 -0
  45. package/scss/bootstrap/scss/utilities/_display.scss +30 -0
  46. package/scss/bootstrap/scss/utilities/_flex.scss +120 -0
  47. package/scss/bootstrap/scss/utilities/_spacing.scss +80 -0
  48. package/scss/bootstrap/scss/vendor/_rfs.scss +233 -0
  49. package/scss/helsenorge.scss +10 -0
  50. package/scss/layout.module.scss +14 -0
  51. package/scss/layout.module.scss.d.ts +9 -0
  52. package/scss/supernova/index.css +4 -0
  53. package/scss/supernova/styles/colors.css +258 -0
  54. package/scss/supernova/styles/spacers.css +24 -0
  55. package/scss/supernova/styles/typography.css +110 -0
  56. package/scss/typography.module.scss +182 -0
  57. package/scss/typography.module.scss.d.ts +38 -0
  58. package/scss/typography.stories.tsx +203 -0
@@ -0,0 +1,233 @@
1
+ @use 'sass:map';
2
+ @use 'sass:math';
3
+ @use 'sass:meta';
4
+ // stylelint-disable property-blacklist, scss/dollar-variable-default, scss/comment-no-empty, scss/no-global-function-names, scss/at-mixin-pattern
5
+
6
+ // SCSS RFS mixin
7
+ //
8
+ // Automated responsive font sizes
9
+ //
10
+ // Licensed under MIT (https://github.com/twbs/rfs/blob/v8.x/LICENSE)
11
+
12
+ // Configuration
13
+
14
+ // Base font size
15
+ $rfs-base-font-size: 1.25rem !default;
16
+ $rfs-font-size-unit: rem !default;
17
+
18
+ @if $rfs-font-size-unit != rem and $rfs-font-size-unit != px {
19
+ @error "`#{$rfs-font-size-unit}` is not a valid unit for $rfs-font-size-unit. Use `px` or `rem`.";
20
+ }
21
+
22
+ // Breakpoint at where font-size starts decreasing if screen width is smaller
23
+ $rfs-breakpoint: 1200px !default;
24
+ $rfs-breakpoint-unit: px !default;
25
+
26
+ @if $rfs-breakpoint-unit != px and $rfs-breakpoint-unit != em and $rfs-breakpoint-unit != rem {
27
+ @error "`#{$rfs-breakpoint-unit}` is not a valid unit for $rfs-breakpoint-unit. Use `px`, `em` or `rem`.";
28
+ }
29
+
30
+ // Resize font size based on screen height and width
31
+ $rfs-two-dimensional: false !default;
32
+
33
+ // Factor of decrease
34
+ $rfs-factor: 10 !default;
35
+
36
+ @if meta.type-of($rfs-factor) != 'number' or $rfs-factor <= 1 {
37
+ @error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
38
+ }
39
+
40
+ // Generate enable or disable classes. Possibilities: false, "enable" or "disable"
41
+ $rfs-class: false !default;
42
+
43
+ // 1 rem = $rfs-rem-value px
44
+ $rfs-rem-value: 16 !default;
45
+
46
+ // Safari iframe resize bug: https://github.com/twbs/rfs/issues/14
47
+ $rfs-safari-iframe-resize-bug-fix: false !default;
48
+
49
+ // Disable RFS by setting $enable-responsive-font-sizes to false
50
+ $enable-responsive-font-sizes: true !default;
51
+
52
+ // Cache $rfs-base-font-size unit
53
+ $rfs-base-font-size-unit: math.unit($rfs-base-font-size);
54
+
55
+ @function divide($dividend, $divisor, $precision: 10) {
56
+ $sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);
57
+ $dividend: math.abs($dividend);
58
+ $divisor: math.abs($divisor);
59
+
60
+ @if $dividend == 0 {
61
+ @return 0;
62
+ }
63
+
64
+ @if $divisor == 0 {
65
+ @error "Cannot divide by 0";
66
+ }
67
+
68
+ $remainder: $dividend;
69
+ $result: 0;
70
+ $factor: 10;
71
+
72
+ @while $remainder > 0 and $precision >= 0 {
73
+ $quotient: 0;
74
+
75
+ @while $remainder >= $divisor {
76
+ $remainder: $remainder - $divisor;
77
+ $quotient: $quotient + 1;
78
+ }
79
+
80
+ $result: $result * 10 + $quotient;
81
+ $factor: $factor * 0.1;
82
+ $remainder: $remainder * 10;
83
+ $precision: $precision - 1;
84
+
85
+ @if $precision < 0 and $remainder >= $divisor * 5 {
86
+ $result: $result + 1;
87
+ }
88
+ }
89
+
90
+ $result: $result * $factor * $sign;
91
+ $dividend-unit: math.unit($dividend);
92
+ $divisor-unit: math.unit($divisor);
93
+ $unit-map: (
94
+ 'px': 1px,
95
+ 'rem': 1rem,
96
+ 'em': 1em,
97
+ '%': 1%,
98
+ );
99
+
100
+ @if $dividend-unit != $divisor-unit and map.has-key($unit-map, $dividend-unit) {
101
+ $result: $result * map.get($unit-map, $dividend-unit);
102
+ }
103
+
104
+ @return $result;
105
+ }
106
+
107
+ // Remove px-unit from $rfs-base-font-size for calculations
108
+ @if $rfs-base-font-size-unit == 'px' {
109
+ $rfs-base-font-size: divide($rfs-base-font-size, $rfs-base-font-size * 0 + 1);
110
+ } @else if $rfs-base-font-size-unit == 'rem' {
111
+ $rfs-base-font-size: divide($rfs-base-font-size, divide($rfs-base-font-size * 0 + 1, $rfs-rem-value));
112
+ }
113
+
114
+ // Cache $rfs-breakpoint unit to prevent multiple calls
115
+ $rfs-breakpoint-unit-cache: math.unit($rfs-breakpoint);
116
+
117
+ // Remove unit from $rfs-breakpoint for calculations
118
+ @if $rfs-breakpoint-unit-cache == 'px' {
119
+ $rfs-breakpoint: divide($rfs-breakpoint, $rfs-breakpoint * 0 + 1);
120
+ } @else if $rfs-breakpoint-unit-cache == 'rem' or $rfs-breakpoint-unit-cache == 'em' {
121
+ $rfs-breakpoint: divide($rfs-breakpoint, divide($rfs-breakpoint * 0 + 1, $rfs-rem-value));
122
+ }
123
+
124
+ // Internal mixin that adds disable classes to the selector if needed.
125
+ @mixin _rfs-disable-class {
126
+ @if $rfs-class == 'disable' {
127
+ // Adding an extra class increases specificity, which prevents the media query to override the font size
128
+ &,
129
+ .disable-responsive-font-size &,
130
+ &.disable-responsive-font-size {
131
+ @content;
132
+ }
133
+ } @else {
134
+ @content;
135
+ }
136
+ }
137
+
138
+ // Internal mixin that adds enable classes to the selector if needed.
139
+ @mixin _rfs-enable-class {
140
+ @if $rfs-class == 'enable' {
141
+ .enable-responsive-font-size &,
142
+ &.enable-responsive-font-size {
143
+ @content;
144
+ }
145
+ } @else {
146
+ @content;
147
+ }
148
+ }
149
+
150
+ // Internal mixin used to determine which media query needs to be used
151
+ @mixin _rfs-media-query($mq-value) {
152
+ @if $rfs-two-dimensional {
153
+ @media (max-width: #{$mq-value}), (max-height: #{$mq-value}) {
154
+ @content;
155
+ }
156
+ } @else {
157
+ @media (max-width: #{$mq-value}) {
158
+ @content;
159
+ }
160
+ }
161
+ }
162
+
163
+ // Responsive font size mixin
164
+ @mixin rfs($fs, $important: false) {
165
+ // Cache $fs unit
166
+ $fs-unit: if(type-of($fs) == 'number', math.unit($fs), false);
167
+
168
+ // Add !important suffix if needed
169
+ $rfs-suffix: if($important, ' !important', '');
170
+
171
+ // If $fs isn't a number (like inherit) or $fs has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
172
+ @if not $fs-unit or $fs-unit != '' and $fs-unit != 'px' and $fs-unit != 'rem' or $fs == 0 {
173
+ font-size: #{$fs}#{$rfs-suffix};
174
+ } @else {
175
+ // Remove unit from $fs for calculations
176
+ @if $fs-unit == 'px' {
177
+ $fs: divide($fs, $fs * 0 + 1);
178
+ } @else if $fs-unit == 'rem' {
179
+ $fs: divide($fs, divide($fs * 0 + 1, $rfs-rem-value));
180
+ }
181
+
182
+ // Set default font size
183
+ $rfs-static: if($rfs-font-size-unit == rem, #{divide($fs, $rfs-rem-value)}rem, #{$fs}px);
184
+
185
+ // Only add the media query if the font size is bigger than the minimum font size
186
+ @if $fs <= $rfs-base-font-size or not $enable-responsive-font-sizes {
187
+ font-size: #{$rfs-static}#{$rfs-suffix};
188
+ } @else {
189
+ // Calculate the minimum font size for $fs
190
+ $fs-min: $rfs-base-font-size + divide($fs - $rfs-base-font-size, $rfs-factor);
191
+
192
+ // Calculate difference between $fs and the minimum font size
193
+ $fs-diff: $fs - $fs-min;
194
+
195
+ // Base font-size formatting
196
+ $min-width: if($rfs-font-size-unit == rem, #{divide($fs-min, $rfs-rem-value)}rem, #{$fs-min}px);
197
+
198
+ // Use `vmin` if two-dimensional is enabled
199
+ $variable-unit: if($rfs-two-dimensional, vmin, vw);
200
+
201
+ // Calculate the variable width between 0 and $rfs-breakpoint
202
+ $variable-width: #{divide($fs-diff * 100, $rfs-breakpoint)}#{$variable-unit};
203
+
204
+ // Set the calculated font-size
205
+ $rfs-fluid: calc(#{$min-width} + #{$variable-width}) #{$rfs-suffix};
206
+
207
+ // Breakpoint formatting
208
+ $mq-value: if($rfs-breakpoint-unit == px, #{$rfs-breakpoint}px, #{divide($rfs-breakpoint, $rfs-rem-value)}#{$rfs-breakpoint-unit});
209
+
210
+ @include _rfs-disable-class {
211
+ font-size: #{$rfs-static}#{$rfs-suffix};
212
+ }
213
+
214
+ @include _rfs-media-query($mq-value) {
215
+ @include _rfs-enable-class {
216
+ font-size: $rfs-fluid;
217
+ }
218
+
219
+ // Include safari iframe resize fix if needed
220
+ min-width: if($rfs-safari-iframe-resize-bug-fix, (0 * 1vw), null);
221
+ }
222
+ }
223
+ }
224
+ }
225
+
226
+ // The font-size & responsive-font-size mixins use RFS to rescale the font size
227
+ @mixin font-size($fs, $important: false) {
228
+ @include rfs($fs, $important);
229
+ }
230
+
231
+ @mixin responsive-font-size($fs, $important: false) {
232
+ @include rfs($fs, $important);
233
+ }
@@ -0,0 +1,10 @@
1
+ @forward 'reset';
2
+ @forward 'spacers';
3
+ @forward 'breakpoints';
4
+ @forward 'palette';
5
+ @forward 'fonts';
6
+ @forward 'body';
7
+ @forward 'print';
8
+ @import './bootstrap/scss/bootstrap-grid';
9
+ @import './supernova/styles/colors.css';
10
+ @import './supernova/styles/spacers.css';
@@ -0,0 +1,14 @@
1
+ @use './breakpoints' as *;
2
+
3
+ /*
4
+ Denne filen er ment til å importeres som en css module:
5
+ import designsystemlayout from './scss/layout.scss'
6
+ <div className={designsystemlayout['container-breakout']}></div>
7
+ */
8
+
9
+ .container-breakout {
10
+ // This is a copy of how bootstrap's row class sets margins inside a container
11
+ // https://github.com/twbs/bootstrap/blob/e5643aaa89eb67327a5b4abe7db976f0ea276b70/scss/mixins/_scss#L16C1-L17C30
12
+ margin-right: -$grid-gutter-width * 0.5;
13
+ margin-left: -$grid-gutter-width * 0.5;
14
+ }
@@ -0,0 +1,9 @@
1
+ export type Styles = {
2
+ 'container-breakout': string;
3
+ };
4
+
5
+ export type ClassNames = keyof Styles;
6
+
7
+ declare const styles: Styles;
8
+
9
+ export default styles;
@@ -0,0 +1,4 @@
1
+ /* Base tokens */
2
+ @import './styles/spacers.css';
3
+ @import './styles/colors.css';
4
+ @import './styles/typography.css';
@@ -0,0 +1,258 @@
1
+ /* stylelint-disable color-hex-length */
2
+ /* stylelint-disable comment-empty-line-before */
3
+ /* stylelint-disable scss/operator-no-unspaced */
4
+
5
+ /**
6
+ * This file was generated automatically by Supernova.io and should not be changed manually.
7
+ * To modify the format or content of this file, please contact your design system team.
8
+ */
9
+
10
+ :root {
11
+ --color-action-graphics-onlight: #188097;
12
+ --color-action-graphics-onlight-hover: #126f87;
13
+ --core-color-banana-50: #fdf8df;
14
+ --core-color-banana-100: #fcf2bf;
15
+ --core-color-banana-200: #f9ea9f;
16
+ --core-color-banana-300: #f5e080;
17
+ --core-color-banana-400: #ebc840;
18
+ --core-color-banana-500: #ddab06;
19
+ --core-color-banana-600: #c59302;
20
+ --core-color-banana-700: #ab7c00;
21
+ --core-color-banana-800: #916500;
22
+ --core-color-banana-900: #764f00;
23
+ --core-color-blueberry-50: #e4f7f9;
24
+ --core-color-blueberry-100: #cae7ed;
25
+ --core-color-blueberry-200: #afdae3;
26
+ --core-color-blueberry-300: #7abecc;
27
+ --core-color-blueberry-400: #58aabb;
28
+ --core-color-blueberry-500: #188097;
29
+ --core-color-blueberry-600: #126f87;
30
+ --core-color-blueberry-700: #08667c;
31
+ --core-color-blueberry-800: #06596c;
32
+ --core-color-blueberry-900: #084350;
33
+ --core-color-cherry-50: #fff2ea;
34
+ --core-color-cherry-100: #f7e1d2;
35
+ --core-color-cherry-200: #eec0a5;
36
+ --core-color-cherry-300: #e39376;
37
+ --core-color-cherry-400: #d56147;
38
+ --core-color-cherry-500: #c83521;
39
+ --core-color-cherry-600: #b62e1c;
40
+ --core-color-cherry-700: #a31f0e;
41
+ --core-color-cherry-800: #912112;
42
+ --core-color-cherry-900: #7e1c0e;
43
+ --core-color-kiwi-50: #e6f8ee;
44
+ --core-color-kiwi-100: #c2edd6;
45
+ --core-color-kiwi-200: #9de2bf;
46
+ --core-color-kiwi-300: #79d6aa;
47
+ --core-color-kiwi-400: #56ca96;
48
+ --core-color-kiwi-500: #33be84;
49
+ --core-color-kiwi-600: #10b172;
50
+ --core-color-kiwi-700: #0ca161;
51
+ --core-color-kiwi-800: #099150;
52
+ --core-color-kiwi-900: #078141;
53
+ --core-color-neutral-50: #f5f3f3;
54
+ --core-color-neutral-100: #eae7e7;
55
+ --core-color-neutral-200: #d6d4d3;
56
+ --core-color-neutral-300: #bdbab9;
57
+ --core-color-neutral-400: #aaa8a6;
58
+ --core-color-neutral-500: #989693;
59
+ --core-color-neutral-600: #7d7c79;
60
+ --core-color-neutral-700: #62625f;
61
+ --core-color-neutral-800: #474745;
62
+ --core-color-neutral-900: #2b2c2b;
63
+ --core-color-plum-50: #f4ecfe;
64
+ --core-color-plum-100: #e5d5fb;
65
+ --core-color-plum-200: #cfb1f6;
66
+ --core-color-plum-300: #b388ec;
67
+ --core-color-plum-400: #9862df;
68
+ --core-color-plum-500: #7c3fcb;
69
+ --core-color-plum-600: #6c36b3;
70
+ --core-color-plum-700: #5c27a1;
71
+ --core-color-plum-800: #4c1b8c;
72
+ --core-color-plum-900: #3c1471;
73
+ --core-color-black: #000000;
74
+ --core-color-white: #ffffff;
75
+ --color-action-border-ondark: #ffffff;
76
+ --color-action-text-ondark: #ffffff;
77
+ --color-action-graphics-ondark: #ffffff;
78
+ --color-notification-background-info: #e4f7f9;
79
+ --color-notification-background-error: #fff2ea;
80
+ --color-notification-background-warning: #fdf8df;
81
+ --color-notification-background-success: #e6f8ee;
82
+ --color-notification-border-info: #08667c;
83
+ --color-notification-border-error: #a31f0e;
84
+ --color-notification-border-warning: #ab7c00;
85
+ --color-notification-border-success: #078141;
86
+ --color-notification-graphics-info: #08667c;
87
+ --color-notification-graphics-error: #a31f0e;
88
+ --color-notification-graphics-warning: #ab7c00;
89
+ --color-notification-graphics-success: #078141;
90
+ --color-notification-status-info: #188097;
91
+ --color-notification-status-error: #c83521;
92
+ --color-notification-status-warning: #ebc840;
93
+ --color-notification-status-success: #099150;
94
+ --color-disabled-background: #d6d4d3;
95
+ --color-disabled-text: #62625f;
96
+ --color-disabled-border: #7d7c79;
97
+ --color-destructive-background-emphasized: #f7e1d2;
98
+ --color-destructive-background-normal: #fff2ea;
99
+ --color-destructive-graphics-normal: #c83521;
100
+ --color-destructive-graphics-hover: #b62e1c;
101
+ --color-destructive-text-normal: #b62e1c;
102
+ --color-destructive-text-hover: #a31f0e;
103
+ --color-help-background-normal: #f4ecfe;
104
+ --color-help-graphics-normal: #5c27a1;
105
+ --color-help-border-normal: #5c27a1;
106
+ --color-disabled-graphics: #62625f;
107
+ --color-destructive-border-normal: #c83521;
108
+ --color-action-border-ondark-hover: #e4f7f9;
109
+ --color-action-graphics-ondark-hover: #e4f7f9;
110
+
111
+ /* Hoverfarge for bakgrunn på interaktive elementer - onLight */
112
+ --color-action-background-transparent-onlight-hover: #126f8721;
113
+
114
+ /* Hoverfarge for bakgrunn på interaktive elementer - onLight selected */
115
+ --color-action-background-transparent-onlight-hoverselected: #126f872b;
116
+ --color-action-border-ondark-focus: #ffffff;
117
+ --color-disabled-border-ondark: #d6d4d3;
118
+ --color-disabled-graphics-ondark: #d6d4d3;
119
+ --color-disabled-text-ondark: #ffffff;
120
+ --color-action-text-onlight: #126f87;
121
+ --color-action-text-onlight-hover: #08667c;
122
+ --color-action-border-onlight: #188097;
123
+ --color-action-border-onlight-hover: #08667c;
124
+ --color-action-border-onlight-focus: #000000;
125
+ --color-action-background-ondark: #ffffff;
126
+ --color-action-background-ondark-hover: #e4f7f9;
127
+ --color-action-background-ondark-selected: #cae7ed;
128
+ --color-action-background-ondark-hoverselected: #afdae3;
129
+ --color-action-background-onlight: #188097;
130
+ --color-action-background-onlight-hover: #08667c;
131
+
132
+ /* Hoverfarge for bakgrunn på interaktive elementer - onDark */
133
+ --color-action-background-transparent-ondark-hover: #00000026;
134
+
135
+ /* Hoverfarge for bakgrunn på interaktive elementer - onDark selected */
136
+ --color-action-background-transparent-ondark-hoverselected: #000000bf;
137
+ --color-base-background-blueberry: #e4f7f9;
138
+ --color-base-background-cherry: #fff2ea;
139
+ --color-base-background-neutral: #f5f3f3;
140
+ --color-base-background-white: #ffffff;
141
+ --color-base-background-dark-blueberry: #188097;
142
+ --color-base-background-dark-cherry: #c83521;
143
+ --color-base-background-dark-neutral: #2b2c2b;
144
+ --color-base-text-onlight: #000000;
145
+ --color-base-text-ondark: #ffffff;
146
+ --color-base-border-ondark: #d6d4d3;
147
+ --color-base-border-onlight: #7d7c79;
148
+ --color-base-border-onlight-emphasized: #62625f;
149
+ --color-base-graphics-onlight: #000000;
150
+ --color-base-graphics-ondark: #ffffff;
151
+ --brandcolor-white: #ffffff;
152
+ --brandcolor-black: #000000;
153
+ --brandcolor-neutral-verylight: #f5f3f3;
154
+ --brandcolor-neutral-light: #eae7e7;
155
+ --brandcolor-neutral-mediumlight: #d6d4d3;
156
+ --brandcolor-neutral-medium: #989693;
157
+ --brandcolor-neutral-dark: #62625f;
158
+ --brandcolor-neutral-verydark: #2b2c2b;
159
+ --brandcolor-blueberry-verylight: #e4f7f9;
160
+ --brandcolor-blueberry-light: #cae7ed;
161
+ --brandcolor-blueberry-mediumlight: #afdae3;
162
+ --brandcolor-blueberry-medium: #188097;
163
+ --brandcolor-blueberry-mediumdark: #126f87;
164
+ --brandcolor-blueberry-dark: #08667c;
165
+ --brandcolor-cherry-verylight: #fff2ea;
166
+ --brandcolor-cherry-light: #f7e1d2;
167
+ --brandcolor-cherry-medium: #c83521;
168
+ --brandcolor-cherry-mediumdark: #b62e1c;
169
+ --brandcolor-cherry-dark: #a31f0e;
170
+
171
+ /* Placeholdertext in input- and textarea-controls */
172
+ --color-placeholder-text-onlight: #62625f;
173
+ --color-base-border-onlight-subtle: #d6d4d3;
174
+ --color-base-border-neutral: #d6d4d3;
175
+ --color-base-border-blueberry: #afdae3;
176
+ --color-base-border-cherry: #eec0a5;
177
+
178
+ /* In a few cases where coloured text is required to stress the semantics of an information notification text */
179
+ --color-notification-text-info: #08667c;
180
+
181
+ /* In a few cases where coloured text is required to stress the semantics of an error notification text */
182
+ --color-notification-text-error: #a31f0e;
183
+ --color-notification-text-warning: #916500;
184
+ --color-notification-text-success: #078141;
185
+ --color-base-border-neutral-emphasized: #bdbab9;
186
+ --color-notification-status-draft: #7d7c79;
187
+
188
+ /* hoverstate on help components on white background */
189
+ --color-help-background-transparent-onlight-hover: #6c36b31a;
190
+ --color-help-background-transparent-onlight-hover-selected: #6c38b333;
191
+ --color-help-background-transparent-onlight-active: #6c38b34d;
192
+ --color-action-background-transparent-onlight-active: #126f874d;
193
+
194
+ /* Background outside of modal and bottomsheet to mask inactive screen-area */
195
+ --color-shadow-pagemask: #2c2b2cb8;
196
+ --color-help-border-subtle-wcag: #9862df;
197
+ --color-help-graphics-dark: #4c1b8c;
198
+ --color-help-border-dark: #4c1b8c;
199
+ --color-help-graphics-verydark: #3c1471;
200
+ --color-help-border-verydark: #3c1471;
201
+ --color-action-background-onlight-active: #06596c;
202
+ --color-action-background-like-transparent-but-opaque-onlight-hover: #e0ecef;
203
+ --color-action-background-like-transparent-but-opaque-onlight-hoverselected: #d7e7eb;
204
+ --color-action-background-stroke-onlight: #126f87;
205
+ --component-stickynote-background-normal-light: #fdf8df;
206
+ --component-stickynote-background-normal-medium: #fcf2bf;
207
+ --component-stickynote-background-normal-dark: #f9ea9f;
208
+ --component-stickynote-border-normal: #916500;
209
+ --component-stickynote-border-error: #d56147;
210
+ --component-stickynote-background-error-dark: #eec0a5;
211
+ --component-stickynote-background-error-medium: #f7e1d2;
212
+ --component-stickynote-background-error-light: #fff2ea;
213
+ --color-base-text-onlight-subdued: #474745;
214
+ --component-stickynote-background-fold-error-dark: #e39376;
215
+ --component-stickynote-background-fold-error-light: #f7e1d2;
216
+ --component-stickynote-background-fold-error-medium: #eec0a5;
217
+ --component-stickynote-background-fold-normal-light: #fcf2bf;
218
+ --component-stickynote-background-fold-normal-medium: #f9ea9f;
219
+ --component-stickynote-background-fold-normal-dark: #ebc840;
220
+ --component-stickynote-background-transparent-onlight-hover: #ebc84021;
221
+ --component-stickynote-background-transparent-onlight-active: #ebc8404d;
222
+ --component-stickynote-background-transparent-error-hover: #d5614721;
223
+ --component-stickynote-background-transparent-error-active: #d5614740;
224
+ --component-listelements-background-neutral-light: #f5f3f3;
225
+ --component-listelements-background-neutral-medium: #eae7e7;
226
+ --component-listelements-background-neutral-dark: #d6d4d3;
227
+ --component-listelements-border-neutral-light: #eae7e7;
228
+ --component-listelements-background-blueberry-light: #e4f7f9;
229
+ --component-listelements-background-blueberry-medium: #cae7ed;
230
+ --component-listelements-border-blueberry-light: #cae7ed;
231
+ --component-listelements-background-blueberry-dark: #afdae3;
232
+ --component-listelements-border-blueberry-normal: #188097;
233
+ --component-listelements-background-cherry-light: #fff2ea;
234
+ --component-listelements-background-cherry-medium: #f7e1d2;
235
+ --component-listelements-border-cherry-light: #f7e1d2;
236
+ --component-listelements-background-cherry-dark: #eec0a5;
237
+ --component-listelements-border-cherry-normal: #d56147;
238
+ --component-listelements-border-neutral-normal: #7d7c79;
239
+ --component-statusdot-graphics-banana-ondark: #f5e080;
240
+ --component-statusdot-graphics-banana-onlight: #ab7c00;
241
+ --component-statusdot-graphics-blueberry-ondark: #afdae3;
242
+ --component-statusdot-graphics-blueberry-onlight: #188097;
243
+ --component-statusdot-graphics-cherry-ondark: #f7e1d2;
244
+ --component-statusdot-graphics-cherry-onlight: #a31f0e;
245
+ --component-statusdot-graphics-kiwi-ondark: #9de2bf;
246
+ --component-statusdot-graphics-kiwi-onlight: #078141;
247
+ --component-statusdot-graphics-neutral-ondark: #f5f3f3;
248
+ --component-statusdot-graphics-neutral-onlight: #7d7c79;
249
+ --color-action-graphics-emphasized-onlight: #08667c;
250
+ --color-base-background-stroke-dark-cherry: #b62e1c;
251
+ --color-base-background-stroke-dark-blueberry: #126f87;
252
+ --color-base-background-stroke-dark-neutral: #000000;
253
+ --color-destructive-graphics-emphasized-onlight: #a31f0e;
254
+ --component-listelements-background-neutral-verydark: #bdbab9;
255
+ --component-listelements-background-blueberry-verydark: #7abecc;
256
+ --component-listelements-border-neutral-ondark: #ffffff;
257
+ --component-listelements-background-cherry-verydark: #e39376;
258
+ }
@@ -0,0 +1,24 @@
1
+ /* stylelint-disable color-hex-length */
2
+ /* stylelint-disable comment-empty-line-before */
3
+ /* stylelint-disable scss/operator-no-unspaced */
4
+
5
+ /**
6
+ * This file was generated automatically by Supernova.io and should not be changed manually.
7
+ * To modify the format or content of this file, please contact your design system team.
8
+ */
9
+
10
+ :root {
11
+ --core-space-4xs: 0.125rem;
12
+ --core-space-3xs: 0.25rem;
13
+ --core-space-2xs: 0.5rem;
14
+ --core-space-xs: 0.75rem;
15
+ --core-space-s: 1rem;
16
+ --core-space-m: 1.5rem;
17
+ --core-space-l: 2rem;
18
+ --core-space-xl: 3rem;
19
+ --core-space-2xl: 4rem;
20
+ --core-space-3xl: 5rem;
21
+ --core-space-4xl: 6rem;
22
+ --core-space-5xl: 7rem;
23
+ --core-space-6xl: 8rem;
24
+ }
@@ -0,0 +1,110 @@
1
+ /* stylelint-disable color-hex-length */
2
+ /* stylelint-disable comment-empty-line-before */
3
+ /* stylelint-disable scss/operator-no-unspaced */
4
+
5
+ /**
6
+ * This file was generated automatically by Supernova.io and should not be changed manually.
7
+ * To modify the format or content of this file, please contact your design system team.
8
+ */
9
+
10
+ :root {
11
+ /* Hovedtittel H1 */
12
+ --desktop-h1-title1: 600 3rem/120% 'Source Sans Pro';
13
+
14
+ /* Sekundærtittel H2 */
15
+ --desktop-h2-title2: 600 2rem/120% 'Source Sans Pro';
16
+
17
+ /* Tertiærtittel H3 */
18
+ --desktop-h3-title3: 600 1.625rem/120% 'Source Sans Pro';
19
+ --desktop-h4-title4: 600 1.375rem/130% 'Source Sans Pro';
20
+ --desktop-h5-title5: 700 1.125rem/140% 'Source Sans Pro';
21
+ --desktop-preamble: 400 1.5rem/130% 'Source Sans Pro';
22
+ --desktop-legend: 600 1.5rem/130% 'Source Sans Pro';
23
+ --desktop-label: 600 1.25rem/130% 'Source Sans Pro';
24
+ --desktop-body: 400 1.25rem/150% 'Source Sans Pro';
25
+
26
+ /* Display of condensed textual data, such as metadata or information that is useful, but perhaps not essential for the use of a service. */
27
+ --desktop-compact-data: 400 1.125rem/140% 'Source Sans Pro';
28
+
29
+ /* Tekst i tabellceller. Mer kompakt enn brødtekst (body) */
30
+ --desktop-tablecell: 400 1.125rem/130% 'Source Sans Pro';
31
+ --desktop-body-strong: 600 1.25rem/150% 'Source Sans Pro';
32
+
33
+ /* Text inside input-fields, textarea fields and numeric steppers, etc. Not to be used as the Label for Radiogroup or Checkbox - use Label. */
34
+ --desktop-form-input: 400 1.25rem/140% 'Source Sans Pro';
35
+
36
+ /* Bildetekst - plasseres nedenfor bilde eller figur */
37
+ --desktop-image-caption: 400 1rem/150% 'Source Sans Pro';
38
+
39
+ /* Supply copyright information for images */
40
+ --desktop-image-credit: 400 0.75rem/130% 'Source Sans Pro';
41
+
42
+ /* Vis status/tidskoder - lav linjehøyde for kompakt visning */
43
+ --desktop-status-time-stamp-time: 400 1.125rem/110% 'Source Sans Pro';
44
+
45
+ /* Hovedtittel H1 */
46
+ --mobile-h1-title1: 600 2rem/120% 'Source Sans Pro';
47
+
48
+ /* Sekundærtittel H2 */
49
+ --mobile-h2-title2: 600 1.625rem/120% 'Source Sans Pro';
50
+
51
+ /* Tertiærtittel H3 */
52
+ --mobile-h3-title3: 600 1.375rem/136% 'Source Sans Pro';
53
+ --mobile-h4-title4: 600 1.25rem/130% 'Source Sans Pro';
54
+ --mobile-preamble: 400 1.25rem/130% 'Source Sans Pro';
55
+ --mobile-legend: 600 1.125rem/130% 'Source Sans Pro';
56
+ --mobile-label: 600 1.125rem/120% 'Source Sans Pro';
57
+ --mobile-body: 400 1.125rem/150% 'Source Sans Pro';
58
+
59
+ /* Tekst i tabellceller. Mer kompakt enn brødtekst (body) */
60
+ --mobile-tablecell: 400 1.125rem/128% 'Source Sans Pro';
61
+
62
+ /* Text in Input and Textarea - widgets */
63
+ --mobile-form-input: 400 1.125rem/150% 'Source Sans Pro';
64
+ --mobile-image-caption: 400 1rem/150% 'Source Sans Pro';
65
+ --mobile-image-credit: 400 0.75rem/133% 'Source Sans Pro';
66
+
67
+ /* Vis status/tidskoder - lav linjehøyde for kompakt visning */
68
+ --mobile-status-time-stamp-time: 400 1rem/110% 'Source Sans Pro';
69
+ --mobile-h5-title5: 700 1rem/140% 'Source Sans Pro';
70
+ --desktop-h6-title6: 600 1.125rem/140% 'Source Sans Pro';
71
+ --desktop-label-subdued: 400 1.25rem/130% 'Source Sans Pro';
72
+ --desktop-sublabel: 600 1.125rem/130% 'Source Sans 3';
73
+ --desktop-sublabel-subdued: 400 1.125rem/130% 'Source Sans 3';
74
+ --mobile-h6-title6: 600 1rem/140% 'Source Sans Pro';
75
+ --mobile-label-subdued: 400 1.125rem/120% 'Source Sans Pro';
76
+ --mobile-sublabel: 600 1rem/120% 'Source Sans 3';
77
+
78
+ /* <label> */
79
+ --mobile-sublabel-subdued: 400 1rem/120% 'Source Sans 3';
80
+ --mobile-body-strong: 600 1.125rem/150% 'Source Sans Pro';
81
+ --mobile-compact-data: 400 1rem/150% 'Source Sans Pro';
82
+
83
+ /* Name-value pairs as rendered by an HTML <DT>-tag */
84
+ --desktop-definitionlist-type: 600 1.25rem/130% 'Source Sans Pro';
85
+
86
+ /* Data-value in Name-Value-pairs as rendered by a <DD>-tag (definition-data) */
87
+ --desktop-definition-list-data: 400 1.25rem/130% 'Source Sans Pro';
88
+
89
+ /* Use for inherent "chunking" of text in hmtl lists <LI>, ie. bullet-lists and ordered lists. */
90
+ --desktop-textlist: 400 1.25rem/130% 'Source Sans Pro';
91
+
92
+ /* Use for the Name part in name-value pairs, the equivalent of html <DT> */
93
+ --mobile-definitionlist-type: 600 1.125rem/120% 'Source Sans Pro';
94
+ --mobile-definitionlist-data: 400 1.125rem/120% 'Source Sans Pro';
95
+
96
+ /* Renders clumping in ordinary clumps */
97
+ --mobile-textlist: 400 1.125rem/120% 'Source Sans Pro';
98
+
99
+ /* For use as body text in smaller help components as HelpExpander (detail panel), HelpBubble and HelpTooltip */
100
+ --desktop-help-text: 400 1.125rem/140% 'Source Sans Pro';
101
+
102
+ /* For use in Help trigger components */
103
+ --desktop-help-trigger-text: 600 1.125rem/130% 'Source Sans 3';
104
+
105
+ /* For use as body text in smaller help components as HelpExpander (detail panel), HelpBubble and HelpTooltip */
106
+ --mobile-help-text: 400 1rem/150% 'Source Sans Pro';
107
+
108
+ /* For use in Help trigger components */
109
+ --mobile-help-trigger-text: 600 1rem/120% 'Source Sans 3';
110
+ }