@equinor/eds-tokens 1.0.0 → 1.1.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 (50) hide show
  1. package/README.md +117 -17
  2. package/build/css/color/color-scheme/color-scheme.css +21 -21
  3. package/build/css/color/color-scheme/dark-color-scheme-trimmed.css +2 -2
  4. package/build/css/color/color-scheme/dark-semantic-trimmed.css +96 -0
  5. package/build/css/color/color-scheme/light-color-scheme-trimmed.css +20 -20
  6. package/build/css/color/color-scheme/light-semantic-trimmed.css +96 -0
  7. package/build/css/variables.css +21 -21
  8. package/build/css/variables.min.css +1 -1
  9. package/build/js/color/color-scheme/dark-color-scheme.js +2 -2
  10. package/build/js/color/color-scheme/dark-semantic.d.ts +118 -0
  11. package/build/js/color/color-scheme/dark-semantic.js +94 -0
  12. package/build/js/color/color-scheme/light-color-scheme.js +20 -20
  13. package/build/js/color/color-scheme/light-semantic.d.ts +118 -0
  14. package/build/js/color/color-scheme/light-semantic.js +94 -0
  15. package/build/js/color/dynamic/semantic-accent.js +3 -3
  16. package/build/js/color/dynamic/semantic-danger.js +4 -4
  17. package/build/js/color/dynamic/semantic-info.js +3 -3
  18. package/build/js/color/dynamic/semantic-neutral.js +3 -3
  19. package/build/js/color/dynamic/semantic-success.js +3 -3
  20. package/build/js/color/dynamic/semantic-warning.js +3 -3
  21. package/build/js/color/static/semantic.js +19 -19
  22. package/build/json/color/color-scheme/flat/dark-color-scheme.json +2 -2
  23. package/build/json/color/color-scheme/flat/dark-semantic.json +92 -0
  24. package/build/json/color/color-scheme/flat/light-color-scheme.json +20 -20
  25. package/build/json/color/color-scheme/flat/light-semantic.json +92 -0
  26. package/build/json/color/color-scheme/nested/dark-color-scheme.json +2 -2
  27. package/build/json/color/color-scheme/nested/dark-semantic.json +158 -0
  28. package/build/json/color/color-scheme/nested/light-color-scheme.json +20 -20
  29. package/build/json/color/color-scheme/nested/light-semantic.json +158 -0
  30. package/build/json/color/dynamic/flat/semantic-accent.json +3 -3
  31. package/build/json/color/dynamic/flat/semantic-danger.json +4 -4
  32. package/build/json/color/dynamic/flat/semantic-info.json +3 -3
  33. package/build/json/color/dynamic/flat/semantic-neutral.json +3 -3
  34. package/build/json/color/dynamic/flat/semantic-success.json +3 -3
  35. package/build/json/color/dynamic/flat/semantic-warning.json +3 -3
  36. package/build/json/color/dynamic/nested/semantic-accent.json +3 -3
  37. package/build/json/color/dynamic/nested/semantic-danger.json +4 -4
  38. package/build/json/color/dynamic/nested/semantic-info.json +3 -3
  39. package/build/json/color/dynamic/nested/semantic-neutral.json +3 -3
  40. package/build/json/color/dynamic/nested/semantic-success.json +3 -3
  41. package/build/json/color/dynamic/nested/semantic-warning.json +3 -3
  42. package/build/json/color/static/flat/semantic.json +19 -19
  43. package/build/json/color/static/nested/semantic.json +19 -19
  44. package/package.json +4 -14
  45. package/build/css/index-variables-dynamic.css +0 -6
  46. package/build/css/index-variables-static.css +0 -6
  47. package/build/css/variables-dynamic.css +0 -536
  48. package/build/css/variables-dynamic.min.css +0 -1
  49. package/build/css/variables-static.css +0 -518
  50. package/build/css/variables-static.min.css +0 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @equinor/eds-tokens
2
2
 
3
- [Design tokens] used in the Equinor Design System (EDS), such as colours, spacings and typography.
3
+ [Design tokens] used in the <abbr title="Equinor Design System">EDS</abbr>, including colors, spacing, typography, and more. These tokens are synchronized with Figma variables and provide a single source of truth for design decisions across the design system.
4
4
 
5
5
  ## Installation
6
6
 
@@ -10,28 +10,128 @@ pnpm add @equinor/eds-tokens
10
10
 
11
11
  ## Usage
12
12
 
13
- ```js
14
- import { tokens } from '@equinor/eds-tokens'
13
+ The package provides two token systems:
14
+
15
+ * **CSS Variables (Recommended)** -- Modern, theme-aware design tokens synced from Figma
16
+ * **Legacy Tokens** -- Original token format, still supported for backward compatibility
17
+
18
+ ---
19
+
20
+ ## CSS Variables (Recommended)
21
+
22
+ The new token system uses CSS custom properties that automatically adapt to light and dark color schemes using the modern `light-dark()` function. These tokens are directly synced from Figma variables.
23
+
24
+ ### Using CSS Variables in CSS
25
+
26
+ Import the variables stylesheet:
27
+
28
+ ```css
29
+ @import '@equinor/eds-tokens/css/variables';
30
+ ```
31
+
32
+ Then use the CSS custom properties in your styles:
33
+
34
+ ```css
35
+ .my-component {
36
+ background-color: var(--eds-color-bg-neutral-surface);
37
+ color: var(--eds-color-text-neutral-strong);
38
+ border: 1px solid var(--eds-color-border-neutral-subtle);
39
+ padding: var(--eds-spacing-inline-md);
40
+ border-radius: var(--eds-spacing-border-radius-rounded);
41
+ }
15
42
  ```
16
43
 
17
- CSS custom properties are also available:
44
+ The variables automatically respond to color scheme changes:
18
45
 
19
46
  ```css
