@equinor/eds-tokens 2.2.0 → 2.3.0-beta.1

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 (55) hide show
  1. package/README.md +11 -1
  2. package/build/css/color/color-scheme/dark-semantic-trimmed.css +8 -0
  3. package/build/css/color/color-scheme/light-semantic-trimmed.css +8 -0
  4. package/build/css/color/static/semantic-verbose.css +8 -0
  5. package/build/css/color/static/variables.css +8 -0
  6. package/build/js/color/color-scheme/dark-semantic.d.ts +8 -0
  7. package/build/js/color/color-scheme/dark-semantic.js +8 -0
  8. package/build/js/color/color-scheme/light-semantic.d.ts +8 -0
  9. package/build/js/color/color-scheme/light-semantic.js +8 -0
  10. package/build/js/color/static/semantic.d.ts +8 -0
  11. package/build/js/color/static/semantic.js +8 -0
  12. package/build/js/spacing/comfortable.d.ts +0 -1
  13. package/build/js/spacing/comfortable.js +0 -1
  14. package/build/js/spacing/spacious.d.ts +0 -1
  15. package/build/js/spacing/spacious.js +0 -1
  16. package/build/json/color/color-scheme/flat/dark-semantic.json +9 -1
  17. package/build/json/color/color-scheme/flat/light-semantic.json +9 -1
  18. package/build/json/color/color-scheme/nested/dark-semantic.json +11 -3
  19. package/build/json/color/color-scheme/nested/light-semantic.json +11 -3
  20. package/build/json/color/static/flat/semantic.json +9 -1
  21. package/build/json/color/static/nested/semantic.json +11 -3
  22. package/build/ts/color/color-scheme/dark-color-scheme.ts +116 -0
  23. package/build/ts/color/color-scheme/dark-semantic.ts +170 -0
  24. package/build/ts/color/color-scheme/light-color-scheme.ts +116 -0
  25. package/build/ts/color/color-scheme/light-semantic.ts +170 -0
  26. package/build/ts/color/static/semantic.ts +170 -0
  27. package/build/ts/spacing/comfortable.ts +558 -0
  28. package/build/ts/spacing/index.ts +6 -0
  29. package/build/ts/spacing/spacious.ts +558 -0
  30. package/build/ts/typography/font-family-header.ts +122 -0
  31. package/build/ts/typography/font-family-ui.ts +122 -0
  32. package/build/ts/typography/font-size-2xl.ts +21 -0
  33. package/build/ts/typography/font-size-3xl.ts +21 -0
  34. package/build/ts/typography/font-size-4xl.ts +21 -0
  35. package/build/ts/typography/font-size-5xl.ts +21 -0
  36. package/build/ts/typography/font-size-6xl.ts +21 -0
  37. package/build/ts/typography/font-size-lg.ts +21 -0
  38. package/build/ts/typography/font-size-md.ts +21 -0
  39. package/build/ts/typography/font-size-sm.ts +21 -0
  40. package/build/ts/typography/font-size-xl.ts +21 -0
  41. package/build/ts/typography/font-size-xs.ts +21 -0
  42. package/build/ts/typography/font-weight-bolder.ts +9 -0
  43. package/build/ts/typography/font-weight-lighter.ts +9 -0
  44. package/build/ts/typography/font-weight-normal.ts +9 -0
  45. package/build/ts/typography/line-height-default.ts +9 -0
  46. package/build/ts/typography/line-height-squished.ts +9 -0
  47. package/build/ts/typography/tracking-loose.ts +9 -0
  48. package/build/ts/typography/tracking-normal.ts +9 -0
  49. package/build/ts/typography/tracking-tight.ts +9 -0
  50. package/build/ts/typography/tracking-wide.ts +9 -0
  51. package/instructions/colors-dynamic.md +29 -0
  52. package/instructions/colors-static.md +78 -0
  53. package/instructions/colors.md +13 -0
  54. package/instructions/typography.md +161 -0
  55. package/package.json +12 -9
