@adobe/spectrum-tokens 13.15.1 → 14.0.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 +7414 -7324
- package/dist/json/drover.json +17 -5
- package/dist/json/variables.json +420 -244
- package/package.json +4 -4
- package/schemas/token-types/alias.json +3 -3
- package/schemas/token-types/color-set.json +12 -12
- package/schemas/token-types/color.json +3 -3
- package/schemas/token-types/dimension.json +3 -3
- package/schemas/token-types/drop-shadow.json +3 -3
- package/schemas/token-types/font-family.json +3 -3
- package/schemas/token-types/font-size.json +3 -3
- package/schemas/token-types/font-style.json +3 -3
- package/schemas/token-types/font-weight.json +3 -3
- package/schemas/token-types/gradient-stop.json +3 -3
- package/schemas/token-types/multiplier.json +3 -3
- package/schemas/token-types/opacity.json +3 -3
- package/schemas/token-types/scale-set.json +11 -11
- package/schemas/token-types/set.json +1 -1
- package/schemas/token-types/system-set.json +13 -13
- package/schemas/token-types/text-align.json +3 -3
- package/schemas/token-types/text-transform.json +3 -3
- package/schemas/token-types/token.json +1 -1
- package/schemas/token-types/typography.json +23 -8
- package/src/color-aliases.json +463 -463
- package/src/color-component.json +104 -104
- package/src/color-palette.json +1275 -1275
- package/src/icons.json +247 -247
- package/src/layout-component.json +2313 -2125
- package/src/layout.json +534 -534
- package/src/semantic-color-palette.json +109 -109
- package/src/typography.json +385 -385
- package/test/schemaValidators/alias.test.js +1 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spectrum-tokens",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "Design tokens for Spectrum, Adobe's design system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"tokens": "dist/json/variables.json",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/adobe/spectrum-
|
|
10
|
+
"url": "git+https://github.com/adobe/spectrum-design-data.git"
|
|
11
11
|
},
|
|
12
12
|
"author": "Garth Braithwaite <garthdb@gmail.com> (http://garthdb.com/)",
|
|
13
13
|
"contributors": [
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
],
|
|
16
16
|
"license": "Apache-2.0",
|
|
17
17
|
"bugs": {
|
|
18
|
-
"url": "https://github.com/adobe/spectrum-
|
|
18
|
+
"url": "https://github.com/adobe/spectrum-design-data/issues"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"provenance": true
|
|
22
22
|
},
|
|
23
|
-
"homepage": "https://github.com/adobe/spectrum-
|
|
23
|
+
"homepage": "https://github.com/adobe/spectrum-design-data/tree/main/packages/tokens#readme",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"ajv": "^8.17.1",
|
|
26
26
|
"ajv-formats": "^3.0.1",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/alias.json",
|
|
4
4
|
"title": "Alias",
|
|
5
5
|
"description": "A token that references another token.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/alias.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "string",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/color-set.json",
|
|
4
4
|
"title": "Color set",
|
|
5
5
|
"description": "A set that contains color values that change based on color theme.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "set.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/color-set.json"
|
|
15
15
|
},
|
|
16
16
|
"sets": {
|
|
17
17
|
"type": "object",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
{
|
|
20
20
|
"properties": {
|
|
21
21
|
"light": {
|
|
22
|
-
"$ref": "
|
|
22
|
+
"$ref": "color.json"
|
|
23
23
|
},
|
|
24
24
|
"dark": {
|
|
25
|
-
"$ref": "
|
|
25
|
+
"$ref": "color.json"
|
|
26
26
|
},
|
|
27
27
|
"wireframe": {
|
|
28
|
-
"$ref": "
|
|
28
|
+
"$ref": "color.json"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"required": ["light", "dark", "wireframe"]
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
{
|
|
34
34
|
"properties": {
|
|
35
35
|
"light": {
|
|
36
|
-
"$ref": "
|
|
36
|
+
"$ref": "alias.json"
|
|
37
37
|
},
|
|
38
38
|
"dark": {
|
|
39
|
-
"$ref": "
|
|
39
|
+
"$ref": "alias.json"
|
|
40
40
|
},
|
|
41
41
|
"wireframe": {
|
|
42
|
-
"$ref": "
|
|
42
|
+
"$ref": "alias.json"
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"required": ["light", "dark", "wireframe"]
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
{
|
|
48
48
|
"properties": {
|
|
49
49
|
"light": {
|
|
50
|
-
"$ref": "
|
|
50
|
+
"$ref": "opacity.json"
|
|
51
51
|
},
|
|
52
52
|
"dark": {
|
|
53
|
-
"$ref": "
|
|
53
|
+
"$ref": "opacity.json"
|
|
54
54
|
},
|
|
55
55
|
"wireframe": {
|
|
56
|
-
"$ref": "
|
|
56
|
+
"$ref": "opacity.json"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"required": ["light", "dark", "wireframe"]
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/color.json",
|
|
4
4
|
"title": "Color",
|
|
5
5
|
"description": "Color token schema.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/color.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "string",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/dimension.json",
|
|
4
4
|
"title": "Dimension",
|
|
5
5
|
"description": "Pixel or relative dimension.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/dimension.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "string",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/drop-shadow.json",
|
|
4
4
|
"title": "Drop Shadow",
|
|
5
5
|
"description": "A composite token that defines a drop shadow.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/drop-shadow.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "array",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/font-family.json",
|
|
4
4
|
"title": "Font family",
|
|
5
5
|
"description": "A font family token defines a font family that can be used in a component.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/font-family.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "string",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/font-size.json",
|
|
4
4
|
"title": "Dimension",
|
|
5
5
|
"description": "Pixel, rem, and em font sizes dimension.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/font-size.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "string",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/font-style.json",
|
|
4
4
|
"title": "Font style",
|
|
5
5
|
"description": "Sets whether a font should be styled with a normal, italic, or oblique face from its font-family",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/font-style.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "string",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/font-weight.json",
|
|
4
4
|
"title": "Font weight",
|
|
5
5
|
"description": "Defines sets the weight (or boldness) of the font",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/font-weight.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "string",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/gradient-stop.json",
|
|
4
4
|
"title": "Color Stop",
|
|
5
5
|
"description": "Gradient stop positions, being a ratio along the gradient's axis. Start is 0, end is 1.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/gradient-stop.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "number",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/multiplier.json",
|
|
4
4
|
"title": "Multiplier",
|
|
5
5
|
"description": "A float used to multiply a value by a given amount. Also used as a line-height multiplier.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/multiplier.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "number",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json",
|
|
4
4
|
"title": "Opacity",
|
|
5
5
|
"description": "A percentage measurement of the opacity.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/opacity.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "string",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/scale-set.json",
|
|
4
4
|
"title": "Scale set",
|
|
5
5
|
"description": "A set that contains dimension values that change based on platform scale.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "set.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/scale-set.json"
|
|
15
15
|
},
|
|
16
16
|
"sets": {
|
|
17
17
|
"type": "object",
|
|
@@ -19,32 +19,32 @@
|
|
|
19
19
|
"mobile": {
|
|
20
20
|
"anyOf": [
|
|
21
21
|
{
|
|
22
|
-
"$ref": "
|
|
22
|
+
"$ref": "dimension.json"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"$ref": "
|
|
25
|
+
"$ref": "font-size.json"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"$ref": "
|
|
28
|
+
"$ref": "alias.json"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
"$ref": "
|
|
31
|
+
"$ref": "multiplier.json"
|
|
32
32
|
}
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"desktop": {
|
|
36
36
|
"anyOf": [
|
|
37
37
|
{
|
|
38
|
-
"$ref": "
|
|
38
|
+
"$ref": "dimension.json"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
"$ref": "
|
|
41
|
+
"$ref": "font-size.json"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
"$ref": "
|
|
44
|
+
"$ref": "alias.json"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
"$ref": "
|
|
47
|
+
"$ref": "multiplier.json"
|
|
48
48
|
}
|
|
49
49
|
]
|
|
50
50
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/set.json",
|
|
4
4
|
"title": "sets",
|
|
5
5
|
"description": "A generic token set.",
|
|
6
6
|
"type": "object",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/system-set.json",
|
|
4
4
|
"title": "System set",
|
|
5
5
|
"description": "A set that contains tokens that change based on system.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "set.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/system-set.json"
|
|
15
15
|
},
|
|
16
16
|
"sets": {
|
|
17
17
|
"type": "object",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
{
|
|
20
20
|
"properties": {
|
|
21
21
|
"spectrum": {
|
|
22
|
-
"$ref": "
|
|
22
|
+
"$ref": "token.json"
|
|
23
23
|
},
|
|
24
24
|
"express": {
|
|
25
|
-
"$ref": "
|
|
25
|
+
"$ref": "token.json"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"required": ["spectrum", "express"]
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
{
|
|
31
31
|
"properties": {
|
|
32
32
|
"spectrum": {
|
|
33
|
-
"$ref": "
|
|
33
|
+
"$ref": "alias.json"
|
|
34
34
|
},
|
|
35
35
|
"express": {
|
|
36
|
-
"$ref": "
|
|
36
|
+
"$ref": "alias.json"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"required": ["spectrum", "express"]
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
{
|
|
42
42
|
"properties": {
|
|
43
43
|
"spectrum": {
|
|
44
|
-
"$ref": "
|
|
44
|
+
"$ref": "color-set.json"
|
|
45
45
|
},
|
|
46
46
|
"express": {
|
|
47
|
-
"$ref": "
|
|
47
|
+
"$ref": "color-set.json"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"required": ["spectrum", "express"]
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
{
|
|
53
53
|
"properties": {
|
|
54
54
|
"spectrum": {
|
|
55
|
-
"$ref": "
|
|
55
|
+
"$ref": "scale-set.json"
|
|
56
56
|
},
|
|
57
57
|
"express": {
|
|
58
|
-
"$ref": "
|
|
58
|
+
"$ref": "scale-set.json"
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"required": ["spectrum", "express"]
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
{
|
|
64
64
|
"properties": {
|
|
65
65
|
"spectrum": {
|
|
66
|
-
"$ref": "
|
|
66
|
+
"$ref": "dimension.json"
|
|
67
67
|
},
|
|
68
68
|
"express": {
|
|
69
|
-
"$ref": "
|
|
69
|
+
"$ref": "scale-set.json"
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"required": ["spectrum", "express"]
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/text-align.json",
|
|
4
4
|
"title": "Text align",
|
|
5
5
|
"description": "Sets the horizontal alignment of the inline-level content inside a block element",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/text-align.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "string",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/text-transform.json",
|
|
4
4
|
"title": "Text transform",
|
|
5
5
|
"description": "A token that specifies how to capitalize an element's text.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/text-transform.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "string",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/token.json",
|
|
4
4
|
"title": "Token",
|
|
5
5
|
"description": "A general token.",
|
|
6
6
|
"type": "object",
|
|
@@ -1,26 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/typography.json",
|
|
4
4
|
"title": "Typography",
|
|
5
5
|
"description": "A composite typography token.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "token.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"$schema": {
|
|
14
|
-
"const": "https://opensource.adobe.com/spectrum-
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/typography.json"
|
|
15
15
|
},
|
|
16
16
|
"value": {
|
|
17
17
|
"type": "object",
|
|
18
18
|
"properties": {
|
|
19
|
-
"fontFamily": {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
19
|
+
"fontFamily": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^\\{(\\w|-)*\\}$"
|
|
22
|
+
},
|
|
23
|
+
"fontSize": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^\\{(\\w|-)*\\}$"
|
|
26
|
+
},
|
|
27
|
+
"fontWeight": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"pattern": "^\\{(\\w|-)*\\}$"
|
|
30
|
+
},
|
|
31
|
+
"letterSpacing": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^\\{(\\w|-)*\\}$"
|
|
34
|
+
},
|
|
35
|
+
"lineHeight": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^\\{(\\w|-)*\\}$"
|
|
38
|
+
}
|
|
24
39
|
}
|
|
25
40
|
},
|
|
26
41
|
"component": {},
|