@adobe/spectrum-tokens 15.0.0 → 15.1.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 +21 -0
- package/dist/json/drover.json +10 -0
- package/dist/json/variables.json +75 -0
- package/naming-exceptions.json +24 -0
- package/package.json +1 -1
- package/schemas/token-types/angle.json +26 -0
- package/snapshots/validation-snapshot.json +28 -0
- package/src/color-aliases.json +15 -0
- package/src/layout.json +35 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# [**@adobe/spectrum-tokens**](https://github.com/adobe/spectrum-design-data)
|
|
2
2
|
|
|
3
|
+
## 15.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1336](https://github.com/adobe/spectrum-design-data/pull/1336) [`9c697cf`](https://github.com/adobe/spectrum-design-data/commit/9c697cfcee3820ddc7bc3688ea000552de708641) Thanks [@GarthDB](https://github.com/GarthDB)! - Resolve SPEC-027 dangling `tokenBindings` via design-owner triage
|
|
8
|
+
(spectrum-design-data-vpk.1).
|
|
9
|
+
- **components/cards.json**: drop 4 `card-selection-background-corner-radius-*`
|
|
10
|
+
bindings — card-selection only has background-size/-color tokens, no
|
|
11
|
+
corner-radius family exists.
|
|
12
|
+
- **components/menu.json**: drop the `popover-submenu-to-menu-item-position`
|
|
13
|
+
binding — no "submenu" token exists anywhere in the dataset.
|
|
14
|
+
- **components/alert-dialog.json**: drop the `alert-dialog-top-to-alert-icon`
|
|
15
|
+
binding — no matching spacing token exists in the live Figma spec.
|
|
16
|
+
- **components/date-picker.json**: drop the 3 `range-border-dash-*` bindings —
|
|
17
|
+
the live spec documents a solid range fill, not a dashed border.
|
|
18
|
+
- **tokens/token-types/angle.json**: add a new `angle` token type (degrees) for
|
|
19
|
+
rotation/direction values like gradient angle.
|
|
20
|
+
- **tokens**: define 8 tokens confirmed live in Figma but missing from the
|
|
21
|
+
corpus — tabs gap/indicator-thickness, `neutral-content-color-selected-*`,
|
|
22
|
+
date-picker strikethrough thickness/angle and in-field-button gap.
|
|
23
|
+
|
|
3
24
|
## 15.0.0
|
|
4
25
|
|
|
5
26
|
### Major Changes
|
package/dist/json/drover.json
CHANGED
|
@@ -461,6 +461,9 @@
|
|
|
461
461
|
"neutral-content-color-focus-hover": "rgb(19, 19, 19)",
|
|
462
462
|
"neutral-content-color-hover": "rgb(19, 19, 19)",
|
|
463
463
|
"neutral-content-color-key-focus": "rgb(19, 19, 19)",
|
|
464
|
+
"neutral-content-color-selected-default": "rgb(41, 41, 41)",
|
|
465
|
+
"neutral-content-color-selected-hover": "rgb(19, 19, 19)",
|
|
466
|
+
"neutral-content-color-selected-key-focus": "rgb(19, 19, 19)",
|
|
464
467
|
"neutral-subdued-background-color-default": "rgb(80, 80, 80)",
|
|
465
468
|
"neutral-subdued-background-color-down": "rgb(41, 41, 41)",
|
|
466
469
|
"neutral-subdued-background-color-hover": "rgb(41, 41, 41)",
|
|
@@ -1222,6 +1225,9 @@
|
|
|
1222
1225
|
"neutral-content-color-focus-hover": "rgb(242, 242, 242)",
|
|
1223
1226
|
"neutral-content-color-hover": "rgb(242, 242, 242)",
|
|
1224
1227
|
"neutral-content-color-key-focus": "rgb(242, 242, 242)",
|
|
1228
|
+
"neutral-content-color-selected-default": "rgb(219, 219, 219)",
|
|
1229
|
+
"neutral-content-color-selected-hover": "rgb(242, 242, 242)",
|
|
1230
|
+
"neutral-content-color-selected-key-focus": "rgb(242, 242, 242)",
|
|
1225
1231
|
"neutral-subdued-background-color-default": "rgb(109, 109, 109)",
|
|
1226
1232
|
"neutral-subdued-background-color-down": "rgb(68, 68, 68)",
|
|
1227
1233
|
"neutral-subdued-background-color-hover": "rgb(68, 68, 68)",
|
|
@@ -2160,6 +2166,7 @@
|
|
|
2160
2166
|
"date-field-minimum-width": "152px",
|
|
2161
2167
|
"date-field-text-to-visual": "20px",
|
|
2162
2168
|
"date-picker-minimum-width": "152px",
|
|
2169
|
+
"date-picker-text-to-in-field-button": "20px",
|
|
2163
2170
|
"date-picker-text-to-visual": "0px",
|
|
2164
2171
|
"date-picker-visual-to-field-button": "0px",
|
|
2165
2172
|
"detail-cjk-line-height": 1.5,
|
|
@@ -2740,6 +2747,7 @@
|
|
|
2740
2747
|
"steplist-visual-size-large": "24px",
|
|
2741
2748
|
"steplist-visual-size-medium": "16px",
|
|
2742
2749
|
"steplist-visual-size-small": "8px",
|
|
2750
|
+
"strikethrough-day-thickness": "2px",
|
|
2743
2751
|
"swatch-border-opacity": "0.42",
|
|
2744
2752
|
"swatch-disabled-icon-border-opacity": "0.42",
|
|
2745
2753
|
"swatch-group-border-opacity": "0.2",
|
|
@@ -2801,6 +2809,7 @@
|
|
|
2801
2809
|
"tab-item-start-to-edge-medium": "12px",
|
|
2802
2810
|
"tab-item-start-to-edge-quiet": "0px",
|
|
2803
2811
|
"tab-item-start-to-edge-small": "12px",
|
|
2812
|
+
"tab-item-to-tab-item-compact-horizontal-medium": "24px",
|
|
2804
2813
|
"tab-item-to-tab-item-horizontal-extra-large": "30px",
|
|
2805
2814
|
"tab-item-to-tab-item-horizontal-large": "27px",
|
|
2806
2815
|
"tab-item-to-tab-item-horizontal-medium": "24px",
|
|
@@ -2825,6 +2834,7 @@
|
|
|
2825
2834
|
"tab-item-top-to-workflow-icon-large": "17px",
|
|
2826
2835
|
"tab-item-top-to-workflow-icon-medium": "15px",
|
|
2827
2836
|
"tab-item-top-to-workflow-icon-small": "13px",
|
|
2837
|
+
"tab-selection-indicator-thickness": "2px",
|
|
2828
2838
|
"table-border-divider-width": "1px",
|
|
2829
2839
|
"table-checkbox-to-text": "24px",
|
|
2830
2840
|
"table-column-header-row-bottom-to-text-extra-large": "13px",
|
package/dist/json/variables.json
CHANGED
|
@@ -8035,6 +8035,60 @@
|
|
|
8035
8035
|
},
|
|
8036
8036
|
"uuid": "c2c538e0-6f8d-4586-953a-b98ef40c9eca"
|
|
8037
8037
|
},
|
|
8038
|
+
"neutral-content-color-selected-default": {
|
|
8039
|
+
"ref": "{gray-800}",
|
|
8040
|
+
"sets": {
|
|
8041
|
+
"light": {
|
|
8042
|
+
"value": "rgb(41, 41, 41)",
|
|
8043
|
+
"uuid": "2caf1f36-80b9-4659-90be-8d89672bb19f"
|
|
8044
|
+
},
|
|
8045
|
+
"dark": {
|
|
8046
|
+
"value": "rgb(219, 219, 219)",
|
|
8047
|
+
"uuid": "d39fc368-ec71-40cd-85e9-afb07862f2b7"
|
|
8048
|
+
},
|
|
8049
|
+
"wireframe": {
|
|
8050
|
+
"value": "rgb(25, 46, 93)",
|
|
8051
|
+
"uuid": "22e79b14-2a60-4721-8e9b-800fa9e7a128"
|
|
8052
|
+
}
|
|
8053
|
+
},
|
|
8054
|
+
"uuid": "7289003d-78b6-4c61-aada-a3252a7a9bd2"
|
|
8055
|
+
},
|
|
8056
|
+
"neutral-content-color-selected-hover": {
|
|
8057
|
+
"ref": "{gray-900}",
|
|
8058
|
+
"sets": {
|
|
8059
|
+
"light": {
|
|
8060
|
+
"value": "rgb(19, 19, 19)",
|
|
8061
|
+
"uuid": "59093f0d-98b7-4659-bea6-3248ad20e96c"
|
|
8062
|
+
},
|
|
8063
|
+
"dark": {
|
|
8064
|
+
"value": "rgb(242, 242, 242)",
|
|
8065
|
+
"uuid": "90d25d68-afb1-4b2a-9dba-3fe22d44976f"
|
|
8066
|
+
},
|
|
8067
|
+
"wireframe": {
|
|
8068
|
+
"value": "rgb(10, 19, 39)",
|
|
8069
|
+
"uuid": "93fb6cac-b190-4a5a-951f-f5dc4c0d5978"
|
|
8070
|
+
}
|
|
8071
|
+
},
|
|
8072
|
+
"uuid": "018f02b1-2f01-4b48-8161-4a0e9d2eed09"
|
|
8073
|
+
},
|
|
8074
|
+
"neutral-content-color-selected-key-focus": {
|
|
8075
|
+
"ref": "{gray-900}",
|
|
8076
|
+
"sets": {
|
|
8077
|
+
"light": {
|
|
8078
|
+
"value": "rgb(19, 19, 19)",
|
|
8079
|
+
"uuid": "59093f0d-98b7-4659-bea6-3248ad20e96c"
|
|
8080
|
+
},
|
|
8081
|
+
"dark": {
|
|
8082
|
+
"value": "rgb(242, 242, 242)",
|
|
8083
|
+
"uuid": "90d25d68-afb1-4b2a-9dba-3fe22d44976f"
|
|
8084
|
+
},
|
|
8085
|
+
"wireframe": {
|
|
8086
|
+
"value": "rgb(10, 19, 39)",
|
|
8087
|
+
"uuid": "93fb6cac-b190-4a5a-951f-f5dc4c0d5978"
|
|
8088
|
+
}
|
|
8089
|
+
},
|
|
8090
|
+
"uuid": "1b040ae6-315e-49a5-9363-62ba79b139ff"
|
|
8091
|
+
},
|
|
8038
8092
|
"neutral-subdued-background-color-default": {
|
|
8039
8093
|
"sets": {
|
|
8040
8094
|
"light": {
|
|
@@ -24110,6 +24164,10 @@
|
|
|
24110
24164
|
}
|
|
24111
24165
|
}
|
|
24112
24166
|
},
|
|
24167
|
+
"date-picker-text-to-in-field-button": {
|
|
24168
|
+
"value": "20px",
|
|
24169
|
+
"uuid": "19864654-c28c-4ad9-b35d-c669b33c5b9c"
|
|
24170
|
+
},
|
|
24113
24171
|
"disclosure-indicator-top-to-disclosure-icon-extra-large": {
|
|
24114
24172
|
"sets": {
|
|
24115
24173
|
"desktop": {
|
|
@@ -25129,6 +25187,23 @@
|
|
|
25129
25187
|
"value": "80px",
|
|
25130
25188
|
"uuid": "d04e5d81-0b6e-48e7-9e47-744753dfcff3"
|
|
25131
25189
|
},
|
|
25190
|
+
"strikethrough-day-orientation": {
|
|
25191
|
+
"value": -25,
|
|
25192
|
+
"uuid": "e9a6e122-49fc-4d40-880d-1d9006d7154e"
|
|
25193
|
+
},
|
|
25194
|
+
"strikethrough-day-thickness": {
|
|
25195
|
+
"value": "2px",
|
|
25196
|
+
"uuid": "c4e4695b-3838-4bd4-b045-8219c77f6786"
|
|
25197
|
+
},
|
|
25198
|
+
"tab-item-to-tab-item-compact-horizontal-medium": {
|
|
25199
|
+
"ref": "{spacing-400}",
|
|
25200
|
+
"value": "24px",
|
|
25201
|
+
"uuid": "95593667-9f7c-4e5e-a739-8dd479cd082f"
|
|
25202
|
+
},
|
|
25203
|
+
"tab-selection-indicator-thickness": {
|
|
25204
|
+
"value": "2px",
|
|
25205
|
+
"uuid": "181806e5-0216-4b11-a775-9ed4bb8832fc"
|
|
25206
|
+
},
|
|
25132
25207
|
"text-gap-extra-large": {
|
|
25133
25208
|
"value": "2px",
|
|
25134
25209
|
"uuid": "7489ed61-af2a-44ef-b9a9-b4eb226a47fb"
|
package/naming-exceptions.json
CHANGED
|
@@ -1609,6 +1609,30 @@
|
|
|
1609
1609
|
"file": "layout.json",
|
|
1610
1610
|
"category": "state-position",
|
|
1611
1611
|
"reason": "Does not roundtrip through canonical generation rules (category: state-position)"
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
"token": "tab-item-to-tab-item-compact-horizontal-medium",
|
|
1615
|
+
"file": "layout.json",
|
|
1616
|
+
"category": "legacy-preserved",
|
|
1617
|
+
"reason": "legacyKey pinned to the original dangling tokenBindings name (SPEC-027 vpk.1 fix); does not roundtrip through field-order generation"
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
"token": "tab-selection-indicator-thickness",
|
|
1621
|
+
"file": "layout.json",
|
|
1622
|
+
"category": "legacy-preserved",
|
|
1623
|
+
"reason": "legacyKey pinned to the original dangling tokenBindings name (SPEC-027 vpk.1 fix); does not roundtrip through field-order generation"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"token": "strikethrough-day-thickness",
|
|
1627
|
+
"file": "layout.json",
|
|
1628
|
+
"category": "legacy-preserved",
|
|
1629
|
+
"reason": "legacyKey pinned to the original dangling tokenBindings name (SPEC-027 vpk.1 fix); does not roundtrip through field-order generation"
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"token": "strikethrough-day-orientation",
|
|
1633
|
+
"file": "layout.json",
|
|
1634
|
+
"category": "legacy-preserved",
|
|
1635
|
+
"reason": "legacyKey pinned to the original dangling tokenBindings name (SPEC-027 vpk.1 fix); does not roundtrip through field-order generation"
|
|
1612
1636
|
}
|
|
1613
1637
|
]
|
|
1614
1638
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/angle.json",
|
|
4
|
+
"title": "Angle",
|
|
5
|
+
"description": "An angle in degrees, e.g. for rotation or gradient direction. Positive values rotate clockwise from horizontal.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "token.json"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"$schema": {
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/angle.json"
|
|
15
|
+
},
|
|
16
|
+
"value": {
|
|
17
|
+
"type": "number"
|
|
18
|
+
},
|
|
19
|
+
"component": {},
|
|
20
|
+
"private": {},
|
|
21
|
+
"deprecated": {},
|
|
22
|
+
"deprecated_comment": {},
|
|
23
|
+
"description": {},
|
|
24
|
+
"uuid": {}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1016,6 +1016,34 @@
|
|
|
1016
1016
|
"severity": "info",
|
|
1017
1017
|
"message": "Known naming exception: 'side-focus-indicator' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
1018
1018
|
},
|
|
1019
|
+
{
|
|
1020
|
+
"file": "./src/layout.json",
|
|
1021
|
+
"token": "strikethrough-day-orientation",
|
|
1022
|
+
"rule_id": "SPEC-007",
|
|
1023
|
+
"severity": "info",
|
|
1024
|
+
"message": "Known naming exception: 'strikethrough-day-orientation' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"file": "./src/layout.json",
|
|
1028
|
+
"token": "strikethrough-day-thickness",
|
|
1029
|
+
"rule_id": "SPEC-007",
|
|
1030
|
+
"severity": "info",
|
|
1031
|
+
"message": "Known naming exception: 'strikethrough-day-thickness' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"file": "./src/layout.json",
|
|
1035
|
+
"token": "tab-item-to-tab-item-compact-horizontal-medium",
|
|
1036
|
+
"rule_id": "SPEC-007",
|
|
1037
|
+
"severity": "info",
|
|
1038
|
+
"message": "Known naming exception: 'tab-item-to-tab-item-compact-horizontal-medium' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"file": "./src/layout.json",
|
|
1042
|
+
"token": "tab-selection-indicator-thickness",
|
|
1043
|
+
"rule_id": "SPEC-007",
|
|
1044
|
+
"severity": "info",
|
|
1045
|
+
"message": "Known naming exception: 'tab-selection-indicator-thickness' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
1046
|
+
},
|
|
1019
1047
|
{
|
|
1020
1048
|
"file": "./src/menu.json",
|
|
1021
1049
|
"token": "menu-item-edge-to-content-not-selected-extra-large",
|
package/src/color-aliases.json
CHANGED
|
@@ -1620,6 +1620,21 @@
|
|
|
1620
1620
|
"value": "{gray-900}",
|
|
1621
1621
|
"uuid": "c2c538e0-6f8d-4586-953a-b98ef40c9eca"
|
|
1622
1622
|
},
|
|
1623
|
+
"neutral-content-color-selected-default": {
|
|
1624
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/alias.json",
|
|
1625
|
+
"value": "{gray-800}",
|
|
1626
|
+
"uuid": "7289003d-78b6-4c61-aada-a3252a7a9bd2"
|
|
1627
|
+
},
|
|
1628
|
+
"neutral-content-color-selected-hover": {
|
|
1629
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/alias.json",
|
|
1630
|
+
"value": "{gray-900}",
|
|
1631
|
+
"uuid": "018f02b1-2f01-4b48-8161-4a0e9d2eed09"
|
|
1632
|
+
},
|
|
1633
|
+
"neutral-content-color-selected-key-focus": {
|
|
1634
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/alias.json",
|
|
1635
|
+
"value": "{gray-900}",
|
|
1636
|
+
"uuid": "1b040ae6-315e-49a5-9363-62ba79b139ff"
|
|
1637
|
+
},
|
|
1623
1638
|
"neutral-subdued-background-color-default": {
|
|
1624
1639
|
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/color-set.json",
|
|
1625
1640
|
"uuid": "08075b0a-0918-4302-b9af-16734a57b9bb",
|
package/src/layout.json
CHANGED
|
@@ -1819,6 +1819,13 @@
|
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
},
|
|
1822
|
+
"date-picker-text-to-in-field-button": {
|
|
1823
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/dimension.json",
|
|
1824
|
+
"component": "date-picker",
|
|
1825
|
+
"value": "20px",
|
|
1826
|
+
"uuid": "19864654-c28c-4ad9-b35d-c669b33c5b9c",
|
|
1827
|
+
"description": "Spacing between date field value and the in-field calendar button"
|
|
1828
|
+
},
|
|
1822
1829
|
"disclosure-indicator-top-to-disclosure-icon-extra-large": {
|
|
1823
1830
|
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/scale-set.json",
|
|
1824
1831
|
"uuid": "4c5c2390-1571-4141-9ebd-a3e0b1e58322",
|
|
@@ -3309,6 +3316,34 @@
|
|
|
3309
3316
|
"value": "80px",
|
|
3310
3317
|
"uuid": "d04e5d81-0b6e-48e7-9e47-744753dfcff3"
|
|
3311
3318
|
},
|
|
3319
|
+
"strikethrough-day-orientation": {
|
|
3320
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/angle.json",
|
|
3321
|
+
"component": "date-picker",
|
|
3322
|
+
"value": -25,
|
|
3323
|
+
"uuid": "e9a6e122-49fc-4d40-880d-1d9006d7154e",
|
|
3324
|
+
"description": "Angle of the strikethrough line on an unavailable calendar day, in degrees (negative rotates counter-clockwise from horizontal)"
|
|
3325
|
+
},
|
|
3326
|
+
"strikethrough-day-thickness": {
|
|
3327
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/dimension.json",
|
|
3328
|
+
"component": "date-picker",
|
|
3329
|
+
"value": "2px",
|
|
3330
|
+
"uuid": "c4e4695b-3838-4bd4-b045-8219c77f6786",
|
|
3331
|
+
"description": "Thickness of the strikethrough line on an unavailable calendar day"
|
|
3332
|
+
},
|
|
3333
|
+
"tab-item-to-tab-item-compact-horizontal-medium": {
|
|
3334
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/alias.json",
|
|
3335
|
+
"component": "tabs",
|
|
3336
|
+
"value": "{spacing-400}",
|
|
3337
|
+
"uuid": "95593667-9f7c-4e5e-a739-8dd479cd082f",
|
|
3338
|
+
"description": "Spacing between tab items, horizontal, compact density"
|
|
3339
|
+
},
|
|
3340
|
+
"tab-selection-indicator-thickness": {
|
|
3341
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/dimension.json",
|
|
3342
|
+
"component": "tabs",
|
|
3343
|
+
"value": "2px",
|
|
3344
|
+
"uuid": "181806e5-0216-4b11-a775-9ed4bb8832fc",
|
|
3345
|
+
"description": "Thickness of the tab selection indicator (underline)"
|
|
3346
|
+
},
|
|
3312
3347
|
"text-gap-extra-large": {
|
|
3313
3348
|
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/dimension.json",
|
|
3314
3349
|
"value": "2px",
|