@hpe-web/design-tokens 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +22 -13
  2. package/dist/css/fonts/de.css +0 -164
  3. package/dist/css/fonts/en.css +0 -164
  4. package/dist/css/fonts/es.css +0 -164
  5. package/dist/css/fonts/fr.css +0 -164
  6. package/dist/css/fonts/it.css +0 -164
  7. package/dist/css/fonts/zh.css +1 -1
  8. package/dist/css/tokens.css +343 -264
  9. package/dist/css/tokens.dark.css +46 -63
  10. package/dist/css/tokens.md-lg.css +113 -103
  11. package/dist/css/tokens.xl.css +109 -86
  12. package/package.json +4 -8
  13. package/src/breakpoints.json +14 -0
  14. package/src/component/button.json +1382 -0
  15. package/{static → src}/fonts.json +17 -17
  16. package/src/hpe.resolver.json +94 -0
  17. package/{static → src}/locales.json +6 -6
  18. package/{dtcg/foundation/color.tokens.json → src/primitive/primitives.json} +874 -1172
  19. package/src/semantic/color.dark.json +414 -0
  20. package/src/semantic/color.light.json +415 -0
  21. package/src/semantic/dimension.md-lg.json +764 -0
  22. package/src/semantic/dimension.xl.json +764 -0
  23. package/src/semantic/dimension.xs-sm.json +764 -0
  24. package/transforms.mjs +7 -7
  25. package/dist/css/locales/de.tokens.css +0 -65
  26. package/dist/css/locales/es.tokens.css +0 -65
  27. package/dist/css/locales/fr.tokens.css +0 -65
  28. package/dist/css/locales/it.tokens.css +0 -65
  29. package/dist/css/locales/ja.tokens.css +0 -84
  30. package/dist/css/locales/ko.tokens.css +0 -84
  31. package/dist/css/locales/zh.tokens.css +0 -11
  32. package/dtcg/foundation/border-radius.tokens.json +0 -239
  33. package/dtcg/foundation/border-width.tokens.json +0 -103
  34. package/dtcg/foundation/breakpoint.tokens.json +0 -27
  35. package/dtcg/foundation/dimension.tokens.json +0 -258
  36. package/dtcg/foundation/font-family.tokens.json +0 -53
  37. package/dtcg/foundation/font-size.tokens.json +0 -408
  38. package/dtcg/foundation/font-weight.tokens.json +0 -214
  39. package/dtcg/foundation/letter-spacing.tokens.json +0 -203
  40. package/dtcg/foundation/line-height.tokens.json +0 -408
  41. package/dtcg/foundation/size.tokens.json +0 -191
  42. package/dtcg/foundation/space.tokens.json +0 -431
  43. package/dtcg/foundation/typography.tokens.json +0 -625
  44. package/dtcg/hpe.resolver.json +0 -178
  45. package/dtcg/semantic/border-radius.tokens.json +0 -149
  46. package/dtcg/semantic/border-width.tokens.json +0 -50
  47. package/dtcg/semantic/font-family.tokens.json +0 -42
  48. package/dtcg/semantic/font-size.tokens.json +0 -285
  49. package/dtcg/semantic/font-weight.tokens.json +0 -134
  50. package/dtcg/semantic/letter-spacing.tokens.json +0 -203
  51. package/dtcg/semantic/line-height.tokens.json +0 -285
  52. package/dtcg/semantic/size.tokens.json +0 -120
  53. package/dtcg/semantic/space.tokens.json +0 -275
  54. package/dtcg/semantic/typography.tokens.json +0 -536
  55. package/dtcg/theme/dark/color.tokens.json +0 -698
  56. package/dtcg/theme/light/color.tokens.json +0 -722
  57. package/dtcg/viewport/md-lg/font-size.tokens.json +0 -189
  58. package/dtcg/viewport/md-lg/font-weight.tokens.json +0 -11
  59. package/dtcg/viewport/md-lg/letter-spacing.tokens.json +0 -88
  60. package/dtcg/viewport/md-lg/line-height.tokens.json +0 -125
  61. package/dtcg/viewport/md-lg/size.tokens.json +0 -20
  62. package/dtcg/viewport/md-lg/space.tokens.json +0 -36
  63. package/dtcg/viewport/sm-xs/border-radius.tokens.json +0 -48
  64. package/dtcg/viewport/sm-xs/border-width.tokens.json +0 -15
  65. package/dtcg/viewport/sm-xs/font-size.tokens.json +0 -236
  66. package/dtcg/viewport/sm-xs/font-weight.tokens.json +0 -18
  67. package/dtcg/viewport/sm-xs/letter-spacing.tokens.json +0 -130
  68. package/dtcg/viewport/sm-xs/line-height.tokens.json +0 -236
  69. package/dtcg/viewport/sm-xs/size.tokens.json +0 -39
  70. package/dtcg/viewport/sm-xs/space.tokens.json +0 -46
  71. package/dtcg/viewport/xl/border-radius.tokens.json +0 -48
  72. package/dtcg/viewport/xl/font-size.tokens.json +0 -236
  73. package/dtcg/viewport/xl/letter-spacing.tokens.json +0 -122
  74. package/dtcg/viewport/xl/line-height.tokens.json +0 -178
  75. package/dtcg/viewport/xl/size.tokens.json +0 -84
  76. package/dtcg/viewport/xl/space.tokens.json +0 -68
  77. package/static/breakpoints.json +0 -23
