@adobe/spectrum-tokens 15.1.0 → 15.3.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 CHANGED
@@ -1,5 +1,34 @@
1
1
  # [**@adobe/spectrum-tokens**](https://github.com/adobe/spectrum-design-data)
2
2
 
3
+ ## 15.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1428](https://github.com/adobe/spectrum-design-data/pull/1428) [`6005339`](https://github.com/adobe/spectrum-design-data/commit/6005339a0678226eee3e827fd5bbfa793f5bccc7) Thanks [@GarthDB](https://github.com/GarthDB)! - Add a canonical `conceptId` UUID shared by every mode row of a design concept (closes the
8
+ concept-identity gap in proposal 013), and retire the transitional `set_uuid` cascade-migration
9
+ bridge field in the same release now that `conceptId` fully subsumes its role.
10
+ - **packages/tokens/schemas/token-types/alias.json**: removed `set_uuid`; `conceptId` was
11
+ already documented alongside `uuid` on the token schema.
12
+ - **packages/design-data/tokens/\*.tokens.json**: backfilled `conceptId` on every token
13
+ (reusing existing `set_uuid` values where present) and removed `set_uuid`.
14
+ - **sdk/core/src/{graph,legacy,migrate,figma/import}.rs**: re-keyed concept grouping,
15
+ legacy-output reconstruction, migration, and Figma import onto `conceptId`; CTR-side
16
+ camelCase `setUuid`/`setSchema` bridging is unchanged. `set_schema` is retained as-is —
17
+ it encodes set-type, not concept identity.
18
+ - **sdk/core/src/validate/rules/spec059.rs** (new): `alias-mode-context-compatibility`,
19
+ a mode analogue of SPEC-002 flagging an alias pinned to a mode-mismatched target.
20
+ - **spec/{cascade,token-format}.md**: normativize `conceptId` and context-aware `$ref`
21
+ resolution against a `conceptId` anchor.
22
+ - **conformance fixtures**: renamed `set_uuid` → `conceptId` throughout.
23
+
24
+ ## 15.2.0
25
+
26
+ ### Minor Changes
27
+
28
+ - [#1348](https://github.com/adobe/spectrum-design-data/pull/1348) [`a734594`](https://github.com/adobe/spectrum-design-data/commit/a734594d1592701632f790a58992a904df579ee1) Thanks [@GarthDB](https://github.com/GarthDB)! - Add an 18-step opacity foundation scale (closes #1344).
29
+ - **color-aliases.json**: add `opacity-0`…`opacity-1000` (18 steps) as the reusable
30
+ opacity foundation scale.
31
+
3
32
  ## 15.1.0
4
33
 
5
34
  ### Minor Changes
@@ -2524,6 +2524,22 @@
2524
2524
  "number-field-with-stepper-minimum-width-large": "144px",
2525
2525
  "number-field-with-stepper-minimum-width-medium": "120px",
2526
2526
  "number-field-with-stepper-minimum-width-small": "104px",
2527
+ "opacity-100": "0.04",
2528
+ "opacity-125": "0.06",
2529
+ "opacity-150": "0.08",
2530
+ "opacity-200": "0.12",
2531
+ "opacity-300": "0.16",
2532
+ "opacity-350": "0.2",
2533
+ "opacity-400": "0.24",
2534
+ "opacity-50": "0.02",
2535
+ "opacity-500": "0.32",
2536
+ "opacity-600": "0.4",
2537
+ "opacity-700": "0.48",
2538
+ "opacity-75": "0.03",
2539
+ "opacity-750": "0.56",
2540
+ "opacity-800": "0.64",
2541
+ "opacity-900": "0.8",
2542
+ "opacity-950": "0.96",
2527
2543
  "opacity-checkerboard-square-size": "8px",
2528
2544
  "opacity-checkerboard-square-size-medium": "8px",
2529
2545
  "opacity-checkerboard-square-size-small": "4px",
@@ -8643,6 +8643,78 @@
8643
8643
  }
8644
8644
  }
8645
8645
  },
