@equinor/eds-tokens 1.0.0 → 1.1.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 (53) hide show
  1. package/README.md +155 -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/instructions/colors-dynamic.md +114 -0
  45. package/instructions/colors-static.md +80 -0
  46. package/instructions/colors.md +123 -0
  47. package/package.json +5 -14
  48. package/build/css/index-variables-dynamic.css +0 -6
  49. package/build/css/index-variables-static.css +0 -6
  50. package/build/css/variables-dynamic.css +0 -536
  51. package/build/css/variables-dynamic.min.css +0 -1
  52. package/build/css/variables-static.css +0 -518
  53. package/build/css/variables-static.min.css +0 -1
package/README.md CHANGED
@@ -1,6 +1,9 @@
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
+
5
+
6
+ > For <abbr title="Large Language Model">LLM</abbr> instructions on using colors, see the [instructions/colors.md](./instructions/colors.md), or jump directly to the [static](./instructions/colors-static.md) or [dynamic](./instructions/colors-dynamic.md) instructions.
4
7
 
5
8
  ## Installation
6
9
 
@@ -10,28 +13,163 @@ pnpm add @equinor/eds-tokens
10
13
 
11
14
  ## Usage
12
15
 
13
- ```js
14
- import { tokens } from '@equinor/eds-tokens'
16
+ The package provides two token systems:
17
+
18
+ * **CSS Variables (Recommended)** -- Modern, theme-aware design tokens synced from Figma
19
+ * **Legacy Tokens** -- Original token format, still supported for backward compatibility
20
+
21
+ ---
22
+
23
+ ## CSS Variables (Recommended)
24
+
25
+ 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.
26
+
27
+ ### Using CSS Variables in CSS
28
+
29
+ Import the variables stylesheet:
30
+
31
+ ```css
32
+ @import '@equinor/eds-tokens/css/variables';
15
33
  ```
16
34
 
17
- CSS custom properties are also available:
35
+ Then use the CSS custom properties in your styles:
18
36
 
19
37
  ```css
