@adobe/spectrum-tokens 15.6.0 → 15.8.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 (60) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/json/drover.json +159 -12
  3. package/dist/json/variables.json +1145 -101
  4. package/package.json +1 -1
  5. package/src/accordion.json +4 -1
  6. package/src/action-bar.json +8 -2
  7. package/src/alert-banner.json +8 -2
  8. package/src/alert-dialog.json +4 -1
  9. package/src/avatar-group.json +28 -7
  10. package/src/avatar.json +68 -17
  11. package/src/button.json +4 -1
  12. package/src/card.json +83 -22
  13. package/src/checkbox.json +16 -4
  14. package/src/coach-mark.json +20 -5
  15. package/src/collection-card.json +40 -10
  16. package/src/color-loupe.json +8 -2
  17. package/src/color-slider.json +4 -1
  18. package/src/color-wheel.json +2 -2
  19. package/src/combo-box.json +4 -1
  20. package/src/contextual-help.json +4 -1
  21. package/src/divider.json +20 -5
  22. package/src/drop-zone.json +4 -1
  23. package/src/field.json +16 -40
  24. package/src/illustrated-message.json +5 -2
  25. package/src/in-field-progress-circle.json +16 -4
  26. package/src/in-line-alert.json +4 -1
  27. package/src/layout-component.json +793 -1
  28. package/src/layout.json +677 -15
  29. package/src/list-view.json +8 -2
  30. package/src/meter.json +25 -7
  31. package/src/number-field.json +20 -5
  32. package/src/picker.json +4 -1
  33. package/src/progress-bar.json +20 -5
  34. package/src/progress-circle.json +12 -3
  35. package/src/radio-button.json +16 -4
  36. package/src/rating.json +8 -2
  37. package/src/search-field.json +4 -1
  38. package/src/segmented-control.json +8 -2
  39. package/src/select-box.json +16 -4
  40. package/src/side-navigation.json +16 -4
  41. package/src/slider.json +36 -9
  42. package/src/standard-dialog.json +12 -3
  43. package/src/standard-panel.json +11 -3
  44. package/src/status-light.json +16 -4
  45. package/src/steplist.json +40 -13
  46. package/src/swatch.json +20 -5
  47. package/src/switch.json +16 -4
  48. package/src/table.json +40 -16
  49. package/src/tabs.json +16 -4
  50. package/src/tag-field.json +28 -7
  51. package/src/takeover-dialog.json +6 -2
  52. package/src/text-area.json +8 -2
  53. package/src/text-field.json +4 -1
  54. package/src/thumbnail.json +48 -12
  55. package/src/toast.json +8 -2
  56. package/src/tooltip.json +8 -5
  57. package/src/tree-view.json +8 -2
  58. package/src/user-card.json +32 -8
  59. package/test/checkSetsUnique.js +9 -0
  60. package/test/sizeRefinements.test.js +261 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # [**@adobe/spectrum-tokens**](https://github.com/adobe/spectrum-design-data)
2
2
 