8646
+ "opacity-0": {
8647
+ "value": "0",
8648
+ "uuid": "f3dbabcc-8aca-4c2a-83de-31052be74892"
8649
+ },
8650
+ "opacity-100": {
8651
+ "value": "0.04",
8652
+ "uuid": "f60d39bb-d6de-472f-92f2-16d376899c7a"
8653
+ },
8654
+ "opacity-1000": {
8655
+ "value": "1",
8656
+ "uuid": "a6f37fff-9050-4b30-b345-bfd67adf6239"
8657
+ },
8658
+ "opacity-125": {
8659
+ "value": "0.06",
8660
+ "uuid": "88498cf4-9297-45c8-a268-24fa6df45e8f"
8661
+ },
8662
+ "opacity-150": {
8663
+ "value": "0.08",
8664
+ "uuid": "f3a644a5-79e6-4ca8-b928-2769f7fc4976"
8665
+ },
8666
+ "opacity-200": {
8667
+ "value": "0.12",
8668
+ "uuid": "4650acd2-32bf-4c59-b73e-90965643392e"
8669
+ },
8670
+ "opacity-300": {
8671
+ "value": "0.16",
8672
+ "uuid": "dc734505-ee27-4ffa-abdb-7edb9420007d"
8673
+ },
8674
+ "opacity-350": {
8675
+ "value": "0.2",
8676
+ "uuid": "2841d19f-afb3-47a1-92a4-1d37ef7dafb8"
8677
+ },
8678
+ "opacity-400": {
8679
+ "value": "0.24",
8680
+ "uuid": "5065fe2c-135e-41a1-8495-7471e4e185b7"
8681
+ },
8682
+ "opacity-50": {
8683
+ "value": "0.02",
8684
+ "uuid": "953a3ae4-200e-4021-84cc-7177c0199bb0"
8685
+ },
8686
+ "opacity-500": {
8687
+ "value": "0.32",
8688
+ "uuid": "cc57bed6-8348-4c30-bfdc-88a34d4d5886"
8689
+ },
8690
+ "opacity-600": {
8691
+ "value": "0.4",
8692
+ "uuid": "94faa089-0cd2-44c3-bab6-53a754fe2c56"
8693
+ },
8694
+ "opacity-700": {
8695
+ "value": "0.48",
8696
+ "uuid": "e0caf147-d392-4eb4-bcc3-b4133176915c"
8697
+ },
8698
+ "opacity-75": {
8699
+ "value": "0.03",
8700
+ "uuid": "e397b1c2-18ad-421d-a16a-91a94a8fb510"
8701
+ },
8702
+ "opacity-750": {
8703
+ "value": "0.56",
8704
+ "uuid": "0f26b201-f7d1-4960-ac0c-1cca49aad42a"
8705
+ },
8706
+ "opacity-800": {
8707
+ "value": "0.64",
8708
+ "uuid": "d5f4d0aa-6301-400f-a585-50a815768c19"
8709
+ },
8710
+ "opacity-900": {
8711
+ "value": "0.8",
8712
+ "uuid": "aca4b30c-1352-433a-a372-fbfcd5f73c8d"
8713
+ },
8714
+ "opacity-950": {
8715
+ "value": "0.96",
8716
+ "uuid": "354bc196-1f32-45d8-ba2f-f6c38346b3f8"
8717
+ },
8646
8718
  "opacity-disabled": {
8647
8719
  "value": "0.3",
8648
8720
  "uuid": "fdf6fd5d-55a0-4428-a258-4e8fafc74b74"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spectrum-tokens",
3
- "version": "15.1.0",
3
+ "version": "15.3.0",
4
4
  "description": "Design tokens for Spectrum, Adobe's design system",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -44,14 +44,16 @@
44
44
  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
45
45
  "format": "uuid"
46
46
  },
47
- "set_uuid": {
48
- "type": "string",
49
- "description": "Set-level UUID carried from the cascade migration (used by legacy-output to reconstruct the outer set UUID)."
50
- },
51
47
  "set_schema": {
52
48
  "type": "string",
53
49
  "description": "Set-level schema URL carried from the cascade migration."
54
50
  },
51
+ "conceptId": {
52
+ "type": "string",
53
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
54
+ "format": "uuid",
55
+ "description": "Canonical concept-level UUID shared by every mode row of this design concept. Additive to the per-value uuid (which remains the $ref/diff/replacedBy/sync anchor)."
56
+ },
55
57
  "replaced_by": {
56
58
  "oneOf": [
57
59
  { "type": "string", "format": "uuid" },
@@ -66,7 +66,8 @@
66
66
  "deprecated_comment": {},
67
67
  "description": {},
68
68
  "renamed": {},
69
- "uuid": {}
69
+ "uuid": {},
70
+ "conceptId": {}
70
71
  },
71
72
  "required": ["sets", "uuid"]
72
73
  }
@@ -57,7 +57,8 @@
57
57
  "deprecated_comment": {},
58
58
  "description": {},
59
59
  "renamed": {},
60
- "uuid": {}
60
+ "uuid": {},
61
+ "conceptId": {}
61
62
  },
