@design-token-kit/core 0.1.2 → 0.2.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/LICENSE +0 -0
- package/README.md +0 -0
- 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 +530 -530
- package/package.json +2 -1
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.designtokens.org/schemas/2025.10/resolver/set.json",
|
|
4
|
-
"title": "Set",
|
|
5
|
-
"description": "A set is a collection of design tokens in DTCG format. A set MUST contain a sources array with tokens declared directly, or a reference object pointing to a JSON file containing design tokens, or any combination of the two.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": ["sources"],
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"properties": {
|
|
10
|
-
"description": {
|
|
11
|
-
"title": "Description",
|
|
12
|
-
"type": "string",
|
|
13
|
-
"description": "A human-readable description of the purpose of the set."
|
|
14
|
-
},
|
|
15
|
-
"sources": {
|
|
16
|
-
"title": "Sources",
|
|
17
|
-
"$ref": "#/definitions/tokenSourcesForSets",
|
|
18
|
-
"description": "An array of token sources. Can contain reference objects pointing to JSON files, inline token definitions, or any combination. If the array declares multiple sources, they will be merged in array order, meaning if a token is declared multiple times, the last occurrence in the array will be the final value."
|
|
19
|
-
},
|
|
20
|
-
"$extensions": {
|
|
21
|
-
"title": "Extensions",
|
|
22
|
-
"type": "object",
|
|
23
|
-
"description": "Vendor-specific extensions. Keys are vendor-specific namespaces."
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"definitions": {
|
|
27
|
-
"referenceObjectForSets": {
|
|
28
|
-
"title": "Reference Object (For Sets)",
|
|
29
|
-
"type": "object",
|
|
30
|
-
"required": ["$ref"],
|
|
31
|
-
"properties": {
|
|
32
|
-
"$ref": {
|
|
33
|
-
"title": "JSON Reference",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"format": "uri-reference",
|
|
36
|
-
"description": "A JSON Pointer (RFC 6901) or URI reference. Sets MUST NOT reference modifiers (#/modifiers/...) or resolutionOrder items (#/resolutionOrder/...).",
|
|
37
|
-
"not": {
|
|
38
|
-
"anyOf": [
|
|
39
|
-
{
|
|
40
|
-
"pattern": "^#/modifiers/",
|
|
41
|
-
"$comment": "Sets cannot reference modifiers"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"pattern": "^#/resolutionOrder/",
|
|
45
|
-
"$comment": "Nothing can reference resolutionOrder items"
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"description": "A reference object for use within sets. Cannot point to modifiers or resolutionOrder items."
|
|
52
|
-
},
|
|
53
|
-
"tokenSourcesForSets": {
|
|
54
|
-
"title": "Token Sources (For Sets)",
|
|
55
|
-
"type": "array",
|
|
56
|
-
"description": "An array of token sources for sets - cannot reference modifiers or resolutionOrder items.",
|
|
57
|
-
"items": {
|
|
58
|
-
"oneOf": [
|
|
59
|
-
{
|
|
60
|
-
"$ref": "#/definitions/referenceObjectForSets"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"$ref": "../format.json",
|
|
64
|
-
"description": "Inline design tokens in DTCG format"
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://www.designtokens.org/schemas/2025.10/resolver/set.json",
|
|
4
|
+
"title": "Set",
|
|
5
|
+
"description": "A set is a collection of design tokens in DTCG format. A set MUST contain a sources array with tokens declared directly, or a reference object pointing to a JSON file containing design tokens, or any combination of the two.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["sources"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"description": {
|
|
11
|
+
"title": "Description",
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "A human-readable description of the purpose of the set."
|
|
14
|
+
},
|
|
15
|
+
"sources": {
|
|
16
|
+
"title": "Sources",
|
|
17
|
+
"$ref": "#/definitions/tokenSourcesForSets",
|
|
18
|
+
"description": "An array of token sources. Can contain reference objects pointing to JSON files, inline token definitions, or any combination. If the array declares multiple sources, they will be merged in array order, meaning if a token is declared multiple times, the last occurrence in the array will be the final value."
|
|
19
|
+
},
|
|
20
|
+
"$extensions": {
|
|
21
|
+
"title": "Extensions",
|
|
22
|
+
"type": "object",
|
|
23
|
+
"description": "Vendor-specific extensions. Keys are vendor-specific namespaces."
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"definitions": {
|
|
27
|
+
"referenceObjectForSets": {
|
|
28
|
+
"title": "Reference Object (For Sets)",
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": ["$ref"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"$ref": {
|
|
33
|
+
"title": "JSON Reference",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"format": "uri-reference",
|
|
36
|
+
"description": "A JSON Pointer (RFC 6901) or URI reference. Sets MUST NOT reference modifiers (#/modifiers/...) or resolutionOrder items (#/resolutionOrder/...).",
|
|
37
|
+
"not": {
|
|
38
|
+
"anyOf": [
|
|
39
|
+
{
|
|
40
|
+
"pattern": "^#/modifiers/",
|
|
41
|
+
"$comment": "Sets cannot reference modifiers"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"pattern": "^#/resolutionOrder/",
|
|
45
|
+
"$comment": "Nothing can reference resolutionOrder items"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"description": "A reference object for use within sets. Cannot point to modifiers or resolutionOrder items."
|
|
52
|
+
},
|
|
53
|
+
"tokenSourcesForSets": {
|
|
54
|
+
"title": "Token Sources (For Sets)",
|
|
55
|
+
"type": "array",
|
|
56
|
+
"description": "An array of token sources for sets - cannot reference modifiers or resolutionOrder items.",
|
|
57
|
+
"items": {
|
|
58
|
+
"oneOf": [
|
|
59
|
+
{
|
|
60
|
+
"$ref": "#/definitions/referenceObjectForSets"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"$ref": "../format.json",
|
|
64
|
+
"description": "Inline design tokens in DTCG format"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.designtokens.org/schemas/2025.10/resolver.json",
|
|
4
|
-
"title": "DTCG Resolver Schema",
|
|
5
|
-
"description": "JSON Schema for the Design Tokens Community Group (DTCG) Resolver specification",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": ["version", "resolutionOrder"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"$schema": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"format": "uri-reference",
|
|
12
|
-
"description": "URI reference to this JSON schema."
|
|
13
|
-
},
|
|
14
|
-
"name": {
|
|
15
|
-
"title": "Name",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"description": "A short, human-readable name for the document."
|
|
18
|
-
},
|
|
19
|
-
"version": {
|
|
20
|
-
"title": "Version",
|
|
21
|
-
"type": "string",
|
|
22
|
-
"const": "2025.10",
|
|
23
|
-
"description": "Version of the resolver specification. Must be '2025.10'."
|
|
24
|
-
},
|
|
25
|
-
"description": {
|
|
26
|
-
"title": "Description",
|
|
27
|
-
"type": "string",
|
|
28
|
-
"description": "A human-readable description for this document."
|
|
29
|
-
},
|
|
30
|
-
"sets": {
|
|
31
|
-
"title": "Token Sets",
|
|
32
|
-
"type": "object",
|
|
33
|
-
"description": "Definition of sets. A set is a collection of design tokens in DTCG format.",
|
|
34
|
-
"patternProperties": {
|
|
35
|
-
"^.+$": {
|
|
36
|
-
"$ref": "resolver/set.json"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"modifiers": {
|
|
41
|
-
"title": "Modifiers",
|
|
42
|
-
"type": "object",
|
|
43
|
-
"description": "Definition of modifiers. A modifier allows for conditional inclusion of token values via contexts.",
|
|
44
|
-
"patternProperties": {
|
|
45
|
-
"^.+$": {
|
|
46
|
-
"$ref": "resolver/modifier.json"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"resolutionOrder": {
|
|
51
|
-
"title": "Resolution Order",
|
|
52
|
-
"$ref": "resolver/resolutionOrder.json"
|
|
53
|
-
},
|
|
54
|
-
"$defs": {
|
|
55
|
-
"title": "Definitions",
|
|
56
|
-
"type": "object",
|
|
57
|
-
"description": "Optional definitions that tools MAY support but MUST NOT throw an error when encountered."
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"additionalProperties": false
|
|
61
|
-
}
|
|
62
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://www.designtokens.org/schemas/2025.10/resolver.json",
|
|
4
|
+
"title": "DTCG Resolver Schema",
|
|
5
|
+
"description": "JSON Schema for the Design Tokens Community Group (DTCG) Resolver specification",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["version", "resolutionOrder"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "uri-reference",
|
|
12
|
+
"description": "URI reference to this JSON schema."
|
|
13
|
+
},
|
|
14
|
+
"name": {
|
|
15
|
+
"title": "Name",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "A short, human-readable name for the document."
|
|
18
|
+
},
|
|
19
|
+
"version": {
|
|
20
|
+
"title": "Version",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"const": "2025.10",
|
|
23
|
+
"description": "Version of the resolver specification. Must be '2025.10'."
|
|
24
|
+
},
|
|
25
|
+
"description": {
|
|
26
|
+
"title": "Description",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "A human-readable description for this document."
|
|
29
|
+
},
|
|
30
|
+
"sets": {
|
|
31
|
+
"title": "Token Sets",
|
|
32
|
+
"type": "object",
|
|
33
|
+
"description": "Definition of sets. A set is a collection of design tokens in DTCG format.",
|
|
34
|
+
"patternProperties": {
|
|
35
|
+
"^.+$": {
|
|
36
|
+
"$ref": "resolver/set.json"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"modifiers": {
|
|
41
|
+
"title": "Modifiers",
|
|
42
|
+
"type": "object",
|
|
43
|
+
"description": "Definition of modifiers. A modifier allows for conditional inclusion of token values via contexts.",
|
|
44
|
+
"patternProperties": {
|
|
45
|
+
"^.+$": {
|
|
46
|
+
"$ref": "resolver/modifier.json"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"resolutionOrder": {
|
|
51
|
+
"title": "Resolution Order",
|
|
52
|
+
"$ref": "resolver/resolutionOrder.json"
|
|
53
|
+
},
|
|
54
|
+
"$defs": {
|
|
55
|
+
"title": "Definitions",
|
|
56
|
+
"type": "object",
|
|
57
|
+
"description": "Optional definitions that tools MAY support but MUST NOT throw an error when encountered."
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
}
|
|
62
|
+
|