20
- @import '@equinor/eds-tokens/css/variables-static.css'; /* or variables-dynamic.css */
38
+ .my-component {
39
+ background-color: var(--eds-color-bg-neutral-surface);
40
+ color: var(--eds-color-text-neutral-strong);
41
+ border: 1px solid var(--eds-color-border-neutral-subtle);
42
+ padding: var(--eds-spacing-inline-md);
43
+ border-radius: var(--eds-spacing-border-radius-rounded);
44
+ }
45
+ ```
46
+
47
+ The variables automatically respond to color scheme changes:
48
+
49
+ ```css
50
+ /* Applies to elements with data-color-scheme attribute */
51
+ [data-color-scheme="dark"] {
52
+ /* Variables automatically use dark mode values */
53
+ }
54
+
55
+ /* Or use the native prefers-color-scheme */
56
+ @media (prefers-color-scheme: dark) {
57
+ /* Variables automatically use dark mode values */
58
+ }
59
+ ```
60
+
61
+ ### Using variables in JavaScript/TypeScript
62
+
63
+ For scenarios where you need colour variables in JavaScript:
64
+
65
+ #### Color Scheme Tokens
66
+
67
+ Import the light and dark semantic color tokens:
68
+
69
+ ```typescript
70
+ // Import semantic color scheme tokens
71
+ import * as lightSemantic from '@equinor/eds-tokens/js/color/color-scheme/light-semantic'
72
+ import * as darkSemantic from '@equinor/eds-tokens/js/color/color-scheme/dark-semantic'
73
+
74
+ // Use semantic tokens with light/dark values
75
+ const lightSurface = lightSemantic.BG_NEUTRAL_SURFACE
76
+ const darkSurface = darkSemantic.BG_NEUTRAL_SURFACE
77
+
78
+ const lightAccent = lightSemantic.BG_ACCENT_FILL_EMPHASIS_DEFAULT
79
+ const darkAccent = darkSemantic.BG_ACCENT_FILL_EMPHASIS_DEFAULT
80
+
81
+ const lightBorder = lightSemantic.BORDER_INFO_MEDIUM
82
+ const darkBorder = darkSemantic.BORDER_INFO_MEDIUM
83
+ ```
84
+
85
+ #### Spacing Tokens
86
+
87
+ ```typescript
88
+ // Import spacing values for different density modes
89
+ import * as comfortableSpacing from '@equinor/eds-tokens/js/spacing/comfortable'
90
+ import * as spaciousSpacing from '@equinor/eds-tokens/js/spacing/spacious'
91
+
92
+ // Use the values (numbers in pixels)
93
+ const padding = comfortableSpacing.SPACING_INLINE_MD
94
+ const borderRadius = comfortableSpacing.SPACING_BORDER_RADIUS_ROUNDED
95
+ ```
96
+
97
+ ### Importing variables as JSON
98
+
99
+ The variables are available in two formats:
100
+
101
+ * **Flat format** (`/flat/`) -- Simple key-value pairs for easy access
102
+ * **Nested format** (`/nested/`) -- Hierarchical structure matching the token naming
103
+
104
+ * The semantic color tokens are available for light and dark color schemes.
105
+
106
+ * `light-semantic.json` / `dark-semantic.json` -- Semantic color tokens for each color scheme
107
+
108
+ #### Flat Format
109
+
110
+ ```typescript
111
+ // Import flat format tokens
112
+ import lightSemanticFlat from '@equinor/eds-tokens/json/color/color-scheme/flat/light-semantic.json'
113
+ import darkSemanticFlat from '@equinor/eds-tokens/json/color/color-scheme/flat/dark-semantic.json'
114
+
115
+ // Access values directly
116
+ const lightSurface = lightSemanticFlat['bg-neutral-surface'] // "#ffffff"
117
+ const darkSurface = darkSemanticFlat['bg-neutral-surface'] // "#262626"
118
+ ```
119
+
120
+ #### Nested Format
121
+
122
+ ```typescript
123
+ // Import nested format tokens
124
+ import lightSemanticNested from '@equinor/eds-tokens/json/color/color-scheme/nested/light-semantic.json'
125
+ import darkSemanticNested from '@equinor/eds-tokens/json/color/color-scheme/nested/dark-semantic.json'
126
+
127
+ // Access values via hierarchical structure
128
+ const lightSurface = lightSemanticNested.bg.neutral.surface // "#ffffff"
129
+ const darkSurface = darkSemanticNested.bg.neutral.surface // "#262626"
130
+ ```
131
+
132
+ ### Available Token Categories
133
+
134
+ * **Colors** -- Semantic color tokens for backgrounds, text, borders, and states
135
+ * **Spacing** -- Layout spacing including inline, stack, inset, and border radius
136
+ * **Typography** -- Font sizes, line heights, and font families (requires font files)
137
+
138
+ ### Spacing Density Modes
139
+
140
+ The spacing system supports different density modes:
141
+
142
+ * `comfortable` -- Default density for most applications
143
+ * `spacious` -- Increased spacing for better readability
144
+
145
+ ---
146
+
147
+ ## Legacy Tokens (Backward Compatible)
148
+
149
+ The original token format is still available for existing applications. These tokens use a structured JavaScript object format.
150
+
151
+ ### Using Legacy Tokens in JavaScript/TypeScript
152
+
153
+ ```javascript
154
+ import { tokens } from '@equinor/eds-tokens'
155
+
156
+ // Access token values
157
+ const primaryColor = tokens.colors.interactive.primary__resting.rgba
158
+ const spacing = tokens.spacings.comfortable.medium
159
+ const typography = tokens.typography.heading.h1
21
160
  ```
22
161
 
23
- `variables-static.css` exposes tokens with fixed values, while
24
- `variables-dynamic.css` includes dynamic semantic color tokens.
162
+ ### Legacy Token Categories
25
163
 
26
- ## Tokens
164
+ * Clickbounds
165
+ * Colors
166
+ * Elevation
167
+ * Shape
168
+ * Spacing
169
+ * Interaction states
170
+ * Typography (`ot`, `woff` or `woff2` font required)
27
171
 
28
- - Clickbounds
29
- - Colors
30
- - Elevation
31
- - Shape
32
- - Spacing
33
- - Interaction states
34
- - Typography (`ot`, `woff` or `woff2` font required)
172
+ > We recommend migrating to CSS Variables for new projects to benefit from automatic theme support and better performance.
35
173
 
36
174
  [design tokens]: https://css-tricks.com/what-are-design-tokens/
37
175
 
@@ -124,11 +262,11 @@ pnpm run update-figma
124
262
 
125
263
  ### How the variables are setup with references between collections
126
264
 
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.
265
+ 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
266
 
129
267
  ### Tokens in code
130
268
 
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.
269
+ 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
270
 
133
271
 
134
272
  ### 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
+ }