62
63
  "required": ["sets", "uuid"]
63
64
  }
@@ -79,7 +79,8 @@
79
79
  "deprecated_comment": {},
80
80
  "description": {},
81
81
  "renamed": {},
82
- "uuid": {}
82
+ "uuid": {},
83
+ "conceptId": {}
83
84
  },
84
85
  "required": ["sets"]
85
86
  }
@@ -63,6 +63,12 @@
63
63
  "type": "string",
64
64
  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
65
65
  "format": "uuid"
66
+ },
67
+ "conceptId": {
68
+ "type": "string",
69
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
70
+ "format": "uuid",
71
+ "description": "Canonical concept-level UUID shared by every mode row of this design concept. Additive to the per-value uuid (which remains the $ref/diff/replacedBy/sync anchor)."
66
72
  }
67
73
  },
68
74
  "required": ["value", "uuid"]
@@ -1828,6 +1828,96 @@
1828
1828
  }
1829
1829
  }
1830
1830
  },
1831
+ "opacity-0": {
1832
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1833
+ "value": "0",
1834
+ "uuid": "f3dbabcc-8aca-4c2a-83de-31052be74892"
1835
+ },
1836
+ "opacity-100": {
1837
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1838
+ "value": "0.04",
1839
+ "uuid": "f60d39bb-d6de-472f-92f2-16d376899c7a"
1840
+ },
1841
+ "opacity-1000": {
1842
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1843
+ "value": "1",
1844
+ "uuid": "a6f37fff-9050-4b30-b345-bfd67adf6239"
1845
+ },
1846
+ "opacity-125": {
1847
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1848
+ "value": "0.06",
1849
+ "uuid": "88498cf4-9297-45c8-a268-24fa6df45e8f"
1850
+ },
1851
+ "opacity-150": {
1852
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1853
+ "value": "0.08",
1854
+ "uuid": "f3a644a5-79e6-4ca8-b928-2769f7fc4976"
1855
+ },
1856
+ "opacity-200": {
1857
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1858
+ "value": "0.12",
1859
+ "uuid": "4650acd2-32bf-4c59-b73e-90965643392e"
1860
+ },
1861
+ "opacity-300": {
1862
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1863
+ "value": "0.16",
1864
+ "uuid": "dc734505-ee27-4ffa-abdb-7edb9420007d"
1865
+ },
1866
+ "opacity-350": {
1867
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1868
+ "value": "0.2",
1869
+ "uuid": "2841d19f-afb3-47a1-92a4-1d37ef7dafb8"
1870
+ },
1871
+ "opacity-400": {
1872
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1873
+ "value": "0.24",
1874
+ "uuid": "5065fe2c-135e-41a1-8495-7471e4e185b7"
1875
+ },
1876
+ "opacity-50": {
1877
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1878
+ "value": "0.02",
1879
+ "uuid": "953a3ae4-200e-4021-84cc-7177c0199bb0"
1880
+ },
1881
+ "opacity-500": {
1882
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1883
+ "value": "0.32",
1884
+ "uuid": "cc57bed6-8348-4c30-bfdc-88a34d4d5886"
1885
+ },
1886
+ "opacity-600": {
1887
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1888
+ "value": "0.4",
1889
+ "uuid": "94faa089-0cd2-44c3-bab6-53a754fe2c56"
1890
+ },
1891
+ "opacity-700": {
1892
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1893
+ "value": "0.48",
1894
+ "uuid": "e0caf147-d392-4eb4-bcc3-b4133176915c"
1895
+ },
1896
+ "opacity-75": {
1897
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1898
+ "value": "0.03",
1899
+ "uuid": "e397b1c2-18ad-421d-a16a-91a94a8fb510"
1900
+ },
1901
+ "opacity-750": {
1902
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1903
+ "value": "0.56",
1904
+ "uuid": "0f26b201-f7d1-4960-ac0c-1cca49aad42a"
1905
+ },
1906
+ "opacity-800": {
1907
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1908
+ "value": "0.64",
1909
+ "uuid": "d5f4d0aa-6301-400f-a585-50a815768c19"
1910
+ },
1911
+ "opacity-900": {
1912
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1913
+ "value": "0.8",
1914
+ "uuid": "aca4b30c-1352-433a-a372-fbfcd5f73c8d"
1915
+ },
1916
+ "opacity-950": {
1917
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1918
+ "value": "0.96",
1919
+ "uuid": "354bc196-1f32-45d8-ba2f-f6c38346b3f8"
1920
+ },
1831
1921
  "opacity-disabled": {
1832
1922
  "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
1833
1923
  "value": "0.3",