3
+ ## 15.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1503](https://github.com/adobe/spectrum-design-data/pull/1503) [`0b8924f`](https://github.com/adobe/spectrum-design-data/commit/0b8924f15646d42b4787537648f079eb86d0c9c3) Thanks [@NateBaldwinDesign](https://github.com/NateBaldwinDesign)! - Refine size tokens per the Size semantic tokens RFC (SDS-16264, SDS-16083).
8
+ - **New shared tokens**: 149 added (`banner-*`, `base-*`, `container-*`, `size-*`, `field-width-*`).
9
+ - **Deprecations**: 231 deprecated, 17 with no replacement; 45 computed or platform tokens stay.
10
+ - **Calculated sizing**: 6 replacements are calculated (input height x 4, media width / ratio).
11
+ - **Mobile**: 59 shared tokens get a mobile value (x 1.25, half up); 4 widths keep their S2
12
+ mobile values. 11 component tokens stay active at their S2 sizes: 3 color controls, 7 color
13
+ area, wheel and handle sizes (x 1.25 on mobile), and the thumbnail checkerboard (4px).
14
+ - **Width exceptions**: `illustrated-message-vertical-maximum-width` is 352px,
15
+ `card-minimum-width-large` is 288px, and both dialog minimum widths stay 288px,
16
+ on desktop and mobile.
17
+ - **Divider and tooltip tip**: divider L is 4px desktop, 5px mobile; tooltip tip is 4x8px, 5x10px.
18
+ - **Value changes**: `field-width-*` return at 144/192/240/288px; divider minimum length is 16px.
19
+ - **Relationships**: 499 repointed to shared tokens, 24 duplicates removed.
20
+ - **visuals/accordion.json**: size M preview width uses `field-width-large`.
21
+ - **design-data-wasm**: rebuilt so the embedded dataset has these changes.
22
+
23
+ <!-- Copyright 2026 Adobe. All rights reserved. -->
24
+
25
+ ## 15.7.0
26
+
27
+ ### Minor Changes
28
+
29
+ - [#1719](https://github.com/adobe/spectrum-design-data/pull/1719) [`e0df9f5`](https://github.com/adobe/spectrum-design-data/commit/e0df9f51102037f1d0799bf8083de923e00795cd) Thanks [@GarthDB](https://github.com/GarthDB)! - Set `lifecycle.replacedBy` on the deprecated `workflow-icon-size-*` tokens.
30
+
31
+ Replacements go by t-shirt position:
32
+ - 50 → `workflow-icon-extra-small`
33
+ - 75 → `workflow-icon-small`
34
+ - 100 → `workflow-icon-medium`
35
+ - 200 → `workflow-icon-large`
36
+ - 300 → `workflow-icon-extra-large`
37
+
38
+ Relationships that bound the old tokens now point at the replacements.
39
+ Desktop medium, large and extra-large sizes shrink on purpose
40
+ (20/22/26 → 18/20/22px) to align icons with line height.
41
+ This is a visible change for consumers of the new tokens,
42
+ and the deprecation comments say so.
43
+ Mobile values and sizes 50 and 75 are unchanged.
44
+ The legacy `layout.json` gains `renamed` and `deprecated_comment`.
45
+
3
46
  ## 15.6.0
4
47
 
5
48
  ### Minor Changes
@@ -1928,6 +1928,12 @@
1928
1928
  "arrow-icon-size-500": "18px",
1929
1929
  "arrow-icon-size-600": "20px",
1930
1930
  "arrow-icon-size-75": "10px",
1931
+ "aspect-ratio-100": 1.25,
1932
+ "aspect-ratio-200": 1.333,
1933
+ "aspect-ratio-300": 1.5,
1934
+ "aspect-ratio-400": 1.78,
1935
+ "aspect-ratio-600": 2.25,
1936
+ "aspect-ratio-700": 2.5,
1931
1937
  "asterisk-icon-size-100": "8px",
1932
1938
  "asterisk-icon-size-200": "10px",
1933
1939
  "asterisk-icon-size-300": "10px",
@@ -1970,13 +1976,37 @@
1970
1976
  "background-opacity-key-focus": "0.1",
1971
1977
  "banner-gap-horizontal": "24px",
1972
1978
  "banner-gap-vertical": "8px",
1979
+ "banner-height": "56px",
1980
+ "banner-maximum-width": "352px",
1981
+ "banner-minimum-height": "56px",
1982
+ "banner-minimum-width-large": "240px",
1983
+ "banner-minimum-width-medium": "192px",
1973
1984
  "banner-padding-horizontal": "16px",
1974
1985
  "banner-padding-horizontal-compact": "8px",
1975
1986
  "banner-padding-vertical": "12px",
1987
+ "banner-width": "896px",
1988
+ "bar-minimum-width-2x-small": "16px",
1989
+ "bar-minimum-width-extra-large": "48px",
1990
+ "bar-minimum-width-extra-small": "20px",
1991
+ "bar-minimum-width-large": "40px",
1992
+ "bar-minimum-width-medium": "32px",
1993
+ "bar-minimum-width-small": "24px",
1976
1994
  "bar-panel-maximum-width": "72px",
1977
1995
  "bar-panel-minimum-width": "40px",
1978
1996
  "bar-panel-spacing-extra-spacious": "20px",
1979
1997
  "bar-panel-width": "56px",
1998
+ "bar-thickness-2x-large": "12px",
1999
+ "bar-thickness-2x-small": "1px",
2000
+ "bar-thickness-3x-large": "16px",
2001
+ "bar-thickness-extra-large": "10px",
2002
+ "bar-thickness-extra-small": "2px",
2003
+ "bar-thickness-large": "8px",
2004
+ "bar-thickness-medium": "6px",
2005
+ "bar-thickness-small": "4px",
2006
+ "bar-width-extra-large": "240px",
2007
+ "bar-width-large": "192px",
2008
+ "bar-width-medium": "144px",
2009
+ "bar-width-small": "120px",
1980
2010
  "base-gap-2x-large": "8px",
1981
2011
  "base-gap-3x-large": "8px",
1982
2012
  "base-gap-4x-large": "10px",
@@ -1985,6 +2015,14 @@
1985
2015
  "base-gap-large": "6px",
1986
2016
  "base-gap-medium": "6px",
1987
2017
  "base-gap-small": "4px",
2018
+ "base-height-2x-large": "56px",
2019
+ "base-height-3x-large": "64px",
2020
+ "base-height-extra-large": "48px",
2021
+ "base-height-extra-small": "20px",
2022
+ "base-height-large": "40px",
2023
+ "base-height-medium": "32px",
2024
+ "base-height-small": "24px",
2025
+ "base-maximum-width": "288px",
1988
2026
  "base-padding-horizontal-2x-large": "20px",
1989
2027
  "base-padding-horizontal-extra-large": "18px",
1990
2028
  "base-padding-horizontal-extra-small": "8px",
@@ -2006,6 +2044,15 @@
2006
2044
  "base-padding-vertical-large": "10px",
2007
2045
  "base-padding-vertical-medium": "7px",
2008
2046
  "base-padding-vertical-small": "4px",
2047
+ "base-visual-size-2x-large": "24px",
2048
+ "base-visual-size-2x-small": "12px",
2049
+ "base-visual-size-3x-large": "32px",
2050
+ "base-visual-size-3x-small": "10px",
2051
+ "base-visual-size-extra-large": "22px",
2052
+ "base-visual-size-extra-small": "14px",
2053
+ "base-visual-size-large": "20px",
2054
+ "base-visual-size-medium": "18px",
2055
+ "base-visual-size-small": "16px",
2009
2056
  "body-cjk-line-height": 1.7,
2010
2057
  "body-cjk-size-l": "16px",
2011
2058
  "body-cjk-size-m": "14px",
@@ -2100,7 +2147,7 @@
2100
2147
  "card-minimum-width-default": "100px",
2101
2148
  "card-minimum-width-extra-large": "340px",
2102
2149
  "card-minimum-width-extra-small": "100px",
2103
- "card-minimum-width-large": "270px",
2150
+ "card-minimum-width-large": "288px",
2104
2151
  "card-minimum-width-medium": "200px",
2105
2152
  "card-minimum-width-small": "150px",
2106
2153
  "card-preview-minimum-height": "130px",
@@ -2211,7 +2258,7 @@
2211
2258
  "color-slider-minimum-length": "80px",
2212
2259
  "color-wheel-border-opacity": "0.1",
2213
2260
  "color-wheel-color-area-margin": "12px",
2214
- "color-wheel-minimum-width": "175px",
2261
+ "color-wheel-minimum-width": "144px",
2215
2262
  "color-wheel-width": "192px",
2216
2263
  "combo-box-minimum-width-multiplier": 2.5,
2217
2264
  "combo-box-visual-to-field-button": "0px",
@@ -2289,6 +2336,31 @@
2289
2336
  "container-gap-large": "20px",
2290
2337
  "container-gap-medium": "16px",
2291
2338
  "container-gap-small": "12px",
2339
+ "container-height": "192px",
2340
+ "container-maximum-width-2x-large": "512px",
2341
+ "container-maximum-width-2x-small": "144px",
2342
+ "container-maximum-width-3x-large": "608px",
2343
+ "container-maximum-width-extra-large": "416px",
2344
+ "container-maximum-width-extra-small": "192px",
2345
+ "container-maximum-width-large": "352px",
2346
+ "container-maximum-width-medium": "288px",
2347
+ "container-maximum-width-small": "240px",
2348
+ "container-minimum-height-2x-large": "416px",
2349
+ "container-minimum-height-2x-small": "120px",
2350
+ "container-minimum-height-3x-large": "512px",
2351
+ "container-minimum-height-3x-small": "96px",
2352
+ "container-minimum-height-extra-large": "352px",
2353
+ "container-minimum-height-extra-small": "144px",
2354
+ "container-minimum-height-large": "288px",
2355
+ "container-minimum-height-medium": "240px",
2356
+ "container-minimum-height-small": "192px",
2357
+ "container-minimum-width-2x-large": "352px",
2358
+ "container-minimum-width-3x-large": "416px",
2359
+ "container-minimum-width-extra-large": "288px",
2360
+ "container-minimum-width-extra-small": "120px",
2361
+ "container-minimum-width-large": "240px",
2362
+ "container-minimum-width-medium": "192px",
2363
+ "container-minimum-width-small": "144px",
2292
2364
  "container-padding-2x-large": "32px",
2293
2365
  "container-padding-2x-small": "6px",
2294
2366
  "container-padding-3x-large": "40px",
@@ -2297,11 +2369,23 @@
2297
2369
  "container-padding-large": "20px",
2298
2370
  "container-padding-medium": "16px",
2299
2371
  "container-padding-small": "12px",
2372
+ "container-width-2x-large": "352px",
2373
+ "container-width-3x-large": "416px",
2374
+ "container-width-extra-large": "288px",
2375
+ "container-width-extra-small": "120px",
2376
+ "container-width-large": "240px",
2377
+ "container-width-medium": "192px",
2378
+ "container-width-small": "144px",
2300
2379
  "contextual-help-body-font-size": "14px",
2301
2380
  "contextual-help-body-size": "14px",
2302
2381
  "contextual-help-minimum-width": "268px",
2303
2382
  "contextual-help-title-font-size": "16px",
2304
2383
  "contextual-help-title-size": "16px",
2384
+ "control-size-extra-large": "20px",
2385
+ "control-size-extra-small": "12px",
2386
+ "control-size-large": "18px",
2387
+ "control-size-medium": "16px",
2388
+ "control-size-small": "14px",
2305
2389
  "corner-radius-0": "0px",
2306
2390
  "corner-radius-100": "4px",
2307
2391
  "corner-radius-1000": 0.5,
@@ -2415,7 +2499,7 @@
2415
2499
  "drop-zone-border-dash-gap": "6px",
2416
2500
  "drop-zone-border-dash-length": "8px",
2417
2501
  "drop-zone-cjk-title-font-size": "18px",
2418
- "drop-zone-content-maximum-width": "380px",
2502
+ "drop-zone-content-maximum-width": "352px",
2419
2503
  "drop-zone-title-font-size": "20px",
2420
2504
  "drop-zone-width": "428px",
2421
2505
  "field-default-width-extra-large": "240px",
@@ -2460,6 +2544,14 @@
2460
2544
  "field-label-top-to-asterisk-large": "15px",
2461
2545
  "field-label-top-to-asterisk-medium": "12px",
2462
2546
  "field-label-top-to-asterisk-small": "8px",
2547
+ "field-minimum-height-extra-large": "64px",
2548
+ "field-minimum-height-large": "56px",
2549
+ "field-minimum-height-medium": "40px",
2550
+ "field-minimum-height-small": "32px",
2551
+ "field-minimum-width-extra-large": "240px",
2552
+ "field-minimum-width-large": "192px",
2553
+ "field-minimum-width-medium": "144px",
2554
+ "field-minimum-width-small": "120px",
2463
2555
  "field-text-to-alert-icon-extra-large": "18px",
2464
2556
  "field-text-to-alert-icon-large": "15px",
2465
2557
  "field-text-to-alert-icon-medium": "12px",
@@ -2496,11 +2588,13 @@
2496
2588
  "field-top-to-validation-icon-large": "14px",
2497
2589
  "field-top-to-validation-icon-medium": "11px",
2498
2590
  "field-top-to-validation-icon-small": "7px",
2499
- "field-width": "192px",
2500
- "field-width-extra-large": "240px",
2501
- "field-width-large": "224px",
2502
- "field-width-medium": "208px",
2503
- "field-width-small": "192px",
2591
+ "field-width": "144px",
2592
+ "field-width-2x-large": "352px",
2593
+ "field-width-3x-large": "416px",
2594
+ "field-width-extra-large": "288px",
2595
+ "field-width-large": "240px",
2596
+ "field-width-medium": "192px",
2597
+ "field-width-small": "144px",
2504
2598
  "floating-action-button-drop-shadow-blur": "12px",
2505
2599
  "floating-action-button-drop-shadow-y": "4px",
2506
2600
  "focus-indicator-gap": "2px",
@@ -2579,7 +2673,7 @@
2579
2673
  "illustrated-message-large-body-font-size": "14px",
2580
2674
  "illustrated-message-large-cjk-title-font-size": "20px",
2581
2675
  "illustrated-message-large-title-font-size": "22px",
2582
- "illustrated-message-maximum-width": "380px",
2676
+ "illustrated-message-maximum-width": "352px",
2583
2677
  "illustrated-message-medium-body-font-size": "14px",
2584
2678
  "illustrated-message-medium-cjk-title-font-size": "18px",
2585
2679
  "illustrated-message-medium-title-font-size": "20px",
@@ -2587,7 +2681,7 @@
2587
2681
  "illustrated-message-small-cjk-title-font-size": "14px",
2588
2682
  "illustrated-message-small-title-font-size": "16px",
2589
2683
  "illustrated-message-title-size": "22px",
2590
- "illustrated-message-vertical-maximum-width": "380px",
2684
+ "illustrated-message-vertical-maximum-width": "352px",
2591
2685
  "in-field-button-edge-to-disclosure-icon-stacked-extra-large": "16px",
2592
2686
  "in-field-button-edge-to-disclosure-icon-stacked-large": "13px",
2593
2687
  "in-field-button-edge-to-disclosure-icon-stacked-medium": "9px",
@@ -2654,14 +2748,27 @@
2654
2748
  "list-indent-medium": "16px",
2655
2749
  "list-item-gap-medium": "8px",
2656
2750
  "list-item-gap-small": "2px",
2751
+ "list-item-height-extra-large": "56px",
2752
+ "list-item-height-extra-small": "24px",
2753
+ "list-item-height-large": "48px",
2754
+ "list-item-height-medium": "40px",
2755
+ "list-item-height-small": "32px",
2756
+ "list-item-minimum-height": "40px",
2757
+ "list-item-minimum-width-medium": "192px",
2758
+ "list-item-minimum-width-small": "144px",
2657
2759
  "list-item-padding-horizontal": "6px",
2658
2760
  "list-item-padding-vertical-regular": "4px",
2659
2761
  "list-item-padding-vertical-spacious": "8px",
2762
+ "list-item-width-extra-large": "240px",
2763
+ "list-item-width-large": "192px",
2764
+ "list-item-width-medium": "144px",
2765
+ "list-item-width-small": "120px",
2660
2766
  "list-view-end-edge-to-content": "6px",
2661
2767
  "list-view-item-bottom-corner-radius": "8px",
2662
2768
  "list-view-item-top-corner-radius": "8px",
2663
2769
  "list-view-minimum-height": "40px",
2664
2770
  "list-view-minimum-width": "200px",
2771
+ "list-width": "192px",
2665
2772
  "menu-item-edge-to-content-not-selected-extra-large": "45px",
2666
2773
  "menu-item-edge-to-content-not-selected-large": "38px",
2667
2774
  "menu-item-edge-to-content-not-selected-medium": "32px",
@@ -2826,6 +2933,34 @@
2826
2933
  "side-navigation-with-icon-third-level-edge-to-text": "44px",
2827
2934
  "single-calendar-popover-minimum-height": "320px",
2828
2935
  "single-calendar-popover-minimum-width": "320px",
2936
+ "size-100": "8px",
2937
+ "size-1000": "96px",
2938
+ "size-1100": "120px",
2939
+ "size-1200": "144px",
2940
+ "size-1300": "192px",
2941
+ "size-1400": "240px",
2942
+ "size-1500": "288px",
2943
+ "size-1600": "352px",
2944
+ "size-1700": "416px",
2945
+ "size-1800": "512px",
2946
+ "size-1900": "608px",
2947
+ "size-200": "12px",
2948
+ "size-2000": "736px",
2949
+ "size-25": "1px",
2950
+ "size-300": "16px",
2951
+ "size-350": "20px",
2952
+ "size-400": "24px",
2953
+ "size-450": "28px",
2954
+ "size-50": "2px",
2955
+ "size-500": "32px",
2956
+ "size-550": "36px",
2957
+ "size-600": "40px",
2958
+ "size-700": "48px",
2959
+ "size-75": "4px",
2960
+ "size-750": "56px",
2961
+ "size-800": "64px",
2962
+ "size-85": "6px",
2963
+ "size-900": "80px",
2829
2964
  "slider-bottom-to-handle-extra-large": "14px",
2830
2965
  "slider-bottom-to-handle-large": "11px",
2831
2966
  "slider-bottom-to-handle-medium": "8px",
@@ -3233,8 +3368,8 @@
3233
3368
  "toast-top-to-workflow-icon": "18px",
3234
3369
  "tooltip-maximum-width": "160px",
3235
3370
  "tooltip-tip-corner-radius": "1px",
3236
- "tooltip-tip-height": "5px",
3237
- "tooltip-tip-width": "10px",
3371
+ "tooltip-tip-height": "4px",
3372
+ "tooltip-tip-width": "8px",
3238
3373
  "tray-top-to-content-area": "4px",
3239
3374
  "tree-view-bottom-to-label": "12px",
3240
3375
  "tree-view-disclosure-indicator-height": "32px",
@@ -3276,6 +3411,18 @@
3276
3411
  "user-card-minimum-height-title-below-large": "244px",
3277
3412
  "user-card-minimum-height-title-below-medium": "224px",
3278
3413
  "user-card-minimum-height-title-below-small": "212px",
3414
+ "visual-size-100": "24px",
3415
+ "visual-size-1000": "96px",
3416
+ "visual-size-200": "28px",
3417
+ "visual-size-300": "32px",
3418
+ "visual-size-400": "36px",
3419
+ "visual-size-50": "16px",
3420
+ "visual-size-500": "40px",
3421
+ "visual-size-600": "48px",
3422
+ "visual-size-700": "56px",
3423
+ "visual-size-75": "20px",
3424
+ "visual-size-800": "64px",
3425
+ "visual-size-900": "80px",
3279
3426
  "visual-to-control-100": "8px",
3280
3427
  "window-to-edge": "40px",
3281
3428
  "workflow-icon-2x-large": "24px",