@adobe/spectrum-tokens 14.5.0 → 14.6.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.
- package/CHANGELOG.md +9 -0
- package/dist/json/drover.json +308 -0
- package/dist/json/variables.json +4031 -448
- package/naming-exceptions.json +3539 -628
- package/package.json +1 -1
- package/schemas/token-types/typography-scale.json +82 -0
- package/snapshots/validation-snapshot.json +175 -0
- package/src/color-aliases.json +262 -22
- package/src/color-component.json +159 -15
- package/src/icons.json +454 -23
- package/src/layout-component.json +1209 -248
- package/src/layout.json +133 -34
- package/src/semantic-color-palette.json +45 -5
- package/src/typography.json +734 -36
- package/test/checkComponentProps.js +6 -4
package/package.json
CHANGED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/typography-scale.json",
|
|
4
|
+
"title": "Typography Scale",
|
|
5
|
+
"description": "A composite token that pairs a font size with its corresponding line height at a single typographic tier. Values change based on platform scale (desktop/mobile).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "set.json"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"$schema": {
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/typography-scale.json"
|
|
15
|
+
},
|
|
16
|
+
"sets": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"desktop": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"value": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"fontSize": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"lineHeight": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"required": ["fontSize", "lineHeight"],
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
},
|
|
35
|
+
"uuid": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$",
|
|
38
|
+
"format": "uuid"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": ["value", "uuid"],
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
},
|
|
44
|
+
"mobile": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {
|
|
47
|
+
"value": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"fontSize": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"lineHeight": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": ["fontSize", "lineHeight"],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
},
|
|
60
|
+
"uuid": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"pattern": "^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$",
|
|
63
|
+
"format": "uuid"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": ["value", "uuid"],
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": ["desktop", "mobile"],
|
|
71
|
+
"additionalProperties": false
|
|
72
|
+
},
|
|
73
|
+
"component": {},
|
|
74
|
+
"private": {},
|
|
75
|
+
"deprecated": {},
|
|
76
|
+
"deprecated_comment": {},
|
|
77
|
+
"replaced_by": {},
|
|
78
|
+
"description": {},
|
|
79
|
+
"uuid": {}
|
|
80
|
+
},
|
|
81
|
+
"required": ["sets", "uuid"]
|
|
82
|
+
}
|
|
@@ -120,6 +120,13 @@
|
|
|
120
120
|
"severity": "info",
|
|
121
121
|
"message": "Known naming exception: 'select-box-selected-border-color' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
122
122
|
},
|
|
123
|
+
{
|
|
124
|
+
"file": "./src/color-component.json",
|
|
125
|
+
"token": "stack-item-background-selected-color-keyboard-focus",
|
|
126
|
+
"rule_id": "SPEC-007",
|
|
127
|
+
"severity": "warning",
|
|
128
|
+
"message": "Token 'stack-item-background-selected-color-keyboard-focus' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
129
|
+
},
|
|
123
130
|
{
|
|
124
131
|
"file": "./src/color-component.json",
|
|
125
132
|
"token": "stack-item-selected-background-color-default",
|
|
@@ -253,6 +260,62 @@
|
|
|
253
260
|
"severity": "info",
|
|
254
261
|
"message": "Known naming exception: 'tree-view-selected-row-background-hover' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
255
262
|
},
|
|
263
|
+
{
|
|
264
|
+
"file": "./src/icons.json",
|
|
265
|
+
"token": "blue-icon-background-color",
|
|
266
|
+
"rule_id": "SPEC-007",
|
|
267
|
+
"severity": "warning",
|
|
268
|
+
"message": "Token 'blue-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"file": "./src/icons.json",
|
|
272
|
+
"token": "brown-icon-background-color",
|
|
273
|
+
"rule_id": "SPEC-007",
|
|
274
|
+
"severity": "warning",
|
|
275
|
+
"message": "Token 'brown-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"file": "./src/icons.json",
|
|
279
|
+
"token": "celery-icon-background-color",
|
|
280
|
+
"rule_id": "SPEC-007",
|
|
281
|
+
"severity": "warning",
|
|
282
|
+
"message": "Token 'celery-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"file": "./src/icons.json",
|
|
286
|
+
"token": "chartreuse-icon-background-color",
|
|
287
|
+
"rule_id": "SPEC-007",
|
|
288
|
+
"severity": "warning",
|
|
289
|
+
"message": "Token 'chartreuse-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"file": "./src/icons.json",
|
|
293
|
+
"token": "cinnamon-icon-background-color",
|
|
294
|
+
"rule_id": "SPEC-007",
|
|
295
|
+
"severity": "warning",
|
|
296
|
+
"message": "Token 'cinnamon-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"file": "./src/icons.json",
|
|
300
|
+
"token": "cyan-icon-background-color",
|
|
301
|
+
"rule_id": "SPEC-007",
|
|
302
|
+
"severity": "warning",
|
|
303
|
+
"message": "Token 'cyan-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"file": "./src/icons.json",
|
|
307
|
+
"token": "fuchsia-icon-background-color",
|
|
308
|
+
"rule_id": "SPEC-007",
|
|
309
|
+
"severity": "warning",
|
|
310
|
+
"message": "Token 'fuchsia-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"file": "./src/icons.json",
|
|
314
|
+
"token": "green-icon-background-color",
|
|
315
|
+
"rule_id": "SPEC-007",
|
|
316
|
+
"severity": "warning",
|
|
317
|
+
"message": "Token 'green-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
318
|
+
},
|
|
256
319
|
{
|
|
257
320
|
"file": "./src/icons.json",
|
|
258
321
|
"token": "icon-color-disabled-primary",
|
|
@@ -267,6 +330,111 @@
|
|
|
267
330
|
"severity": "info",
|
|
268
331
|
"message": "Known naming exception: 'icon-color-emphasized-background' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
269
332
|
},
|
|
333
|
+
{
|
|
334
|
+
"file": "./src/icons.json",
|
|
335
|
+
"token": "indigo-icon-background-color",
|
|
336
|
+
"rule_id": "SPEC-007",
|
|
337
|
+
"severity": "warning",
|
|
338
|
+
"message": "Token 'indigo-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"file": "./src/icons.json",
|
|
342
|
+
"token": "inverse-icon-background-color",
|
|
343
|
+
"rule_id": "SPEC-007",
|
|
344
|
+
"severity": "warning",
|
|
345
|
+
"message": "Token 'inverse-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"file": "./src/icons.json",
|
|
349
|
+
"token": "magenta-icon-background-color",
|
|
350
|
+
"rule_id": "SPEC-007",
|
|
351
|
+
"severity": "warning",
|
|
352
|
+
"message": "Token 'magenta-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"file": "./src/icons.json",
|
|
356
|
+
"token": "orange-icon-background-color",
|
|
357
|
+
"rule_id": "SPEC-007",
|
|
358
|
+
"severity": "warning",
|
|
359
|
+
"message": "Token 'orange-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"file": "./src/icons.json",
|
|
363
|
+
"token": "pink-icon-background-color",
|
|
364
|
+
"rule_id": "SPEC-007",
|
|
365
|
+
"severity": "warning",
|
|
366
|
+
"message": "Token 'pink-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"file": "./src/icons.json",
|
|
370
|
+
"token": "primary-icon-color-default",
|
|
371
|
+
"rule_id": "SPEC-007",
|
|
372
|
+
"severity": "warning",
|
|
373
|
+
"message": "Token 'primary-icon-color-default' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"file": "./src/icons.json",
|
|
377
|
+
"token": "primary-icon-color-disabled",
|
|
378
|
+
"rule_id": "SPEC-007",
|
|
379
|
+
"severity": "warning",
|
|
380
|
+
"message": "Token 'primary-icon-color-disabled' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"file": "./src/icons.json",
|
|
384
|
+
"token": "primary-icon-color-down",
|
|
385
|
+
"rule_id": "SPEC-007",
|
|
386
|
+
"severity": "warning",
|
|
387
|
+
"message": "Token 'primary-icon-color-down' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"file": "./src/icons.json",
|
|
391
|
+
"token": "primary-icon-color-hover",
|
|
392
|
+
"rule_id": "SPEC-007",
|
|
393
|
+
"severity": "warning",
|
|
394
|
+
"message": "Token 'primary-icon-color-hover' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"file": "./src/icons.json",
|
|
398
|
+
"token": "purple-icon-background-color",
|
|
399
|
+
"rule_id": "SPEC-007",
|
|
400
|
+
"severity": "warning",
|
|
401
|
+
"message": "Token 'purple-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"file": "./src/icons.json",
|
|
405
|
+
"token": "red-icon-background-color",
|
|
406
|
+
"rule_id": "SPEC-007",
|
|
407
|
+
"severity": "warning",
|
|
408
|
+
"message": "Token 'red-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"file": "./src/icons.json",
|
|
412
|
+
"token": "seafoam-icon-background-color",
|
|
413
|
+
"rule_id": "SPEC-007",
|
|
414
|
+
"severity": "warning",
|
|
415
|
+
"message": "Token 'seafoam-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"file": "./src/icons.json",
|
|
419
|
+
"token": "silver-icon-background-color",
|
|
420
|
+
"rule_id": "SPEC-007",
|
|
421
|
+
"severity": "warning",
|
|
422
|
+
"message": "Token 'silver-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"file": "./src/icons.json",
|
|
426
|
+
"token": "turquoise-icon-background-color",
|
|
427
|
+
"rule_id": "SPEC-007",
|
|
428
|
+
"severity": "warning",
|
|
429
|
+
"message": "Token 'turquoise-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"file": "./src/icons.json",
|
|
433
|
+
"token": "yellow-icon-background-color",
|
|
434
|
+
"rule_id": "SPEC-007",
|
|
435
|
+
"severity": "warning",
|
|
436
|
+
"message": "Token 'yellow-icon-background-color' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
437
|
+
},
|
|
270
438
|
{
|
|
271
439
|
"file": "./src/layout-component.json",
|
|
272
440
|
"token": "accordion-focus-indicator-gap",
|
|
@@ -771,6 +939,13 @@
|
|
|
771
939
|
"severity": "info",
|
|
772
940
|
"message": "Known naming exception: 'focus-indicator-gap' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
773
941
|
},
|
|
942
|
+
{
|
|
943
|
+
"file": "./src/layout.json",
|
|
944
|
+
"token": "focus-indicator-side",
|
|
945
|
+
"rule_id": "SPEC-007",
|
|
946
|
+
"severity": "warning",
|
|
947
|
+
"message": "Token 'focus-indicator-side' does not roundtrip through name-object generation rules and is not in the exceptions allowlist"
|
|
948
|
+
},
|
|
774
949
|
{
|
|
775
950
|
"file": "./src/layout.json",
|
|
776
951
|
"token": "focus-indicator-thickness",
|