@design-token-kit/core 0.2.0 → 0.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/LICENSE +159 -159
- package/README.md +57 -57
- package/lib/index.d.ts +132 -17
- package/lib/index.js +724 -624
- package/lib/schemas/2025.10/format/group.json +55 -55
- package/lib/schemas/2025.10/format/groupOrToken.json +15 -15
- package/lib/schemas/2025.10/format/token.json +425 -425
- package/lib/schemas/2025.10/format/tokenType.json +23 -23
- package/lib/schemas/2025.10/format/values/border.json +45 -45
- package/lib/schemas/2025.10/format/values/color.json +515 -515
- package/lib/schemas/2025.10/format/values/cubicBezier.json +57 -57
- package/lib/schemas/2025.10/format/values/dimension.json +35 -35
- package/lib/schemas/2025.10/format/values/duration.json +35 -35
- package/lib/schemas/2025.10/format/values/fontFamily.json +34 -34
- package/lib/schemas/2025.10/format/values/fontWeight.json +39 -39
- package/lib/schemas/2025.10/format/values/gradient.json +53 -53
- package/lib/schemas/2025.10/format/values/number.json +8 -8
- package/lib/schemas/2025.10/format/values/shadow.json +103 -103
- package/lib/schemas/2025.10/format/values/strokeStyle.json +64 -64
- package/lib/schemas/2025.10/format/values/transition.json +45 -45
- package/lib/schemas/2025.10/format/values/typography.json +73 -73
- package/lib/schemas/2025.10/format.json +106 -106
- package/lib/schemas/2025.10/resolver/modifier.json +85 -85
- package/lib/schemas/2025.10/resolver/resolutionOrder.json +117 -117
- package/lib/schemas/2025.10/resolver/set.json +71 -71
- package/lib/schemas/2025.10/resolver.json +62 -62
- package/lib/schemas/hrdt-tokens.json +533 -533
- package/package.json +3 -2
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.designtokens.org/schemas/2025.10/format/values/shadow.json",
|
|
4
|
-
"title": "Shadow Value",
|
|
5
|
-
"description": "Value schema for shadow type tokens. Represents a shadow style.",
|
|
6
|
-
"oneOf": [
|
|
7
|
-
{
|
|
8
|
-
"$ref": "#/definitions/shadowObject"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"type": "array",
|
|
12
|
-
"description": "Array of shadow objects and/or references to shadow tokens",
|
|
13
|
-
"items": {
|
|
14
|
-
"oneOf": [
|
|
15
|
-
{
|
|
16
|
-
"$ref": "#/definitions/shadowObject"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"minItems": 1
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"definitions": {
|
|
27
|
-
"shadowObject": {
|
|
28
|
-
"title": "Shadow Object",
|
|
29
|
-
"type": "object",
|
|
30
|
-
"properties": {
|
|
31
|
-
"color": {
|
|
32
|
-
"description": "The color of the shadow",
|
|
33
|
-
"oneOf": [
|
|
34
|
-
{
|
|
35
|
-
"$ref": "color.json"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
"offsetX": {
|
|
43
|
-
"description": "The horizontal offset that shadow has from the element it is applied to",
|
|
44
|
-
"oneOf": [
|
|
45
|
-
{
|
|
46
|
-
"$ref": "dimension.json"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"offsetY": {
|
|
54
|
-
"description": "The vertical offset that shadow has from the element it is applied to",
|
|
55
|
-
"oneOf": [
|
|
56
|
-
{
|
|
57
|
-
"$ref": "dimension.json"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
"blur": {
|
|
65
|
-
"description": "The blur radius that is applied to the shadow",
|
|
66
|
-
"oneOf": [
|
|
67
|
-
{
|
|
68
|
-
"$ref": "dimension.json"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
"spread": {
|
|
76
|
-
"description": "The amount by which to expand or contract the shadow",
|
|
77
|
-
"oneOf": [
|
|
78
|
-
{
|
|
79
|
-
"$ref": "dimension.json"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
|
-
"inset": {
|
|
87
|
-
"description": "Whether this shadow is inside the containing shape (inner shadow) rather than a drop shadow (default: false)",
|
|
88
|
-
"oneOf": [
|
|
89
|
-
{
|
|
90
|
-
"type": "boolean"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"$ref": "../../format.json#/definitions/jsonPointerReferenceObject"
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"required": ["color", "offsetX", "offsetY", "blur", "spread"],
|
|
99
|
-
"additionalProperties": false
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://www.designtokens.org/schemas/2025.10/format/values/shadow.json",
|
|
4
|
+
"title": "Shadow Value",
|
|
5
|
+
"description": "Value schema for shadow type tokens. Represents a shadow style.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "#/definitions/shadowObject"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "array",
|
|
12
|
+
"description": "Array of shadow objects and/or references to shadow tokens",
|
|
13
|
+
"items": {
|
|
14
|
+
"oneOf": [
|
|
15
|
+
{
|
|
16
|
+
"$ref": "#/definitions/shadowObject"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"minItems": 1
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"definitions": {
|
|
27
|
+
"shadowObject": {
|
|
28
|
+
"title": "Shadow Object",
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"color": {
|
|
32
|
+
"description": "The color of the shadow",
|
|
33
|
+
"oneOf": [
|
|
34
|
+
{
|
|
35
|
+
"$ref": "color.json"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"offsetX": {
|
|
43
|
+
"description": "The horizontal offset that shadow has from the element it is applied to",
|
|
44
|
+
"oneOf": [
|
|
45
|
+
{
|
|
46
|
+
"$ref": "dimension.json"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"offsetY": {
|
|
54
|
+
"description": "The vertical offset that shadow has from the element it is applied to",
|
|
55
|
+
"oneOf": [
|
|
56
|
+
{
|
|
57
|
+
"$ref": "dimension.json"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"blur": {
|
|
65
|
+
"description": "The blur radius that is applied to the shadow",
|
|
66
|
+
"oneOf": [
|
|
67
|
+
{
|
|
68
|
+
"$ref": "dimension.json"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"spread": {
|
|
76
|
+
"description": "The amount by which to expand or contract the shadow",
|
|
77
|
+
"oneOf": [
|
|
78
|
+
{
|
|
79
|
+
"$ref": "dimension.json"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"inset": {
|
|
87
|
+
"description": "Whether this shadow is inside the containing shape (inner shadow) rather than a drop shadow (default: false)",
|
|
88
|
+
"oneOf": [
|
|
89
|
+
{
|
|
90
|
+
"type": "boolean"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"$ref": "../../format.json#/definitions/jsonPointerReferenceObject"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": ["color", "offsetX", "offsetY", "blur", "spread"],
|
|
99
|
+
"additionalProperties": false
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.designtokens.org/schemas/2025.10/format/values/strokeStyle.json",
|
|
4
|
-
"title": "Stroke Style Value",
|
|
5
|
-
"description": "Value schema for strokeStyle type tokens. Represents the style applied to lines or borders.",
|
|
6
|
-
"oneOf": [
|
|
7
|
-
{
|
|
8
|
-
"type": "string",
|
|
9
|
-
"enum": [
|
|
10
|
-
"solid",
|
|
11
|
-
"dashed",
|
|
12
|
-
"dotted",
|
|
13
|
-
"double",
|
|
14
|
-
"groove",
|
|
15
|
-
"ridge",
|
|
16
|
-
"outset",
|
|
17
|
-
"inset"
|
|
18
|
-
],
|
|
19
|
-
"description": "Pre-defined stroke style values with the same meaning as CSS line style values"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"type": "object",
|
|
23
|
-
"properties": {
|
|
24
|
-
"dashArray": {
|
|
25
|
-
"description": "Array of dimension values specifying lengths of alternating dashes and gaps",
|
|
26
|
-
"oneOf": [
|
|
27
|
-
{
|
|
28
|
-
"type": "array",
|
|
29
|
-
"items": {
|
|
30
|
-
"oneOf": [
|
|
31
|
-
{
|
|
32
|
-
"$ref": "dimension.json"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"minItems": 1
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"$ref": "../../format.json#/definitions/jsonPointerReferenceObject"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"lineCap": {
|
|
47
|
-
"description": "Line cap style, same meaning as SVG stroke-linecap attribute",
|
|
48
|
-
"oneOf": [
|
|
49
|
-
{
|
|
50
|
-
"type": "string",
|
|
51
|
-
"enum": ["round", "butt", "square"]
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"$ref": "../../format.json#/definitions/jsonPointerReferenceObject"
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"required": ["dashArray", "lineCap"],
|
|
60
|
-
"additionalProperties": false
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://www.designtokens.org/schemas/2025.10/format/values/strokeStyle.json",
|
|
4
|
+
"title": "Stroke Style Value",
|
|
5
|
+
"description": "Value schema for strokeStyle type tokens. Represents the style applied to lines or borders.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"solid",
|
|
11
|
+
"dashed",
|
|
12
|
+
"dotted",
|
|
13
|
+
"double",
|
|
14
|
+
"groove",
|
|
15
|
+
"ridge",
|
|
16
|
+
"outset",
|
|
17
|
+
"inset"
|
|
18
|
+
],
|
|
19
|
+
"description": "Pre-defined stroke style values with the same meaning as CSS line style values"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"dashArray": {
|
|
25
|
+
"description": "Array of dimension values specifying lengths of alternating dashes and gaps",
|
|
26
|
+
"oneOf": [
|
|
27
|
+
{
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"oneOf": [
|
|
31
|
+
{
|
|
32
|
+
"$ref": "dimension.json"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"minItems": 1
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"$ref": "../../format.json#/definitions/jsonPointerReferenceObject"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"lineCap": {
|
|
47
|
+
"description": "Line cap style, same meaning as SVG stroke-linecap attribute",
|
|
48
|
+
"oneOf": [
|
|
49
|
+
{
|
|
50
|
+
"type": "string",
|
|
51
|
+
"enum": ["round", "butt", "square"]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"$ref": "../../format.json#/definitions/jsonPointerReferenceObject"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": ["dashArray", "lineCap"],
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.designtokens.org/schemas/2025.10/format/values/transition.json",
|
|
4
|
-
"title": "Transition Value",
|
|
5
|
-
"description": "Value schema for transition type tokens. Represents an animated transition between two states.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"duration": {
|
|
9
|
-
"description": "The duration of the transition",
|
|
10
|
-
"oneOf": [
|
|
11
|
-
{
|
|
12
|
-
"$ref": "duration.json"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
"delay": {
|
|
20
|
-
"description": "The time to wait before the transition begins",
|
|
21
|
-
"oneOf": [
|
|
22
|
-
{
|
|
23
|
-
"$ref": "duration.json"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"timingFunction": {
|
|
31
|
-
"description": "The timing function of the transition",
|
|
32
|
-
"oneOf": [
|
|
33
|
-
{
|
|
34
|
-
"$ref": "cubicBezier.json"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"required": ["duration", "delay", "timingFunction"],
|
|
43
|
-
"additionalProperties": false
|
|
44
|
-
}
|
|
45
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://www.designtokens.org/schemas/2025.10/format/values/transition.json",
|
|
4
|
+
"title": "Transition Value",
|
|
5
|
+
"description": "Value schema for transition type tokens. Represents an animated transition between two states.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"duration": {
|
|
9
|
+
"description": "The duration of the transition",
|
|
10
|
+
"oneOf": [
|
|
11
|
+
{
|
|
12
|
+
"$ref": "duration.json"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"delay": {
|
|
20
|
+
"description": "The time to wait before the transition begins",
|
|
21
|
+
"oneOf": [
|
|
22
|
+
{
|
|
23
|
+
"$ref": "duration.json"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"timingFunction": {
|
|
31
|
+
"description": "The timing function of the transition",
|
|
32
|
+
"oneOf": [
|
|
33
|
+
{
|
|
34
|
+
"$ref": "cubicBezier.json"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": ["duration", "delay", "timingFunction"],
|
|
43
|
+
"additionalProperties": false
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.designtokens.org/schemas/2025.10/format/values/typography.json",
|
|
4
|
-
"title": "Typography Value",
|
|
5
|
-
"description": "Value schema for typography type tokens. Represents a typographic style.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"fontFamily": {
|
|
9
|
-
"description": "The typography's font",
|
|
10
|
-
"oneOf": [
|
|
11
|
-
{
|
|
12
|
-
"$ref": "fontFamily.json"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
"fontSize": {
|
|
20
|
-
"description": "The size of the typography",
|
|
21
|
-
"oneOf": [
|
|
22
|
-
{
|
|
23
|
-
"$ref": "dimension.json"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"fontWeight": {
|
|
31
|
-
"description": "The weight of the typography",
|
|
32
|
-
"oneOf": [
|
|
33
|
-
{
|
|
34
|
-
"$ref": "fontWeight.json"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
"letterSpacing": {
|
|
42
|
-
"description": "The horizontal spacing between characters",
|
|
43
|
-
"oneOf": [
|
|
44
|
-
{
|
|
45
|
-
"$ref": "dimension.json"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"lineHeight": {
|
|
53
|
-
"description": "The vertical spacing between lines of typography (interpreted as a multiplier of fontSize)",
|
|
54
|
-
"oneOf": [
|
|
55
|
-
{
|
|
56
|
-
"$ref": "number.json"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"required": [
|
|
65
|
-
"fontFamily",
|
|
66
|
-
"fontSize",
|
|
67
|
-
"fontWeight",
|
|
68
|
-
"letterSpacing",
|
|
69
|
-
"lineHeight"
|
|
70
|
-
],
|
|
71
|
-
"additionalProperties": false
|
|
72
|
-
}
|
|
73
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://www.designtokens.org/schemas/2025.10/format/values/typography.json",
|
|
4
|
+
"title": "Typography Value",
|
|
5
|
+
"description": "Value schema for typography type tokens. Represents a typographic style.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"fontFamily": {
|
|
9
|
+
"description": "The typography's font",
|
|
10
|
+
"oneOf": [
|
|
11
|
+
{
|
|
12
|
+
"$ref": "fontFamily.json"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"fontSize": {
|
|
20
|
+
"description": "The size of the typography",
|
|
21
|
+
"oneOf": [
|
|
22
|
+
{
|
|
23
|
+
"$ref": "dimension.json"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"fontWeight": {
|
|
31
|
+
"description": "The weight of the typography",
|
|
32
|
+
"oneOf": [
|
|
33
|
+
{
|
|
34
|
+
"$ref": "fontWeight.json"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"letterSpacing": {
|
|
42
|
+
"description": "The horizontal spacing between characters",
|
|
43
|
+
"oneOf": [
|
|
44
|
+
{
|
|
45
|
+
"$ref": "dimension.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"lineHeight": {
|
|
53
|
+
"description": "The vertical spacing between lines of typography (interpreted as a multiplier of fontSize)",
|
|
54
|
+
"oneOf": [
|
|
55
|
+
{
|
|
56
|
+
"$ref": "number.json"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"$ref": "../../format.json#/definitions/tokenValueReference"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": [
|
|
65
|
+
"fontFamily",
|
|
66
|
+
"fontSize",
|
|
67
|
+
"fontWeight",
|
|
68
|
+
"letterSpacing",
|
|
69
|
+
"lineHeight"
|
|
70
|
+
],
|
|
71
|
+
"additionalProperties": false
|
|
72
|
+
}
|
|
73
|
+
|