@@ -0,0 +1,414 @@
1
+ {
2
+ "hpe-web": {
3
+ "color": {
4
+ "background": {
5
+ "back": {
6
+ "$type": "color",
7
+ "$value": "{hpe-web.base.color.grey.1000}",
8
+ "$description": "Default background color to be used on containers."
9
+ },
10
+ "card": {
11
+ "$type": "color",
12
+ "$value": "{hpe-web.base.color.grey.1000}"
13
+ },
14
+ "carousel": {
15
+ "$type": "color",
16
+ "$value": "{hpe-web.base.color.grey.200}"
17
+ },
18
+ "carousel-disabled": {
19
+ "$type": "color",
20
+ "$value": "{hpe-web.base.color.grey.500}"
21
+ },
22
+ "carousel-hover": {
23
+ "$type": "color",
24
+ "$value": "{hpe-web.base.color.grey.400}"
25
+ },
26
+ "contrast": {
27
+ "$type": "color",
28
+ "$value": "{hpe-web.base.color.white.opacity6}",
29
+ "$description": "Use to create a subtle differentiation between a component or container and the region it sits on."
30
+ },
31
+ "critical": {
32
+ "$type": "color",
33
+ "$value": "{hpe-web.base.color.red.1000}"
34
+ },
35
+ "default": {
36
+ "$type": "color",
37
+ "$value": "{hpe-web.base.color.grey.1300}",
38
+ "$description": "Default background color to be used on containers."
39
+ },
40
+ "disabled": {
41
+ "$type": "color",
42
+ "$value": "{hpe-web.base.color.white.opacity7}"
43
+ },
44
+ "floating": {
45
+ "$type": "color",
46
+ "$value": "{hpe-web.base.color.grey.1300}"
47
+ },
48
+ "neutral": {
49
+ "$type": "color",
50
+ "$value": "{hpe-web.base.color.grey.400}"
51
+ },
52
+ "neutral-strong": {
53
+ "$type": "color",
54
+ "$value": "{hpe-web.base.color.white.100}"
55
+ },
56
+ "neutral-weak": {
57
+ "$type": "color",
58
+ "$value": "{hpe-web.base.color.grey.600}"
59
+ },
60
+ "ok": {
61
+ "$type": "color",
62
+ "$value": "{hpe-web.base.color.green.1000}"
63
+ },
64
+ "primary": {
65
+ "$type": "color",
66
+ "$value": "{hpe-web.base.color.green.600}",
67
+ "$description": "Primary palette is derived from the brand color and used for high visual prominence."
68
+ },
69
+ "primary-strong": {
70
+ "$type": "color",
71
+ "$value": "{hpe-web.base.color.green.700}",
72
+ "$description": "The strong variant of background-primary. Primary palette is derived from the brand color and used for high visual prominence."
73
+ },
74
+ "sunken": {
75
+ "$type": "color",
76
+ "$value": "{hpe-web.base.color.grey.1200}"
77
+ },
78
+ "warning": {
79
+ "$type": "color",
80
+ "$value": "{hpe-web.base.color.orange.1000}"
81
+ }
82
+ },
83
+ "border": {
84
+ "critical": {
85
+ "$type": "color",
86
+ "$value": "{hpe-web.color.foreground.critical}"
87
+ },
88
+ "default": {
89
+ "$type": "color",
90
+ "$value": "{hpe-web.base.color.white.opacity36}",
91
+ "$description": "Default border color."
92
+ },
93
+ "disabled": {
94
+ "$type": "color",
95
+ "$value": "{hpe-web.base.color.white.opacity12}",
96
+ "$description": "Disabled color for borders. Using disabled colors ensures that disabled components are consistently styled."
97
+ },
98
+ "ok": {
99
+ "$type": "color",
100
+ "$value": "{hpe-web.deprecated.base.color.green.400}"
101
+ },
102
+ "primary": {
103
+ "$type": "color",
104
+ "$value": "{hpe-web.base.color.green.600}"
105
+ },
106
+ "selected": {
107
+ "$type": "color",
108
+ "$value": "{hpe-web.color.foreground.primary}"
109
+ },
110
+ "strong": {
111
+ "$type": "color",
112
+ "$value": "{hpe-web.base.color.white.opacity72}",
113
+ "$description": "Default border color."
114
+ },
115
+ "warning": {
116
+ "$type": "color",
117
+ "$value": "{hpe-web.color.foreground.warning}"
118
+ },
119
+ "weak": {
120
+ "$type": "color",
121
+ "$value": "{hpe-web.base.color.white.opacity12}"
122
+ }
123
+ },
124
+ "decorative": {
125
+ "black": {
126
+ "$type": "color",
127
+ "$value": "{hpe-web.base.color.black.opacity100}"
128
+ },
129
+ "blue": {
130
+ "$type": "color",
131
+ "$value": "{hpe-web.base.color.blue.500}",
132
+ "$description": "Use for decorative purposes when color has no specific meaning."
133
+ },
134
+ "brand": {
135
+ "$type": "color",
136
+ "$value": "{hpe-web.base.color.green.600}",
137
+ "$description": "The brand color."
138
+ },
139
+ "cyan": {
140
+ "$type": "color",
141
+ "$value": "{hpe-web.base.color.cyan.400}",
142
+ "$description": "Use for decorative purposes when color has no specific meaning."
143
+ },
144
+ "green": {
145
+ "$type": "color",
146
+ "$value": "{hpe-web.base.color.green.700}",
147
+ "$description": "Use for decorative purposes when color has no specific meaning."
148
+ },
149
+ "neutral": {
150
+ "$type": "color",
151
+ "$value": "{hpe-web.base.color.grey.500}",
152
+ "$description": "Highest emphasis variant of neutral palette."
153
+ },
154
+ "neutral-strong": {
155
+ "$type": "color",
156
+ "$value": "{hpe-web.base.color.grey.400}",
157
+ "$description": "Highest emphasis variant of neutral palette."
158
+ },
159
+ "purple": {
160
+ "$type": "color",
161
+ "$value": "{hpe-web.base.color.purple.400}",
162
+ "$description": "Use for decorative purposes when color has no specific meaning."
163
+ },
164
+ "white": {
165
+ "$type": "color",
166
+ "$value": "{hpe-web.base.color.white.100}"
167
+ }
168
+ },
169
+ "foreground": {
170
+ "critical": {
171
+ "$type": "color",
172
+ "$value": "{hpe-web.base.color.red.500}",
173
+ "$description": "Use for foreground regions communicating error or danger. Often used to color values in a meter or progress bar. Keywords: status"
174
+ },
175
+ "ok": {
176
+ "$type": "color",
177
+ "$value": "{hpe-web.base.color.green.550}",
178
+ "$description": "Use for foreground regions communicating success, completion, or a normal/ok status. Often used to color values in a meter or progress bar. Keywords: status"
179
+ },
180
+ "primary": {
181
+ "$type": "color",
182
+ "$value": "{hpe-web.base.color.green.550}"
183
+ },
184
+ "unknown": {
185
+ "$type": "color",
186
+ "$value": "{hpe-web.base.color.grey.600}",
187
+ "$description": "Use for foreground regions communicating unknown status. Often used to color values in a meter or progress bar. Keywords: status"
188
+ },
189
+ "warning": {
190
+ "$type": "color",
191
+ "$value": "{hpe-web.base.color.orange.500}",
192
+ "$description": "Use for foreground regions communicating warning or caution. Often used to color values in a meter or progress bar. Keywords: status"
193
+ }
194
+ },
195
+ "icon": {
196
+ "critical": {
197
+ "$type": "color",
198
+ "$value": "{hpe-web.color.foreground.critical}"
199
+ },
200
+ "default": {
201
+ "$type": "color",
202
+ "$value": "{hpe-web.color.text.default}",
203
+ "$description": "Default icon color."
204
+ },
205
+ "disabled": {
206
+ "$type": "color",
207
+ "$value": "{hpe-web.color.text.disabled}",
208
+ "$description": "Disabled color for icons. Using disabled colors ensures that disabled components are consistently styled."
209
+ },
210
+ "info": {
211
+ "$type": "color",
212
+ "$value": "{hpe-web.base.color.blue.200}"
213
+ },
214
+ "neutral": {
215
+ "$type": "color",
216
+ "$value": "{hpe-web.base.color.white.100}"
217
+ },
218
+ "ok": {
219
+ "$type": "color",
220
+ "$value": "{hpe-web.base.color.green.550}"
221
+ },
222
+ "onStrong": {
223
+ "$type": "color",
224
+ "$value": "{hpe-web.base.color.grey.1000}",
225
+ "$description": "Icon color to be used on strong backgrounds. For example, background-neutral-xstrong."
226
+ },
227
+ "primary": {
228
+ "$type": "color",
229
+ "$value": "{hpe-web.color.decorative.brand}",
230
+ "$description": "High emphasis color for icons that should draw from the primary palette. Often used to highlight that interacting with a given element will result in an action."
231
+ },
232
+ "primary-strong": {
233
+ "$type": "color",
234
+ "$value": "{hpe-web.base.color.green.600}"
235
+ },
236
+ "strong": {
237
+ "$type": "color",
238
+ "$value": "{hpe-web.color.text.strong}",
239
+ "$description": "Emphasized icon color for increased visual prominence."
240
+ },
241
+ "warning": {
242
+ "$type": "color",
243
+ "$value": "{hpe-web.base.color.orange.500}"
244
+ },
245
+ "weak": {
246
+ "$type": "color",
247
+ "$value": "{hpe-web.color.text.weak}",
248
+ "$description": "Subtle icon color for reduced visual prominence."
249
+ }
250
+ },
251
+ "logo": {
252
+ "element": {
253
+ "$type": "color",
254
+ "$value": "{hpe-web.base.color.green.600}"
255
+ },
256
+ "logoText": {
257
+ "$type": "color",
258
+ "$value": "{hpe-web.base.color.white.100}"
259
+ }
260
+ },
261
+ "text": {
262
+ "critical": {
263
+ "$type": "color",
264
+ "$value": "{hpe-web.base.color.red.500}"
265
+ },
266
+ "default": {
267
+ "$type": "color",
268
+ "$value": "{hpe-web.base.color.grey.200}",
269
+ "$description": "Default text color that is accessible on standard background colors. Also called 'text.default'"
270
+ },
271
+ "disabled": {
272
+ "$type": "color",
273
+ "$value": "{hpe-web.base.color.white.opacity24}",
274
+ "$description": "Disabled color for text. Using disabled colors ensures that disabled components are consistently styled."
275
+ },
276
+ "neutral-strong": {
277
+ "$type": "color",
278
+ "$value": "{hpe-web.base.color.grey.50}"
279
+ },
280
+ "ok": {
281
+ "$type": "color",
282
+ "$value": "{hpe-web.deprecated.base.color.green.400}"
283
+ },
284
+ "onStrong": {
285
+ "$type": "color",
286
+ "$value": "{hpe-web.base.color.grey.1000}",
287
+ "$description": "Text color to be used for text sitting on a primary background. This text and background pairing helps ensure accessibility."
288
+ },
289
+ "primary": {
290
+ "$type": "color",
291
+ "$value": "{hpe-web.base.color.green.400}",
292
+ "$description": "Text color to be used for text sitting on a primary background. This text and background pairing helps ensure accessibility."
293
+ },
294
+ "primary-strong": {
295
+ "$type": "color",
296
+ "$value": "{hpe-web.base.color.green.600}",
297
+ "$description": "Strong variant text color to be used for text sitting on a primary background. This text and background pairing helps ensure accessibility."
298
+ },
299
+ "strong": {
300
+ "$type": "color",
301
+ "$value": "{hpe-web.base.color.white.100}",
302
+ "$description": "Also called 'text.strong'"
303
+ },
304
+ "warning": {
305
+ "$type": "color",
306
+ "$value": "{hpe-web.base.color.orange.500}"
307
+ },
308
+ "weak": {
309
+ "$type": "color",
310
+ "$value": "{hpe-web.base.color.grey.500}",
311
+ "$description": "Subtle text color for reduced visual prominence. Often used for supporting text."
312
+ }
313
+ },
314
+ "transparent": {
315
+ "$type": "color",
316
+ "$value": {
317
+ "colorSpace": "srgb",
318
+ "components": [
319
+ 1,
320
+ 1,
321
+ 1
322
+ ],
323
+ "hex": "#ffffff",
324
+ "alpha": 0
325
+ }
326
+ }
327
+ },
328
+ "deprecated": {
329
+ "deprecated-gradient": {
330
+ "element green": {
331
+ "stop0": {
332
+ "$type": "color",
333
+ "$value": "{hpe-web.base.color.green.550}",
334
+ "$deprecated": true
335
+ },
336
+ "stop100": {
337
+ "$type": "color",
338
+ "$value": {
339
+ "colorSpace": "srgb",
340
+ "components": [
341
+ 0.059,
342
+ 0.063,
343
+ 0.086
344
+ ],
345
+ "hex": "#0f1016",
346
+ "alpha": 0
347
+ },
348
+ "$deprecated": true
349
+ }
350
+ },
351
+ "element neutral": {
352
+ "stop0": {
353
+ "$type": "color",
354
+ "$value": {
355
+ "colorSpace": "srgb",
356
+ "components": [
357
+ 0.361,
358
+ 0.4,
359
+ 0.447
360
+ ],
361
+ "hex": "#5c6672"
362
+ },
363
+ "$deprecated": true
364
+ }
365
+ },
366
+ "neutral": {
367
+ "stop100": {
368
+ "$type": "color",
369
+ "$value": {
370
+ "colorSpace": "srgb",
371
+ "components": [
372
+ 0.114,
373
+ 0.122,
374
+ 0.153
375
+ ],
376
+ "hex": "#1d1f27"
377
+ },
378
+ "$deprecated": true
379
+ }
380
+ },
381
+ "video overlay": {
382
+ "stop0": {
383
+ "$type": "color",
384
+ "$value": {
385
+ "colorSpace": "srgb",
386
+ "components": [
387
+ 0,
388
+ 0,
389
+ 0
390
+ ],
391
+ "hex": "#000000",
392
+ "alpha": 0
393
+ },
394
+ "$deprecated": true
395
+ },
396
+ "stop100": {
397
+ "$type": "color",
398
+ "$value": {
399
+ "colorSpace": "srgb",
400
+ "components": [
401
+ 0,
402
+ 0,
403
+ 0
404
+ ],
405
+ "hex": "#000000",
406
+ "alpha": 0.4
407
+ },
408
+ "$deprecated": true
409
+ }
410
+ }
411
+ }
412
+ }
413
+ }
414
+ }