@@ -0,0 +1,170 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export const color = {
6
+ bg: {
7
+ neutral: {
8
+ canvas: '#0b0b0b',
9
+ surface: '#202223',
10
+ fillMuted: {
11
+ default: '#525c65',
12
+ hover: '#5d6b76',
13
+ active: '#6b7d8b',
14
+ },
15
+ fillEmphasis: {
16
+ default: '#b4c7d7',
17
+ hover: '#cadae7',
18
+ active: '#deeaf4',
19
+ },
20
+ },
21
+ accent: {
22
+ canvas: '#0a0b0b',
23
+ surface: '#1e2323',
24
+ fillMuted: {
25
+ default: '#3c6266',
26
+ hover: '#3e7378',
27
+ active: '#41878e',
28
+ },
29
+ fillEmphasis: {
30
+ default: '#8cd2da',
31
+ hover: '#ace3e9',
32
+ active: '#c7f1f6',
33
+ },
34
+ },
35
+ success: {
36
+ canvas: '#0a0c0a',
37
+ surface: '#1e231e',
38
+ fillMuted: {
39
+ default: '#3c673a',
40
+ hover: '#3e793c',
41
+ active: '#418e3e',
42
+ },
43
+ fillEmphasis: {
44
+ default: '#8cdb87',
45
+ hover: '#aceba8',
46
+ active: '#c7f7c3',
47
+ },
48
+ },
49
+ info: {
50
+ canvas: '#0a0b0c',
51
+ surface: '#1d2226',
52
+ fillMuted: {
53
+ default: '#33607e',
54
+ hover: '#316f98',
55
+ active: '#2e82b7',
56
+ },
57
+ fillEmphasis: {
58
+ default: '#7dceff',
59
+ hover: '#a2e0ff',
60
+ active: '#c4eeff',
61
+ },
62
+ },
63
+ warning: {
64
+ canvas: '#0c0b0a',
65
+ surface: '#27201b',
66
+ fillMuted: {
67
+ default: '#7e4e25',
68
+ hover: '#97571b',
69
+ active: '#b46201',
70
+ },
71
+ fillEmphasis: {
72
+ default: '#ffad63',
73
+ hover: '#ffc791',
74
+ active: '#ffddb9',
75
+ },
76
+ },
77
+ danger: {
78
+ canvas: '#0d0a0a',
79
+ surface: '#2a1e1e',
80
+ fillMuted: {
81
+ default: '#923a3c',
82
+ hover: '#b03940',
83
+ active: '#d43745',
84
+ },
85
+ fillEmphasis: {
86
+ default: '#ffa3a1',
87
+ hover: '#ffc1bf',
88
+ active: '#ffd9d7',
89
+ },
90
+ },
91
+ floating: '#202223',
92
+ backdrop: '#738696',
93
+ input: '#0b0b0b',
94
+ disabled: '#525c65',
95
+ },
96
+ border: {
97
+ neutral: {
98
+ subtle: '#525c65',
99
+ medium: '#738696',
100
+ strong: '#9fb4c6',
101
+ },
102
+ accent: {
103
+ subtle: '#3c6266',
104
+ medium: '#439199',
105
+ strong: '#6ec0c9',
106
+ },
107
+ success: {
108
+ subtle: '#3c673a',
109
+ medium: '#439941',
110
+ strong: '#6eca6a',
111
+ },
112
+ info: {
113
+ subtle: '#33607e',
114
+ medium: '#2d8bc5',
115
+ strong: '#5abbfb',
116
+ },
117
+ warning: {
118
+ subtle: '#7e4e25',
119
+ medium: '#c36800',
120
+ strong: '#f99539',
121
+ },
122
+ danger: {
123
+ subtle: '#923a3c',
124
+ medium: '#e53748',
125
+ strong: '#ff8082',
126
+ },
127
+ focus: '#2d8bc5',
128
+ disabled: '#738696',
129
+ },
130
+ text: {
131
+ neutral: {
132
+ subtle: '#d6e3ee',
133
+ strong: '#f5fdff',
134
+ subtleOnEmphasis: '#333639',
135
+ strongOnEmphasis: '#030303',
136
+ },
137
+ accent: {
138
+ subtle: '#bcebf1',
139
+ strong: '#e6ffff',
140
+ subtleOnEmphasis: '#2c3839',
141
+ strongOnEmphasis: '#030303',
142
+ },
143
+ success: {
144
+ subtle: '#bcf2b8',
145
+ strong: '#e6ffe3',
146
+ subtleOnEmphasis: '#2c392b',
147
+ strongOnEmphasis: '#030303',
148
+ },
149
+ info: {
150
+ subtle: '#b7e8ff',
151
+ strong: '#ecffff',
152
+ subtleOnEmphasis: '#2a3741',
153
+ strongOnEmphasis: '#030304',
154
+ },
155
+ warning: {
156
+ subtle: '#ffd4aa',
157
+ strong: '#fff7e6',
158
+ subtleOnEmphasis: '#413226',
159
+ strongOnEmphasis: '#040303',
160
+ },
161
+ danger: {
162
+ subtle: '#ffd0ce',
163
+ strong: '#fff5f4',
164
+ subtleOnEmphasis: '#492d2c',
165
+ strongOnEmphasis: '#040303',
166
+ },
167
+ link: '#5abbfb',
168
+ disabled: '#738696',
169
+ },
170
+ } as const
@@ -0,0 +1,116 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export const color = {
6
+ bgFloating: '#ffffff',
7
+ bgBackdrop: '#aeaeae',
8
+ bgInput: '#f5f5f5',
9
+ borderFocus: '#6fb6e9',
10
+ textLink: '#0070a9',
11
+ bgDisabled: '#e1e1e1',
12
+ borderDisabled: '#aeaeae',
13
+ textDisabled: '#aeaeae',
14
+ accent: {
15
+ '1': '#eaf8fa',
16
+ '2': '#f6ffff',
17
+ '3': '#cfe7e9',
18
+ '4': '#bbdbdf',
19
+ '5': '#a2cdd2',
20
+ '6': '#bbdbdf',
21
+ '7': '#7cbac1',
22
+ '8': '#21767e',
23
+ '9': '#206f77',
24
+ '10': '#205c62',
25
+ '11': '#20565c',
26
+ '12': '#1f6369',
27
+ '13': '#141f20',
28
+ '14': '#cae4e7',
29
+ '15': '#ffffff',
30
+ },
31
+ neutral: {
32
+ '1': '#f5f5f5',
33
+ '2': '#ffffff',
34
+ '3': '#e1e1e1',
35
+ '4': '#d4d4d4',
36
+ '5': '#c4c4c4',
37
+ '6': '#d4d4d4',
38
+ '7': '#aeaeae',
39
+ '8': '#696969',
40
+ '9': '#636363',
41
+ '10': '#525252',
42
+ '11': '#4d4d4d',
43
+ '12': '#585858',
44
+ '13': '#1d1d1d',
45
+ '14': '#dedede',
46
+ '15': '#ffffff',
47
+ },
48
+ info: {
49
+ '1': '#e7f8ff',
50
+ '2': '#f4ffff',
51
+ '3': '#cae6fa',
52
+ '4': '#b5daf5',
53
+ '5': '#99cbf0',
54
+ '6': '#b5daf5',
55
+ '7': '#6fb6e9',
56
+ '8': '#0070a9',
57
+ '9': '#006aa0',
58
+ '10': '#085883',
59
+ '11': '#0e5279',
60
+ '12': '#015e8d',
61
+ '13': '#121e27',
62
+ '14': '#c5e3f9',
63
+ '15': '#ffffff',
64
+ },
65
+ success: {
66
+ '1': '#eafbe8',
67
+ '2': '#f6fff5',
68
+ '3': '#cfeacc',
69
+ '4': '#bbe0b8',
70
+ '5': '#a2d49e',
71
+ '6': '#bbe0b8',
72
+ '7': '#7cc278',
73
+ '8': '#227e22',
74
+ '9': '#207720',
75
+ '10': '#20621f',
76
+ '11': '#215c1f',
77
+ '12': '#20691f',
78
+ '13': '#142114',
79
+ '14': '#cae8c7',
80
+ '15': '#ffffff',
81
+ },
82
+ warning: {
83
+ '1': '#fff1e2',
84
+ '2': '#fffcf0',
85
+ '3': '#fbdac1',
86
+ '4': '#f6caaa',
87
+ '5': '#f0b689',
88
+ '6': '#f6caaa',
89
+ '7': '#e89959',
90
+ '8': '#a34e00',
91
+ '9': '#9b4900',
92
+ '10': '#813e00',
93
+ '11': '#773a00',
94
+ '12': '#8a4100',
95
+ '13': '#27190e',
96
+ '14': '#fad6bc',
97
+ '15': '#ffffff',
98
+ },
99
+ danger: {
100
+ '1': '#ffecea',
101
+ '2': '#fff9f8',
102
+ '3': '#ffd0ce',
103
+ '4': '#ffbcba',
104
+ '5': '#ffa3a1',
105
+ '6': '#ffbcba',
106
+ '7': '#ff7a7d',
107
+ '8': '#c6002d',
108
+ '9': '#bc002a',
109
+ '10': '#9a1026',
110
+ '11': '#8e1525',
111
+ '12': '#a50827',
112
+ '13': '#2e1414',
113
+ '14': '#ffcbc9',
114
+ '15': '#ffffff',
115
+ },
116
+ } as const
@@ -0,0 +1,170 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export const color = {
6
+ bg: {
7
+ neutral: {
8
+ canvas: '#f5f5f5',
9
+ surface: '#ffffff',
10
+ fillMuted: {
11
+ default: '#e1e1e1',
12
+ hover: '#d4d4d4',
13
+ active: '#c4c4c4',
14
+ },
15
+ fillEmphasis: {
16
+ default: '#636363',
17
+ hover: '#525252',
18
+ active: '#4d4d4d',
19
+ },
20
+ },
21
+ accent: {
22
+ canvas: '#eaf8fa',
23
+ surface: '#f6ffff',
24
+ fillMuted: {
25
+ default: '#cfe7e9',
26
+ hover: '#bbdbdf',
27
+ active: '#a2cdd2',
28
+ },
29
+ fillEmphasis: {
30
+ default: '#206f77',
31
+ hover: '#205c62',
32
+ active: '#20565c',
33
+ },
34
+ },
35
+ success: {
36
+ canvas: '#eafbe8',
37
+ surface: '#f6fff5',
38
+ fillMuted: {
39
+ default: '#cfeacc',
40
+ hover: '#bbe0b8',
41
+ active: '#a2d49e',
42
+ },
43
+ fillEmphasis: {
44
+ default: '#207720',
45
+ hover: '#20621f',
46
+ active: '#215c1f',
47
+ },
48
+ },
49
+ info: {
50
+ canvas: '#e7f8ff',
51
+ surface: '#f4ffff',
52
+ fillMuted: {
53
+ default: '#cae6fa',
54
+ hover: '#b5daf5',
55
+ active: '#99cbf0',
56
+ },
57
+ fillEmphasis: {
58
+ default: '#006aa0',
59
+ hover: '#085883',
60
+ active: '#0e5279',
61
+ },
62
+ },
63
+ warning: {
64
+ canvas: '#fff1e2',
65
+ surface: '#fffcf0',
66
+ fillMuted: {
67
+ default: '#fbdac1',
68
+ hover: '#f6caaa',
69
+ active: '#f0b689',
70
+ },
71
+ fillEmphasis: {
72
+ default: '#9b4900',
73
+ hover: '#813e00',
74
+ active: '#773a00',
75
+ },
76
+ },
77
+ danger: {
78
+ canvas: '#ffecea',
79
+ surface: '#fff9f8',
80
+ fillMuted: {
81
+ default: '#ffd0ce',
82
+ hover: '#ffbcba',
83
+ active: '#ffa3a1',
84
+ },
85
+ fillEmphasis: {
86
+ default: '#bc002a',
87
+ hover: '#9a1026',
88
+ active: '#8e1525',
89
+ },
90
+ },
91
+ floating: '#ffffff',
92
+ backdrop: '#aeaeae',
93
+ input: '#f5f5f5',
94
+ disabled: '#e1e1e1',
95
+ },
96
+ border: {
97
+ neutral: {
98
+ subtle: '#d4d4d4',
99
+ medium: '#aeaeae',
100
+ strong: '#696969',
101
+ },
102
+ accent: {
103
+ subtle: '#bbdbdf',
104
+ medium: '#7cbac1',
105
+ strong: '#21767e',
106
+ },
107
+ success: {
108
+ subtle: '#bbe0b8',
109
+ medium: '#7cc278',
110
+ strong: '#227e22',
111
+ },
112
+ info: {
113
+ subtle: '#b5daf5',
114
+ medium: '#6fb6e9',
115
+ strong: '#0070a9',
116
+ },
117
+ warning: {
118
+ subtle: '#f6caaa',
119
+ medium: '#e89959',
120
+ strong: '#a34e00',
121
+ },
122
+ danger: {
123
+ subtle: '#ffbcba',
124
+ medium: '#ff7a7d',
125
+ strong: '#c6002d',
126
+ },
127
+ focus: '#6fb6e9',
128
+ disabled: '#aeaeae',
129
+ },
130
+ text: {
131
+ neutral: {
132
+ subtle: '#585858',
133
+ strong: '#1d1d1d',
134
+ subtleOnEmphasis: '#dedede',
135
+ strongOnEmphasis: '#ffffff',
136
+ },
137
+ accent: {
138
+ subtle: '#1f6369',
139
+ strong: '#141f20',
140
+ subtleOnEmphasis: '#cae4e7',
141
+ strongOnEmphasis: '#ffffff',
142
+ },
143
+ success: {
144
+ subtle: '#20691f',
145
+ strong: '#142114',
146
+ subtleOnEmphasis: '#cae8c7',
147
+ strongOnEmphasis: '#ffffff',
148
+ },
149
+ info: {
150
+ subtle: '#015e8d',
151
+ strong: '#121e27',
152
+ subtleOnEmphasis: '#c5e3f9',
153
+ strongOnEmphasis: '#ffffff',
154
+ },
155
+ warning: {
156
+ subtle: '#8a4100',
157
+ strong: '#27190e',
158
+ subtleOnEmphasis: '#fad6bc',
159
+ strongOnEmphasis: '#ffffff',
160
+ },
161
+ danger: {
162
+ subtle: '#a50827',
163
+ strong: '#2e1414',
164
+ subtleOnEmphasis: '#ffcbc9',
165
+ strongOnEmphasis: '#ffffff',
166
+ },
167
+ link: '#0070a9',
168
+ disabled: '#aeaeae',
169
+ },
170
+ } as const
@@ -0,0 +1,170 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export const color = {
6
+ bg: {
7
+ neutral: {
8
+ canvas: '#f5f5f5',
9
+ surface: '#ffffff',
10
+ fillMuted: {
11
+ default: '#e1e1e1',
12
+ hover: '#d4d4d4',
13
+ active: '#c4c4c4',
14
+ },
15
+ fillEmphasis: {
16
+ default: '#636363',
17
+ hover: '#525252',
18
+ active: '#4d4d4d',
19
+ },
20
+ },
21
+ accent: {
22
+ canvas: '#eaf8fa',
23
+ surface: '#f6ffff',
24
+ fillMuted: {
25
+ default: '#cfe7e9',
26
+ hover: '#bbdbdf',
27
+ active: '#a2cdd2',
28
+ },
29
+ fillEmphasis: {
30
+ default: '#206f77',
31
+ hover: '#205c62',
32
+ active: '#20565c',
33
+ },
34
+ },
35
+ success: {
36
+ canvas: '#eafbe8',
37
+ surface: '#f6fff5',
38
+ fillMuted: {
39
+ default: '#cfeacc',
40
+ hover: '#bbe0b8',
41
+ active: '#a2d49e',
42
+ },
43
+ fillEmphasis: {
44
+ default: '#207720',
45
+ hover: '#20621f',
46
+ active: '#215c1f',
47
+ },
48
+ },
49
+ info: {
50
+ canvas: '#e7f8ff',
51
+ surface: '#f4ffff',
52
+ fillMuted: {
53
+ default: '#cae6fa',
54
+ hover: '#b5daf5',
55
+ active: '#99cbf0',
56
+ },
57
+ fillEmphasis: {
58
+ default: '#006aa0',
59
+ hover: '#085883',
60
+ active: '#0e5279',
61
+ },
62
+ },
63
+ warning: {
64
+ canvas: '#fff1e2',
65
+ surface: '#fffcf0',
66
+ fillMuted: {
67
+ default: '#fbdac1',
68
+ hover: '#f6caaa',
69
+ active: '#f0b689',
70
+ },
71
+ fillEmphasis: {
72
+ default: '#9b4900',
73
+ hover: '#813e00',
74
+ active: '#773a00',
75
+ },
76
+ },
77
+ danger: {
78
+ canvas: '#ffecea',
79
+ surface: '#fff9f8',
80
+ fillMuted: {
81
+ default: '#ffd0ce',
82
+ hover: '#ffbcba',
83
+ active: '#ffa3a1',
84
+ },
85
+ fillEmphasis: {
86
+ default: '#bc002a',
87
+ hover: '#9a1026',
88
+ active: '#8e1525',
89
+ },
90
+ },
91
+ floating: '#ffffff',
92
+ backdrop: '#aeaeae',
93
+ input: '#f5f5f5',
94
+ disabled: '#e1e1e1',
95
+ },
96
+ border: {
97
+ neutral: {
98
+ subtle: '#d4d4d4',
99
+ medium: '#aeaeae',
100
+ strong: '#696969',
101
+ },
102
+ accent: {
103
+ subtle: '#bbdbdf',
104
+ medium: '#7cbac1',
105
+ strong: '#21767e',
106
+ },
107
+ success: {
108
+ subtle: '#bbe0b8',
109
+ medium: '#7cc278',
110
+ strong: '#227e22',
111
+ },
112
+ info: {
113
+ subtle: '#b5daf5',
114
+ medium: '#6fb6e9',
115
+ strong: '#0070a9',
116
+ },
117
+ warning: {
118
+ subtle: '#f6caaa',
119
+ medium: '#e89959',
120
+ strong: '#a34e00',
121
+ },
122
+ danger: {
123
+ subtle: '#ffbcba',
124
+ medium: '#ff7a7d',
125
+ strong: '#c6002d',
126
+ },
127
+ focus: '#6fb6e9',
128
+ disabled: '#aeaeae',
129
+ },
130
+ text: {
131
+ neutral: {
132
+ subtle: '#585858',
133
+ strong: '#1d1d1d',
134
+ subtleOnEmphasis: '#dedede',
135
+ strongOnEmphasis: '#ffffff',
136
+ },
137
+ accent: {
138
+ subtle: '#1f6369',
139
+ strong: '#141f20',
140
+ subtleOnEmphasis: '#cae4e7',
141
+ strongOnEmphasis: '#ffffff',
142
+ },
143
+ success: {
144
+ subtle: '#20691f',
145
+ strong: '#142114',
146
+ subtleOnEmphasis: '#cae8c7',
147
+ strongOnEmphasis: '#ffffff',
148
+ },
149
+ info: {
150
+ subtle: '#015e8d',
151
+ strong: '#121e27',
152
+ subtleOnEmphasis: '#c5e3f9',
153
+ strongOnEmphasis: '#ffffff',
154
+ },
155
+ warning: {
156
+ subtle: '#8a4100',
157
+ strong: '#27190e',
158
+ subtleOnEmphasis: '#fad6bc',
159
+ strongOnEmphasis: '#ffffff',
160
+ },
161
+ danger: {
162
+ subtle: '#a50827',
163
+ strong: '#2e1414',
164
+ subtleOnEmphasis: '#ffcbc9',
165
+ strongOnEmphasis: '#ffffff',
166
+ },
167
+ link: '#0070a9',
168
+ disabled: '#aeaeae',
169
+ },
170
+ } as const