20
- @import '@equinor/eds-tokens/css/variables-static.css'; /* or variables-dynamic.css */
47
+ /* Applies to elements with data-color-scheme attribute */
48
+ [data-color-scheme="dark"] {
49
+ /* Variables automatically use dark mode values */
50
+ }
51
+
52
+ /* Or use the native prefers-color-scheme */
53
+ @media (prefers-color-scheme: dark) {
54
+ /* Variables automatically use dark mode values */
55
+ }
56
+ ```
57
+
58
+ ### Using variables in JavaScript/TypeScript
59
+
60
+ For scenarios where you need colour variables in JavaScript:
61
+
62
+ #### Color Scheme Tokens
63
+
64
+ Import the light and dark semantic color tokens:
65
+
66
+ ```typescript
67
+ // Import semantic color scheme tokens
68
+ import * as lightSemantic from '@equinor/eds-tokens/js/color/color-scheme/light-semantic'
69
+ import * as darkSemantic from '@equinor/eds-tokens/js/color/color-scheme/dark-semantic'
70
+
71
+ // Use semantic tokens with light/dark values
72
+ const lightSurface = lightSemantic.BG_NEUTRAL_SURFACE
73
+ const darkSurface = darkSemantic.BG_NEUTRAL_SURFACE
74
+
75
+ const lightAccent = lightSemantic.BG_ACCENT_FILL_EMPHASIS_DEFAULT
76
+ const darkAccent = darkSemantic.BG_ACCENT_FILL_EMPHASIS_DEFAULT
77
+
78
+ const lightBorder = lightSemantic.BORDER_INFO_MEDIUM
79
+ const darkBorder = darkSemantic.BORDER_INFO_MEDIUM
80
+ ```
81
+
82
+ #### Spacing Tokens
83
+
84
+ ```typescript
85
+ // Import spacing values for different density modes
86
+ import * as comfortableSpacing from '@equinor/eds-tokens/js/spacing/comfortable'
87
+ import * as spaciousSpacing from '@equinor/eds-tokens/js/spacing/spacious'
88
+
89
+ // Use the values (numbers in pixels)
90
+ const padding = comfortableSpacing.SPACING_INLINE_MD
91
+ const borderRadius = comfortableSpacing.SPACING_BORDER_RADIUS_ROUNDED
92
+ ```
93
+
94
+ ### Available Token Categories
95
+
96
+ * **Colors** -- Semantic color tokens for backgrounds, text, borders, and states
97
+ * **Spacing** -- Layout spacing including inline, stack, inset, and border radius
98
+ * **Typography** -- Font sizes, line heights, and font families (requires font files)
99
+
100
+ ### Spacing Density Modes
101
+
102
+ The spacing system supports different density modes:
103
+
104
+ * `comfortable` -- Default density for most applications
105
+ * `spacious` -- Increased spacing for better readability
106
+
107
+ ---
108
+
109
+ ## Legacy Tokens (Backward Compatible)
110
+
111
+ The original token format is still available for existing applications. These tokens use a structured JavaScript object format.
112
+
113
+ ### Using Legacy Tokens in JavaScript/TypeScript
114
+
115
+ ```javascript
116
+ import { tokens } from '@equinor/eds-tokens'
117
+
118
+ // Access token values
119
+ const primaryColor = tokens.colors.interactive.primary__resting.rgba
120
+ const spacing = tokens.spacings.comfortable.medium
121
+ const typography = tokens.typography.heading.h1
21
122
  ```
22
123
 
23
- `variables-static.css` exposes tokens with fixed values, while
24
- `variables-dynamic.css` includes dynamic semantic color tokens.
124
+ ### Legacy Token Categories
25
125
 
26
- ## Tokens
126
+ * Clickbounds
127
+ * Colors
128
+ * Elevation
129
+ * Shape
130
+ * Spacing
131
+ * Interaction states
132
+ * Typography (`ot`, `woff` or `woff2` font required)
27
133
 
28
- - Clickbounds
29
- - Colors
30
- - Elevation
31
- - Shape
32
- - Spacing
33
- - Interaction states
34
- - Typography (`ot`, `woff` or `woff2` font required)
134
+ > We recommend migrating to CSS Variables for new projects to benefit from automatic theme support and better performance.
35
135
 
36
136
  [design tokens]: https://css-tricks.com/what-are-design-tokens/
37
137
 
@@ -124,11 +224,11 @@ pnpm run update-figma
124
224
 
125
225
  ### How the variables are setup with references between collections
126
226
 
127
- The semantic variable references the first segment (collection) in the variable. For example, the first segment is “appearance” for the action variables. Variables defined in appearance point to the next segment, which for action variables would be prominence. In the prominence collection, we define a variable for each of the appearance modes so that these are represented in the context of each prominence mode. The variables in the “prominence” collection point to variables in the state collection, and again, we represent all the prominence modes as new variables in the state collection. For action variables, the journey ends here, and the variables in the state collection point to the light/dark color scheme variables in the color scheme collection.
227
+ The semantic variable references the first segment (collection) in the variable. For example, the first segment is “appearance” for the action variables. Variables defined in appearance point to the next segment, which for action variables would be prominence. In the prominence collection, we define a variable for each of the appearance modes so that these are represented in the context of each prominence mode. The variables in the “prominence” collection point to variables in the state collection, and again, we represent all the prominence modes as new variables in the state collection. For action variables, the journey ends here, and the variables in the state collection point to the light/dark color scheme variables in the color scheme collection.
128
228
 
129
229
  ### Tokens in code
130
230
 
131
- The color scheme collection variables support all the combinations of modes in the different collections and are used to generate tokens in code. All the combinations of modes in different collections must be provided here so that the code syntax matches tokens in the code.
231
+ The color scheme collection variables support all the combinations of modes in the different collections and are used to generate tokens in code. All the combinations of modes in different collections must be provided here so that the code syntax matches tokens in the code.
132
232
 
133
233
 
134
234
  ### How to setup variable collections in Figma
@@ -16,12 +16,12 @@
16
16
  --eds-color-bg-backdrop: light-dark(#aeaeae, #738696);
17
17
  --eds-color-bg-input: light-dark(#f5f5f5, #0b0b0b);
18
18
  --eds-color-border-focus: light-dark(#6fb6e9, #2d8bc5);
19
- --eds-color-text-link: light-dark(#121e27, #ecffff);
19
+ --eds-color-text-link: light-dark(#0070a9, #5abbfb);
20
20
  --eds-color-accent-1: light-dark(#eaf8fa, #0a0b0b);
21
21
  --eds-color-accent-2: light-dark(#f6ffff, #1e2323);
22
- --eds-color-accent-3: light-dark(#c5e1e4, #3c6266);
23
- --eds-color-accent-4: light-dark(#b1d6da, #3e7378);
24
- --eds-color-accent-5: light-dark(#97c8cd, #41878e);
22
+ --eds-color-accent-3: light-dark(#cfe7e9, #3c6266);
23
+ --eds-color-accent-4: light-dark(#bbdbdf, #3e7378);
24
+ --eds-color-accent-5: light-dark(#a2cdd2, #41878e);
25
25
  --eds-color-accent-6: light-dark(#bbdbdf, #3c6266);
26
26
  --eds-color-accent-7: light-dark(#7cbac1, #439199);
27
27
  --eds-color-accent-8: light-dark(#21767e, #6ec0c9);
@@ -34,9 +34,9 @@
34
34
  --eds-color-accent-15: light-dark(#ffffff, #030303);
35
35
  --eds-color-neutral-1: light-dark(#f5f5f5, #0b0b0b);
36
36
  --eds-color-neutral-2: light-dark(#ffffff, #202223);
37
- --eds-color-neutral-3: light-dark(#dbdbdb, #525c65);
38
- --eds-color-neutral-4: light-dark(#cecece, #5d6b76);
39
- --eds-color-neutral-5: light-dark(#bebebe, #6b7d8b);
37
+ --eds-color-neutral-3: light-dark(#e1e1e1, #525c65);
38
+ --eds-color-neutral-4: light-dark(#d4d4d4, #5d6b76);
39
+ --eds-color-neutral-5: light-dark(#c4c4c4, #6b7d8b);
40
40
  --eds-color-neutral-6: light-dark(#d4d4d4, #525c65);
41
41
  --eds-color-neutral-7: light-dark(#aeaeae, #738696);
42
42
  --eds-color-neutral-8: light-dark(#696969, #9fb4c6);
@@ -49,9 +49,9 @@
49
49
  --eds-color-neutral-15: light-dark(#ffffff, #030303);
50
50
  --eds-color-info-1: light-dark(#e7f8ff, #0a0b0c);
51
51
  --eds-color-info-2: light-dark(#f4ffff, #1d2226);
52
- --eds-color-info-3: light-dark(#c0e0f8, #33607e);
53
- --eds-color-info-4: light-dark(#aad4f3, #316f98);
54
- --eds-color-info-5: light-dark(#8dc5ee, #2e82b7);
52
+ --eds-color-info-3: light-dark(#cae6fa, #33607e);
53
+ --eds-color-info-4: light-dark(#b5daf5, #316f98);
54
+ --eds-color-info-5: light-dark(#99cbf0, #2e82b7);
55
55
  --eds-color-info-6: light-dark(#b5daf5, #33607e);
56
56
  --eds-color-info-7: light-dark(#6fb6e9, #2d8bc5);
57
57
  --eds-color-info-8: light-dark(#0070a9, #5abbfb);
@@ -64,11 +64,11 @@
64
64
  --eds-color-info-15: light-dark(#ffffff, #030304);
65
65
  --eds-color-success-1: light-dark(#eafbe8, #0a0c0a);
66
66
  --eds-color-success-2: light-dark(#f6fff5, #1e231e);
67
- --eds-color-success-3: light-dark(#c5e5c2, #3c673a);
68
- --eds-color-success-4: light-dark(#b1dbae, #3e793c);
69
- --eds-color-success-5: light-dark(#97cf93, #418e3e);
67
+ --eds-color-success-3: light-dark(#cfeacc, #3c673a);
68
+ --eds-color-success-4: light-dark(#bbe0b8, #3e793c);
69
+ --eds-color-success-5: light-dark(#a2d49e, #418e3e);
70
70
  --eds-color-success-6: light-dark(#bbe0b8, #3c673a);
71
- --eds-color-success-7: light-dark(#7cc278, #439941);
71
+ --eds-color-success-7: light-dark(#7cc278, #449941);
72
72
  --eds-color-success-8: light-dark(#227e22, #6eca6a);
73
73
  --eds-color-success-9: light-dark(#207720, #8cdb87);
74
74
  --eds-color-success-10: light-dark(#20621f, #aceba8);
@@ -79,9 +79,9 @@
79
79
  --eds-color-success-15: light-dark(#ffffff, #030303);
80
80
  --eds-color-warning-1: light-dark(#fff1e2, #0c0b0a);
81
81
  --eds-color-warning-2: light-dark(#fffcf0, #27201b);
82
- --eds-color-warning-3: light-dark(#f9d2b6, #7e4e25);
83
- --eds-color-warning-4: light-dark(#f4c29d, #97571b);
84
- --eds-color-warning-5: light-dark(#eeae7c, #b46201);
82
+ --eds-color-warning-3: light-dark(#fbdac1, #7e4e25);
83
+ --eds-color-warning-4: light-dark(#f6caaa, #97571b);
84
+ --eds-color-warning-5: light-dark(#f0b689, #b46201);
85
85
  --eds-color-warning-6: light-dark(#f6caaa, #7e4e25);
86
86
  --eds-color-warning-7: light-dark(#e89959, #c36800);
87
87
  --eds-color-warning-8: light-dark(#a34e00, #f99539);
@@ -94,11 +94,11 @@
94
94
  --eds-color-warning-15: light-dark(#ffffff, #040303);
95
95
  --eds-color-danger-1: light-dark(#ffecea, #0d0a0a);
96
96
  --eds-color-danger-2: light-dark(#fff9f8, #2a1e1e);
97
- --eds-color-danger-3: light-dark(#ffc6c4, #923a3c);
98
- --eds-color-danger-4: light-dark(#ffb2b0, #b03940);
99
- --eds-color-danger-5: light-dark(#ff9897, #d43745);
97
+ --eds-color-danger-3: light-dark(#ffd0ce, #923a3c);
98
+ --eds-color-danger-4: light-dark(#ffbcba, #b03940);
99
+ --eds-color-danger-5: light-dark(#ffa3a1, #d43745);
100
100
  --eds-color-danger-6: light-dark(#ffbcba, #923a3c);
101
- --eds-color-danger-7: light-dark(#ff7a7d, #e53748);
101
+ --eds-color-danger-7: light-dark(#ff7a7c, #e53748);
102
102
  --eds-color-danger-8: light-dark(#c6002d, #ff8082);
103
103
  --eds-color-danger-9: light-dark(#bc002a, #ffa3a1);
104
104
  --eds-color-danger-10: light-dark(#9a1026, #ffc1bf);
@@ -7,7 +7,7 @@
7
7
  --eds-color-bg-backdrop: #738696;
8
8
  --eds-color-bg-input: #0b0b0b;
9
9
  --eds-color-border-focus: #2d8bc5;
10
- --eds-color-text-link: #ecffff;
10
+ --eds-color-text-link: #5abbfb;
11
11
  --eds-color-accent-1: #0a0b0b;
12
12
  --eds-color-accent-2: #1e2323;
13
13
  --eds-color-accent-3: #3c6266;
@@ -59,7 +59,7 @@
59
59
  --eds-color-success-4: #3e793c;
60
60
  --eds-color-success-5: #418e3e;
61
61
  --eds-color-success-6: #3c673a;
62
- --eds-color-success-7: #439941;
62
+ --eds-color-success-7: #449941;
63
63
  --eds-color-success-8: #6eca6a;
64
64
  --eds-color-success-9: #8cdb87;
65
65
  --eds-color-success-10: #aceba8;
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ [data-color-scheme="dark"] {
6
+ --eds-color-bg-neutral-canvas: #0b0b0b;
7
+ --eds-color-bg-neutral-surface: #202223;
8
+ --eds-color-bg-neutral-fill-muted-default: #525c65;
9
+ --eds-color-bg-neutral-fill-muted-hover: #5d6b76;
10
+ --eds-color-bg-neutral-fill-muted-active: #6b7d8b;
11
+ --eds-color-bg-neutral-fill-emphasis-default: #b4c7d7;
12
+ --eds-color-bg-neutral-fill-emphasis-hover: #cadae7;
13
+ --eds-color-bg-neutral-fill-emphasis-active: #deeaf4;
14
+ --eds-color-bg-accent-canvas: #0a0b0b;
15
+ --eds-color-bg-accent-surface: #1e2323;
16
+ --eds-color-bg-accent-fill-muted-default: #3c6266;
17
+ --eds-color-bg-accent-fill-muted-hover: #3e7378;
18
+ --eds-color-bg-accent-fill-muted-active: #41878e;
19
+ --eds-color-bg-accent-fill-emphasis-default: #8cd2da;
20
+ --eds-color-bg-accent-fill-emphasis-hover: #ace3e9;
21
+ --eds-color-bg-accent-fill-emphasis-active: #c7f1f6;
22
+ --eds-color-bg-success-canvas: #0a0c0a;
23
+ --eds-color-bg-success-surface: #1e231e;
24
+ --eds-color-bg-success-fill-muted-default: #3c673a;
25
+ --eds-color-bg-success-fill-muted-hover: #3e793c;
26
+ --eds-color-bg-success-fill-muted-active: #418e3e;
27
+ --eds-color-bg-success-fill-emphasis-default: #8cdb87;
28
+ --eds-color-bg-success-fill-emphasis-hover: #aceba8;
29
+ --eds-color-bg-success-fill-emphasis-active: #c7f7c3;
30
+ --eds-color-bg-info-canvas: #0a0b0c;
31
+ --eds-color-bg-info-surface: #1d2226;
32
+ --eds-color-bg-info-fill-muted-default: #33607e;
33
+ --eds-color-bg-info-fill-muted-hover: #316f98;
34
+ --eds-color-bg-info-fill-muted-active: #2e82b7;
35
+ --eds-color-bg-info-fill-emphasis-default: #7dceff;
36
+ --eds-color-bg-info-fill-emphasis-hover: #a2e0ff;
37
+ --eds-color-bg-info-fill-emphasis-active: #c4eeff;
38
+ --eds-color-bg-warning-canvas: #0c0b0a;
39
+ --eds-color-bg-warning-surface: #27201b;
40
+ --eds-color-bg-warning-fill-muted-default: #7e4e25;
41
+ --eds-color-bg-warning-fill-muted-hover: #97571b;
42
+ --eds-color-bg-warning-fill-muted-active: #b46201;
43
+ --eds-color-bg-warning-fill-emphasis-default: #ffad63;
44
+ --eds-color-bg-warning-fill-emphasis-hover: #ffc791;
45
+ --eds-color-bg-warning-fill-emphasis-active: #ffddb9;
46
+ --eds-color-bg-danger-canvas: #0d0a0a;
47
+ --eds-color-bg-danger-surface: #2a1e1e;
48
+ --eds-color-bg-danger-fill-muted-default: #923a3c;
49
+ --eds-color-bg-danger-fill-muted-hover: #b03940;
50
+ --eds-color-bg-danger-fill-muted-active: #d43745;
51
+ --eds-color-bg-danger-fill-emphasis-default: #ffa3a1;
52
+ --eds-color-bg-danger-fill-emphasis-hover: #ffc1bf;
53
+ --eds-color-bg-danger-fill-emphasis-active: #ffd9d7;
54
+ --eds-color-border-neutral-subtle: #525c65;
55
+ --eds-color-border-neutral-medium: #738696;
56
+ --eds-color-border-neutral-strong: #9fb4c6;
57
+ --eds-color-border-accent-subtle: #3c6266;
58
+ --eds-color-border-accent-medium: #439199;
59
+ --eds-color-border-accent-strong: #6ec0c9;
60
+ --eds-color-border-success-subtle: #3c673a;
61
+ --eds-color-border-success-medium: #449941;
62
+ --eds-color-border-success-strong: #6eca6a;
63
+ --eds-color-border-info-subtle: #33607e;
64
+ --eds-color-border-info-medium: #2d8bc5;
65
+ --eds-color-border-info-strong: #5abbfb;
66
+ --eds-color-border-warning-subtle: #7e4e25;
67
+ --eds-color-border-warning-medium: #c36800;
68
+ --eds-color-border-warning-strong: #f99539;
69
+ --eds-color-border-danger-subtle: #923a3c;
70
+ --eds-color-border-danger-medium: #e53748;
71
+ --eds-color-border-danger-strong: #ff8082;
72
+ --eds-color-text-neutral-subtle: #d6e3ee; /** Used for text and icons */
73
+ --eds-color-text-neutral-strong: #f5fdff; /** Used for text and icons */
74
+ --eds-color-text-neutral-subtle-on-emphasis: #333639; /** Text or icons against colored backgrounds */
75
+ --eds-color-text-neutral-strong-on-emphasis: #030303; /** Text or icons against colored backgrounds */
76
+ --eds-color-text-accent-subtle: #bcebf1; /** Used for text and icons */
77
+ --eds-color-text-accent-strong: #e6ffff; /** Used for text and icons */
78
+ --eds-color-text-accent-subtle-on-emphasis: #2c3839; /** Text or icons against colored backgrounds */
79
+ --eds-color-text-accent-strong-on-emphasis: #030303; /** Text or icons against colored backgrounds */
80
+ --eds-color-text-success-subtle: #bcf2b8; /** Used for text and icons */
81
+ --eds-color-text-success-strong: #e6ffe3; /** Used for text and icons */
82
+ --eds-color-text-success-subtle-on-emphasis: #2c392b; /** Text or icons against colored backgrounds */
83
+ --eds-color-text-success-strong-on-emphasis: #030303; /** Text or icons against colored backgrounds */
84
+ --eds-color-text-info-subtle: #b7e8ff; /** Used for text and icons */
85
+ --eds-color-text-info-strong: #ecffff; /** Used for text and icons */
86
+ --eds-color-text-info-subtle-on-emphasis: #2a3741; /** Text or icons against colored backgrounds */
87
+ --eds-color-text-info-strong-on-emphasis: #030304; /** Text or icons against colored backgrounds */
88
+ --eds-color-text-warning-subtle: #ffd4aa; /** Used for text and icons */
89
+ --eds-color-text-warning-strong: #fff7e6; /** Used for text and icons */
90
+ --eds-color-text-warning-subtle-on-emphasis: #413226; /** Text or icons against colored backgrounds */
91
+ --eds-color-text-warning-strong-on-emphasis: #040303; /** Text or icons against colored backgrounds */
92
+ --eds-color-text-danger-subtle: #ffd0ce; /** Used for text and icons */
93
+ --eds-color-text-danger-strong: #fff5f4; /** Used for text and icons */
94
+ --eds-color-text-danger-subtle-on-emphasis: #492d2c; /** Text or icons against colored backgrounds */
95
+ --eds-color-text-danger-strong-on-emphasis: #040303; /** Text or icons against colored backgrounds */
96
+ }
@@ -7,12 +7,12 @@
7
7
  --eds-color-bg-backdrop: #aeaeae;
8
8
  --eds-color-bg-input: #f5f5f5;
9
9
  --eds-color-border-focus: #6fb6e9;
10
- --eds-color-text-link: #121e27;
10
+ --eds-color-text-link: #0070a9;
11
11
  --eds-color-accent-1: #eaf8fa;
12
12
  --eds-color-accent-2: #f6ffff;
13
- --eds-color-accent-3: #c5e1e4;
14
- --eds-color-accent-4: #b1d6da;
15
- --eds-color-accent-5: #97c8cd;
13
+ --eds-color-accent-3: #cfe7e9;
14
+ --eds-color-accent-4: #bbdbdf;
15
+ --eds-color-accent-5: #a2cdd2;
16
16
  --eds-color-accent-6: #bbdbdf;
17
17
  --eds-color-accent-7: #7cbac1;
18
18
  --eds-color-accent-8: #21767e;
@@ -25,9 +25,9 @@
25
25
  --eds-color-accent-15: #ffffff;
26
26
  --eds-color-neutral-1: #f5f5f5;
27
27
  --eds-color-neutral-2: #ffffff;
28
- --eds-color-neutral-3: #dbdbdb;
29
- --eds-color-neutral-4: #cecece;
30
- --eds-color-neutral-5: #bebebe;
28
+ --eds-color-neutral-3: #e1e1e1;
29
+ --eds-color-neutral-4: #d4d4d4;
30
+ --eds-color-neutral-5: #c4c4c4;
31
31
  --eds-color-neutral-6: #d4d4d4;
32
32
  --eds-color-neutral-7: #aeaeae;
33
33
  --eds-color-neutral-8: #696969;
@@ -40,9 +40,9 @@
40
40
  --eds-color-neutral-15: #ffffff;
41
41
  --eds-color-info-1: #e7f8ff;
42
42
  --eds-color-info-2: #f4ffff;
43
- --eds-color-info-3: #c0e0f8;
44
- --eds-color-info-4: #aad4f3;
45
- --eds-color-info-5: #8dc5ee;
43
+ --eds-color-info-3: #cae6fa;
44
+ --eds-color-info-4: #b5daf5;
45
+ --eds-color-info-5: #99cbf0;
46
46
  --eds-color-info-6: #b5daf5;
47
47
  --eds-color-info-7: #6fb6e9;
48
48
  --eds-color-info-8: #0070a9;
@@ -55,9 +55,9 @@
55
55
  --eds-color-info-15: #ffffff;
56
56
  --eds-color-success-1: #eafbe8;
57
57
  --eds-color-success-2: #f6fff5;
58
- --eds-color-success-3: #c5e5c2;
59
- --eds-color-success-4: #b1dbae;
60
- --eds-color-success-5: #97cf93;
58
+ --eds-color-success-3: #cfeacc;
59
+ --eds-color-success-4: #bbe0b8;
60
+ --eds-color-success-5: #a2d49e;
61
61
  --eds-color-success-6: #bbe0b8;
62
62
  --eds-color-success-7: #7cc278;
63
63
  --eds-color-success-8: #227e22;
@@ -70,9 +70,9 @@
70
70
  --eds-color-success-15: #ffffff;
71
71
  --eds-color-warning-1: #fff1e2;
72
72
  --eds-color-warning-2: #fffcf0;
73
- --eds-color-warning-3: #f9d2b6;
74
- --eds-color-warning-4: #f4c29d;
75
- --eds-color-warning-5: #eeae7c;
73
+ --eds-color-warning-3: #fbdac1;
74
+ --eds-color-warning-4: #f6caaa;
75
+ --eds-color-warning-5: #f0b689;
76
76
  --eds-color-warning-6: #f6caaa;
77
77
  --eds-color-warning-7: #e89959;
78
78
  --eds-color-warning-8: #a34e00;
@@ -85,11 +85,11 @@
85
85
  --eds-color-warning-15: #ffffff;
86
86
  --eds-color-danger-1: #ffecea;
87
87
  --eds-color-danger-2: #fff9f8;
88
- --eds-color-danger-3: #ffc6c4;
89
- --eds-color-danger-4: #ffb2b0;
90
- --eds-color-danger-5: #ff9897;
88
+ --eds-color-danger-3: #ffd0ce;
89
+ --eds-color-danger-4: #ffbcba;
90
+ --eds-color-danger-5: #ffa3a1;
91
91
  --eds-color-danger-6: #ffbcba;
92
- --eds-color-danger-7: #ff7a7d;
92
+ --eds-color-danger-7: #ff7a7c;
93
93
  --eds-color-danger-8: #c6002d;
94
94
  --eds-color-danger-9: #bc002a;
95
95
  --eds-color-danger-10: #9a1026;
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ [data-color-scheme="light"] {
6
+ --eds-color-bg-neutral-canvas: #f5f5f5;
7
+ --eds-color-bg-neutral-surface: #ffffff;
8
+ --eds-color-bg-neutral-fill-muted-default: #e1e1e1;
9
+ --eds-color-bg-neutral-fill-muted-hover: #d4d4d4;
10
+ --eds-color-bg-neutral-fill-muted-active: #c4c4c4;
11
+ --eds-color-bg-neutral-fill-emphasis-default: #636363;
12
+ --eds-color-bg-neutral-fill-emphasis-hover: #525252;
13
+ --eds-color-bg-neutral-fill-emphasis-active: #4d4d4d;
14
+ --eds-color-bg-accent-canvas: #eaf8fa;
15
+ --eds-color-bg-accent-surface: #f6ffff;
16
+ --eds-color-bg-accent-fill-muted-default: #cfe7e9;
17
+ --eds-color-bg-accent-fill-muted-hover: #bbdbdf;
18
+ --eds-color-bg-accent-fill-muted-active: #a2cdd2;
19
+ --eds-color-bg-accent-fill-emphasis-default: #206f77;
20
+ --eds-color-bg-accent-fill-emphasis-hover: #205c62;
21
+ --eds-color-bg-accent-fill-emphasis-active: #20565c;
22
+ --eds-color-bg-success-canvas: #eafbe8;
23
+ --eds-color-bg-success-surface: #f6fff5;
24
+ --eds-color-bg-success-fill-muted-default: #cfeacc;
25
+ --eds-color-bg-success-fill-muted-hover: #bbe0b8;
26
+ --eds-color-bg-success-fill-muted-active: #a2d49e;
27
+ --eds-color-bg-success-fill-emphasis-default: #207720;
28
+ --eds-color-bg-success-fill-emphasis-hover: #20621f;
29
+ --eds-color-bg-success-fill-emphasis-active: #215c1f;
30
+ --eds-color-bg-info-canvas: #e7f8ff;
31
+ --eds-color-bg-info-surface: #f4ffff;
32
+ --eds-color-bg-info-fill-muted-default: #cae6fa;
33
+ --eds-color-bg-info-fill-muted-hover: #b5daf5;
34
+ --eds-color-bg-info-fill-muted-active: #99cbf0;
35
+ --eds-color-bg-info-fill-emphasis-default: #006aa0;
36
+ --eds-color-bg-info-fill-emphasis-hover: #085883;
37
+ --eds-color-bg-info-fill-emphasis-active: #0e5279;
38
+ --eds-color-bg-warning-canvas: #fff1e2;
39
+ --eds-color-bg-warning-surface: #fffcf0;
40
+ --eds-color-bg-warning-fill-muted-default: #fbdac1;
41
+ --eds-color-bg-warning-fill-muted-hover: #f6caaa;
42
+ --eds-color-bg-warning-fill-muted-active: #f0b689;
43
+ --eds-color-bg-warning-fill-emphasis-default: #9b4900;
44
+ --eds-color-bg-warning-fill-emphasis-hover: #813e00;
45
+ --eds-color-bg-warning-fill-emphasis-active: #773a00;
46
+ --eds-color-bg-danger-canvas: #ffecea;
47
+ --eds-color-bg-danger-surface: #fff9f8;
48
+ --eds-color-bg-danger-fill-muted-default: #ffd0ce;
49
+ --eds-color-bg-danger-fill-muted-hover: #ffbcba;
50
+ --eds-color-bg-danger-fill-muted-active: #ffa3a1;
51
+ --eds-color-bg-danger-fill-emphasis-default: #bc002a;
52
+ --eds-color-bg-danger-fill-emphasis-hover: #9a1026;
53
+ --eds-color-bg-danger-fill-emphasis-active: #8e1525;
54
+ --eds-color-border-neutral-subtle: #d4d4d4;
55
+ --eds-color-border-neutral-medium: #aeaeae;
56
+ --eds-color-border-neutral-strong: #696969;
57
+ --eds-color-border-accent-subtle: #bbdbdf;
58
+ --eds-color-border-accent-medium: #7cbac1;
59
+ --eds-color-border-accent-strong: #21767e;
60
+ --eds-color-border-success-subtle: #bbe0b8;
61
+ --eds-color-border-success-medium: #7cc278;
62
+ --eds-color-border-success-strong: #227e22;
63
+ --eds-color-border-info-subtle: #b5daf5;
64
+ --eds-color-border-info-medium: #6fb6e9;
65
+ --eds-color-border-info-strong: #0070a9;
66
+ --eds-color-border-warning-subtle: #f6caaa;
67
+ --eds-color-border-warning-medium: #e89959;
68
+ --eds-color-border-warning-strong: #a34e00;
69
+ --eds-color-border-danger-subtle: #ffbcba;
70
+ --eds-color-border-danger-medium: #ff7a7c;
71
+ --eds-color-border-danger-strong: #c6002d;
72
+ --eds-color-text-neutral-subtle: #585858; /** Used for text and icons */
73
+ --eds-color-text-neutral-strong: #1d1d1d; /** Used for text and icons */
74
+ --eds-color-text-neutral-subtle-on-emphasis: #dedede; /** Text or icons against colored backgrounds */
75
+ --eds-color-text-neutral-strong-on-emphasis: #ffffff; /** Text or icons against colored backgrounds */
76
+ --eds-color-text-accent-subtle: #1f6369; /** Used for text and icons */
77
+ --eds-color-text-accent-strong: #141f20; /** Used for text and icons */
78
+ --eds-color-text-accent-subtle-on-emphasis: #cae4e7; /** Text or icons against colored backgrounds */
79
+ --eds-color-text-accent-strong-on-emphasis: #ffffff; /** Text or icons against colored backgrounds */
80
+ --eds-color-text-success-subtle: #20691f; /** Used for text and icons */
81
+ --eds-color-text-success-strong: #142114; /** Used for text and icons */
82
+ --eds-color-text-success-subtle-on-emphasis: #cae8c7; /** Text or icons against colored backgrounds */
83
+ --eds-color-text-success-strong-on-emphasis: #ffffff; /** Text or icons against colored backgrounds */
84
+ --eds-color-text-info-subtle: #015e8d; /** Used for text and icons */
85
+ --eds-color-text-info-strong: #121e27; /** Used for text and icons */
86
+ --eds-color-text-info-subtle-on-emphasis: #c5e3f9; /** Text or icons against colored backgrounds */
87
+ --eds-color-text-info-strong-on-emphasis: #ffffff; /** Text or icons against colored backgrounds */
88
+ --eds-color-text-warning-subtle: #8a4100; /** Used for text and icons */
89
+ --eds-color-text-warning-strong: #27190e; /** Used for text and icons */
90
+ --eds-color-text-warning-subtle-on-emphasis: #fad6bc; /** Text or icons against colored backgrounds */
91
+ --eds-color-text-warning-strong-on-emphasis: #ffffff; /** Text or icons against colored backgrounds */
92
+ --eds-color-text-danger-subtle: #a50827; /** Used for text and icons */
93
+ --eds-color-text-danger-strong: #2e1414; /** Used for text and icons */
94
+ --eds-color-text-danger-subtle-on-emphasis: #ffcbc9; /** Text or icons against colored backgrounds */
95
+ --eds-color-text-danger-strong-on-emphasis: #ffffff; /** Text or icons against colored backgrounds */
96
+ }
@@ -11,12 +11,12 @@
11
11
  --eds-color-bg-backdrop: light-dark(#aeaeae, #738696);
12
12
  --eds-color-bg-input: light-dark(#f5f5f5, #0b0b0b);
13
13
  --eds-color-border-focus: light-dark(#6fb6e9, #2d8bc5);
14
- --eds-color-text-link: light-dark(#121e27, #ecffff);
14
+ --eds-color-text-link: light-dark(#0070a9, #5abbfb);
15
15
  --eds-color-accent-1: light-dark(#eaf8fa, #0a0b0b);
16
16
  --eds-color-accent-2: light-dark(#f6ffff, #1e2323);
17
- --eds-color-accent-3: light-dark(#c5e1e4, #3c6266);
18
- --eds-color-accent-4: light-dark(#b1d6da, #3e7378);
19
- --eds-color-accent-5: light-dark(#97c8cd, #41878e);
17
+ --eds-color-accent-3: light-dark(#cfe7e9, #3c6266);
18
+ --eds-color-accent-4: light-dark(#bbdbdf, #3e7378);
19
+ --eds-color-accent-5: light-dark(#a2cdd2, #41878e);
20
20
  --eds-color-accent-6: light-dark(#bbdbdf, #3c6266);
21
21
  --eds-color-accent-7: light-dark(#7cbac1, #439199);
22
22
  --eds-color-accent-8: light-dark(#21767e, #6ec0c9);
@@ -29,9 +29,9 @@
29
29
  --eds-color-accent-15: light-dark(#fff, #030303);
30
30
  --eds-color-neutral-1: light-dark(#f5f5f5, #0b0b0b);
31
31
  --eds-color-neutral-2: light-dark(#fff, #202223);
32
- --eds-color-neutral-3: light-dark(#dbdbdb, #525c65);
33
- --eds-color-neutral-4: light-dark(#cecece, #5d6b76);
34
- --eds-color-neutral-5: light-dark(#bebebe, #6b7d8b);
32
+ --eds-color-neutral-3: light-dark(#e1e1e1, #525c65);
33
+ --eds-color-neutral-4: light-dark(#d4d4d4, #5d6b76);
34
+ --eds-color-neutral-5: light-dark(#c4c4c4, #6b7d8b);
35
35
  --eds-color-neutral-6: light-dark(#d4d4d4, #525c65);
36
36
  --eds-color-neutral-7: light-dark(#aeaeae, #738696);
37
37
  --eds-color-neutral-8: light-dark(#696969, #9fb4c6);
@@ -44,9 +44,9 @@
44
44
  --eds-color-neutral-15: light-dark(#fff, #030303);
45
45
  --eds-color-info-1: light-dark(#e7f8ff, #0a0b0c);
46
46
  --eds-color-info-2: light-dark(#f4ffff, #1d2226);
47
- --eds-color-info-3: light-dark(#c0e0f8, #33607e);
48
- --eds-color-info-4: light-dark(#aad4f3, #316f98);
49
- --eds-color-info-5: light-dark(#8dc5ee, #2e82b7);
47
+ --eds-color-info-3: light-dark(#cae6fa, #33607e);
48
+ --eds-color-info-4: light-dark(#b5daf5, #316f98);
49
+ --eds-color-info-5: light-dark(#99cbf0, #2e82b7);
50
50
  --eds-color-info-6: light-dark(#b5daf5, #33607e);
51
51
  --eds-color-info-7: light-dark(#6fb6e9, #2d8bc5);
52
52
  --eds-color-info-8: light-dark(#0070a9, #5abbfb);
@@ -59,11 +59,11 @@
59
59
  --eds-color-info-15: light-dark(#fff, #030304);
60
60
  --eds-color-success-1: light-dark(#eafbe8, #0a0c0a);
61
61
  --eds-color-success-2: light-dark(#f6fff5, #1e231e);
62
- --eds-color-success-3: light-dark(#c5e5c2, #3c673a);
63
- --eds-color-success-4: light-dark(#b1dbae, #3e793c);
64
- --eds-color-success-5: light-dark(#97cf93, #418e3e);
62
+ --eds-color-success-3: light-dark(#cfeacc, #3c673a);
63
+ --eds-color-success-4: light-dark(#bbe0b8, #3e793c);
64
+ --eds-color-success-5: light-dark(#a2d49e, #418e3e);
65
65
  --eds-color-success-6: light-dark(#bbe0b8, #3c673a);
66
- --eds-color-success-7: light-dark(#7cc278, #439941);
66
+ --eds-color-success-7: light-dark(#7cc278, #449941);
67
67
  --eds-color-success-8: light-dark(#227e22, #6eca6a);
68
68
  --eds-color-success-9: light-dark(#207720, #8cdb87);
69
69
  --eds-color-success-10: light-dark(#20621f, #aceba8);
@@ -74,9 +74,9 @@
74
74
  --eds-color-success-15: light-dark(#fff, #030303);
75
75
  --eds-color-warning-1: light-dark(#fff1e2, #0c0b0a);
76
76
  --eds-color-warning-2: light-dark(#fffcf0, #27201b);
77
- --eds-color-warning-3: light-dark(#f9d2b6, #7e4e25);
78
- --eds-color-warning-4: light-dark(#f4c29d, #97571b);
79
- --eds-color-warning-5: light-dark(#eeae7c, #b46201);
77
+ --eds-color-warning-3: light-dark(#fbdac1, #7e4e25);
78
+ --eds-color-warning-4: light-dark(#f6caaa, #97571b);
79
+ --eds-color-warning-5: light-dark(#f0b689, #b46201);
80
80
  --eds-color-warning-6: light-dark(#f6caaa, #7e4e25);
81
81
  --eds-color-warning-7: light-dark(#e89959, #c36800);
82
82
  --eds-color-warning-8: light-dark(#a34e00, #f99539);
@@ -89,11 +89,11 @@
89
89
  --eds-color-warning-15: light-dark(#fff, #040303);
90
90
  --eds-color-danger-1: light-dark(#ffecea, #0d0a0a);
91
91
  --eds-color-danger-2: light-dark(#fff9f8, #2a1e1e);
92
- --eds-color-danger-3: light-dark(#ffc6c4, #923a3c);
93
- --eds-color-danger-4: light-dark(#ffb2b0, #b03940);
94
- --eds-color-danger-5: light-dark(#ff9897, #d43745);
92
+ --eds-color-danger-3: light-dark(#ffd0ce, #923a3c);
93
+ --eds-color-danger-4: light-dark(#ffbcba, #b03940);
94
+ --eds-color-danger-5: light-dark(#ffa3a1, #d43745);
95
95
  --eds-color-danger-6: light-dark(#ffbcba, #923a3c);
96
- --eds-color-danger-7: light-dark(#ff7a7d, #e53748);
96
+ --eds-color-danger-7: light-dark(#ff7a7c, #e53748);
97
97
  --eds-color-danger-8: light-dark(#c6002d, #ff8082);
98
98
  --eds-color-danger-9: light-dark(#bc002a, #ffa3a1);
99
99
  --eds-color-danger-10: light-dark(#9a1026, #ffc1bf);