@adobe/design-system-registry 3.1.0 → 3.1.1
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 +14 -0
- package/package.json +9 -3
- package/registry/color-families.json +177 -0
- package/registry/easing-curves.json +42 -0
- package/registry/motion-roles.json +32 -0
- package/registry/typography-families.json +27 -0
- package/registry/typography-styles.json +17 -0
- package/registry/typography-weights.json +37 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @adobe/design-system-registry
|
|
2
2
|
|
|
3
|
+
## 3.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#963](https://github.com/adobe/spectrum-design-data/pull/963) [`af22092`](https://github.com/adobe/spectrum-design-data/commit/af22092744c70af7ce0c659e16cdabe31b92b111) Thanks [@GarthDB](https://github.com/GarthDB)! - Pilot name-object migration: add structured `name` fields to color palette and
|
|
8
|
+
font-weight tokens (closes first phase of taxonomy corpus migration).
|
|
9
|
+
- **color-palette.json**: 369 tokens gain `name: { property, colorFamily, scaleIndex? }`.
|
|
10
|
+
- **typography.json**: 6 canonical font-weight tokens gain `name: { property, weight }`.
|
|
11
|
+
- **design-system-registry**: export the six new taxonomy registries added in #961 via
|
|
12
|
+
the package.json `exports` map; add `propertyTerms` named export to `index.js`.
|
|
13
|
+
- **tools/token-corpus-migrate**: new migration tool for injecting name objects;
|
|
14
|
+
run dry-run with `node tools/token-corpus-migrate/src/cli.js --root <tokens-src>`,
|
|
15
|
+
apply with `--write`.
|
|
16
|
+
|
|
3
17
|
## 3.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/design-system-registry",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "A single source of truth for design system terminology used across Spectrum tokens, component schemas, and anatomy",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -20,7 +20,13 @@
|
|
|
20
20
|
"./registry/orientations.json": "./registry/orientations.json",
|
|
21
21
|
"./registry/positions.json": "./registry/positions.json",
|
|
22
22
|
"./registry/densities.json": "./registry/densities.json",
|
|
23
|
-
"./registry/shapes.json": "./registry/shapes.json"
|
|
23
|
+
"./registry/shapes.json": "./registry/shapes.json",
|
|
24
|
+
"./registry/color-families.json": "./registry/color-families.json",
|
|
25
|
+
"./registry/typography-families.json": "./registry/typography-families.json",
|
|
26
|
+
"./registry/typography-weights.json": "./registry/typography-weights.json",
|
|
27
|
+
"./registry/typography-styles.json": "./registry/typography-styles.json",
|
|
28
|
+
"./registry/motion-roles.json": "./registry/motion-roles.json",
|
|
29
|
+
"./registry/easing-curves.json": "./registry/easing-curves.json"
|
|
24
30
|
},
|
|
25
31
|
"repository": {
|
|
26
32
|
"type": "git",
|
|
@@ -44,7 +50,7 @@
|
|
|
44
50
|
"ajv": "^8.17.1",
|
|
45
51
|
"ajv-formats": "^3.0.1",
|
|
46
52
|
"ava": "^6.0.1",
|
|
47
|
-
"@adobe/spectrum-component-api-schemas": "6.1.
|
|
53
|
+
"@adobe/spectrum-component-api-schemas": "6.1.16"
|
|
48
54
|
},
|
|
49
55
|
"scripts": {
|
|
50
56
|
"validate": "node scripts/validate-registry.js",
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/registry-value.json",
|
|
3
|
+
"type": "color-family",
|
|
4
|
+
"description": "Hue families for color palette and semantic color tokens. Assigned via the `colorFamily` name-object field. Paired with a numeric ramp index (scaleIndex) for palette tokens (e.g. colorFamily=blue + scaleIndex=100 → blue-100).",
|
|
5
|
+
"values": [
|
|
6
|
+
{
|
|
7
|
+
"id": "blue",
|
|
8
|
+
"label": "Blue",
|
|
9
|
+
"description": "Blue hue family"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "brown",
|
|
13
|
+
"label": "Brown",
|
|
14
|
+
"description": "Brown hue family"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "celery",
|
|
18
|
+
"label": "Celery",
|
|
19
|
+
"description": "Celery (yellow-green) hue family"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "chartreuse",
|
|
23
|
+
"label": "Chartreuse",
|
|
24
|
+
"description": "Chartreuse (green-yellow) hue family"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "cinnamon",
|
|
28
|
+
"label": "Cinnamon",
|
|
29
|
+
"description": "Cinnamon (warm orange-brown) hue family"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "cyan",
|
|
33
|
+
"label": "Cyan",
|
|
34
|
+
"description": "Cyan hue family"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "fuchsia",
|
|
38
|
+
"label": "Fuchsia",
|
|
39
|
+
"description": "Fuchsia (pink-purple) hue family"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "gray",
|
|
43
|
+
"label": "Gray",
|
|
44
|
+
"description": "Gray neutral hue family"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "green",
|
|
48
|
+
"label": "Green",
|
|
49
|
+
"description": "Green hue family"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "indigo",
|
|
53
|
+
"label": "Indigo",
|
|
54
|
+
"description": "Indigo (blue-violet) hue family"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "magenta",
|
|
58
|
+
"label": "Magenta",
|
|
59
|
+
"description": "Magenta hue family"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "orange",
|
|
63
|
+
"label": "Orange",
|
|
64
|
+
"description": "Orange hue family"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "pink",
|
|
68
|
+
"label": "Pink",
|
|
69
|
+
"description": "Pink hue family"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "purple",
|
|
73
|
+
"label": "Purple",
|
|
74
|
+
"description": "Purple hue family"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "red",
|
|
78
|
+
"label": "Red",
|
|
79
|
+
"description": "Red hue family"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "seafoam",
|
|
83
|
+
"label": "Seafoam",
|
|
84
|
+
"description": "Seafoam (teal-green) hue family"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "silver",
|
|
88
|
+
"label": "Silver",
|
|
89
|
+
"description": "Silver neutral hue family"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "turquoise",
|
|
93
|
+
"label": "Turquoise",
|
|
94
|
+
"description": "Turquoise hue family"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "yellow",
|
|
98
|
+
"label": "Yellow",
|
|
99
|
+
"description": "Yellow hue family"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "black",
|
|
103
|
+
"label": "Black",
|
|
104
|
+
"description": "Black neutral endpoint"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "white",
|
|
108
|
+
"label": "White",
|
|
109
|
+
"description": "White neutral endpoint"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "static-blue",
|
|
113
|
+
"label": "Static Blue",
|
|
114
|
+
"description": "Blue palette family that remains fixed in all color schemes"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "static-chartreuse",
|
|
118
|
+
"label": "Static Chartreuse",
|
|
119
|
+
"description": "Chartreuse palette family that remains fixed in all color schemes"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": "static-cyan",
|
|
123
|
+
"label": "Static Cyan",
|
|
124
|
+
"description": "Cyan palette family that remains fixed in all color schemes"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "static-fuchsia",
|
|
128
|
+
"label": "Static Fuchsia",
|
|
129
|
+
"description": "Fuchsia palette family that remains fixed in all color schemes"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "static-green",
|
|
133
|
+
"label": "Static Green",
|
|
134
|
+
"description": "Green palette family that remains fixed in all color schemes"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "static-indigo",
|
|
138
|
+
"label": "Static Indigo",
|
|
139
|
+
"description": "Indigo palette family that remains fixed in all color schemes"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "static-magenta",
|
|
143
|
+
"label": "Static Magenta",
|
|
144
|
+
"description": "Magenta palette family that remains fixed in all color schemes"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "static-orange",
|
|
148
|
+
"label": "Static Orange",
|
|
149
|
+
"description": "Orange palette family that remains fixed in all color schemes"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "static-purple",
|
|
153
|
+
"label": "Static Purple",
|
|
154
|
+
"description": "Purple palette family that remains fixed in all color schemes"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id": "static-red",
|
|
158
|
+
"label": "Static Red",
|
|
159
|
+
"description": "Red palette family that remains fixed in all color schemes"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"id": "static-turquoise",
|
|
163
|
+
"label": "Static Turquoise",
|
|
164
|
+
"description": "Turquoise palette family that remains fixed in all color schemes"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": "transparent-black",
|
|
168
|
+
"label": "Transparent Black",
|
|
169
|
+
"description": "Black-based transparent color family for overlay and shadow effects"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "transparent-white",
|
|
173
|
+
"label": "Transparent White",
|
|
174
|
+
"description": "White-based transparent color family for overlay and highlight effects"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/registry-value.json",
|
|
3
|
+
"type": "easing-curve",
|
|
4
|
+
"description": "Easing curve identifiers for motion tokens. Assigned via the `easing` name-object field. NOTE: This registry is provisional. Values are seeded from design intent; entries will be refined when motion tokens are added to the foundation dataset.",
|
|
5
|
+
"values": [
|
|
6
|
+
{
|
|
7
|
+
"id": "linear",
|
|
8
|
+
"label": "Linear",
|
|
9
|
+
"description": "Constant-rate animation with no acceleration or deceleration"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "ease-in",
|
|
13
|
+
"label": "Ease In",
|
|
14
|
+
"description": "Animation that starts slow and accelerates toward the end"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "ease-out",
|
|
18
|
+
"label": "Ease Out",
|
|
19
|
+
"description": "Animation that starts fast and decelerates toward the end"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "ease-in-out",
|
|
23
|
+
"label": "Ease In-Out",
|
|
24
|
+
"description": "Animation that starts slow, accelerates through the middle, and decelerates at the end"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "standard",
|
|
28
|
+
"label": "Standard",
|
|
29
|
+
"description": "Spectrum standard easing curve for general UI motion"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "decelerate",
|
|
33
|
+
"label": "Decelerate",
|
|
34
|
+
"description": "Decelerate curve for elements entering the screen"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "accelerate",
|
|
38
|
+
"label": "Accelerate",
|
|
39
|
+
"description": "Accelerate curve for elements leaving the screen"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/registry-value.json",
|
|
3
|
+
"type": "motion-role",
|
|
4
|
+
"description": "Semantic roles for motion tokens — the interaction pattern or animation purpose a token governs. Assigned via the `motionRole` name-object field. NOTE: This registry is provisional. Values are seeded from design intent; entries will be refined when motion tokens are added to the foundation dataset.",
|
|
5
|
+
"values": [
|
|
6
|
+
{
|
|
7
|
+
"id": "enter",
|
|
8
|
+
"label": "Enter",
|
|
9
|
+
"description": "Animation for an element entering the viewport or becoming visible"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "exit",
|
|
13
|
+
"label": "Exit",
|
|
14
|
+
"description": "Animation for an element leaving the viewport or becoming hidden"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "transition",
|
|
18
|
+
"label": "Transition",
|
|
19
|
+
"description": "Animation for state changes on a persistent element (e.g. hover, selection)"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "emphasis",
|
|
23
|
+
"label": "Emphasis",
|
|
24
|
+
"description": "Animation that draws attention to an element without entering or exiting"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "loading",
|
|
28
|
+
"label": "Loading",
|
|
29
|
+
"description": "Animation for indeterminate loading or progress states"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/registry-value.json",
|
|
3
|
+
"type": "typography-family",
|
|
4
|
+
"description": "Type family identifiers for typography tokens. Assigned via the `family` name-object field. Represents the script or display context of the typeface, not a specific font name.",
|
|
5
|
+
"values": [
|
|
6
|
+
{
|
|
7
|
+
"id": "sans-serif",
|
|
8
|
+
"label": "Sans-Serif",
|
|
9
|
+
"description": "Sans-serif typeface family (e.g. Adobe Clean)"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "serif",
|
|
13
|
+
"label": "Serif",
|
|
14
|
+
"description": "Serif typeface family (e.g. Adobe Clean Serif)"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "cjk",
|
|
18
|
+
"label": "CJK",
|
|
19
|
+
"description": "CJK (Chinese, Japanese, Korean) script typeface family"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "code",
|
|
23
|
+
"label": "Code",
|
|
24
|
+
"description": "Monospace typeface family for code and technical content"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/registry-value.json",
|
|
3
|
+
"type": "typography-style",
|
|
4
|
+
"description": "Typographic style values for typography tokens. Assigned via the `style` name-object field. Corresponds to the CSS font-style axis. The normal/default style is not listed — omit the field when style is normal.",
|
|
5
|
+
"values": [
|
|
6
|
+
{
|
|
7
|
+
"id": "italic",
|
|
8
|
+
"label": "Italic",
|
|
9
|
+
"description": "Italic font style (font-style: italic)"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "oblique",
|
|
13
|
+
"label": "Oblique",
|
|
14
|
+
"description": "Oblique font style (font-style: oblique)"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/registry-value.json",
|
|
3
|
+
"type": "typography-weight",
|
|
4
|
+
"description": "Typographic weight values for typography tokens. Assigned via the `weight` name-object field. Corresponds to the CSS font-weight axis. Note: 'black' is a typographic weight value (font-weight 900) and is distinct from the 'black' color-family entry in color-families.json (cross-registry ID overlap is intentional per SPEC-033).",
|
|
5
|
+
"values": [
|
|
6
|
+
{
|
|
7
|
+
"id": "light",
|
|
8
|
+
"label": "Light",
|
|
9
|
+
"description": "Light weight (font-weight 300)"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "regular",
|
|
13
|
+
"label": "Regular",
|
|
14
|
+
"description": "Regular weight (font-weight 400)"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "medium",
|
|
18
|
+
"label": "Medium",
|
|
19
|
+
"description": "Medium weight (font-weight 500)"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "bold",
|
|
23
|
+
"label": "Bold",
|
|
24
|
+
"description": "Bold weight (font-weight 700)"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "extra-bold",
|
|
28
|
+
"label": "Extra Bold",
|
|
29
|
+
"description": "Extra bold weight (font-weight 800)"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "black",
|
|
33
|
+
"label": "Black",
|
|
34
|
+
"description": "Black weight (font-weight 900)"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|