@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.
Files changed (28) hide show
  1. package/LICENSE +159 -159
  2. package/README.md +57 -57
  3. package/lib/index.d.ts +132 -17
  4. package/lib/index.js +724 -624
  5. package/lib/schemas/2025.10/format/group.json +55 -55
  6. package/lib/schemas/2025.10/format/groupOrToken.json +15 -15
  7. package/lib/schemas/2025.10/format/token.json +425 -425
  8. package/lib/schemas/2025.10/format/tokenType.json +23 -23
  9. package/lib/schemas/2025.10/format/values/border.json +45 -45
  10. package/lib/schemas/2025.10/format/values/color.json +515 -515
  11. package/lib/schemas/2025.10/format/values/cubicBezier.json +57 -57
  12. package/lib/schemas/2025.10/format/values/dimension.json +35 -35
  13. package/lib/schemas/2025.10/format/values/duration.json +35 -35
  14. package/lib/schemas/2025.10/format/values/fontFamily.json +34 -34
  15. package/lib/schemas/2025.10/format/values/fontWeight.json +39 -39
  16. package/lib/schemas/2025.10/format/values/gradient.json +53 -53
  17. package/lib/schemas/2025.10/format/values/number.json +8 -8
  18. package/lib/schemas/2025.10/format/values/shadow.json +103 -103
  19. package/lib/schemas/2025.10/format/values/strokeStyle.json +64 -64
  20. package/lib/schemas/2025.10/format/values/transition.json +45 -45
  21. package/lib/schemas/2025.10/format/values/typography.json +73 -73
  22. package/lib/schemas/2025.10/format.json +106 -106
  23. package/lib/schemas/2025.10/resolver/modifier.json +85 -85
  24. package/lib/schemas/2025.10/resolver/resolutionOrder.json +117 -117
  25. package/lib/schemas/2025.10/resolver/set.json +71 -71
  26. package/lib/schemas/2025.10/resolver.json +62 -62
  27. package/lib/schemas/hrdt-tokens.json +533 -533
  28. package/package.json +3 -2
@@ -1,23 +1,23 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://www.designtokens.org/schemas/2025.10/format/tokenType.json",
4
- "title": "TokenType",
5
- "description": "A token type in the DTCG specification",
6
- "type": "string",
7
- "enum": [
8
- "color",
9
- "dimension",
10
- "fontFamily",
11
- "fontWeight",
12
- "duration",
13
- "cubicBezier",
14
- "number",
15
- "strokeStyle",
16
- "border",
17
- "transition",
18
- "shadow",
19
- "gradient",
20
- "typography"
21
- ]
22
- }
23
-
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://www.designtokens.org/schemas/2025.10/format/tokenType.json",
4
+ "title": "TokenType",
5
+ "description": "A token type in the DTCG specification",
6
+ "type": "string",
7
+ "enum": [
8
+ "color",
9
+ "dimension",
10
+ "fontFamily",
11
+ "fontWeight",
12
+ "duration",
13
+ "cubicBezier",
14
+ "number",
15
+ "strokeStyle",
16
+ "border",
17
+ "transition",
18
+ "shadow",
19
+ "gradient",
20
+ "typography"
21
+ ]
22
+ }
23
+
@@ -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/border.json",
4
- "title": "Border Value",
5
- "description": "Value schema for border type tokens. Represents a border style.",
6
- "type": "object",
7
- "properties": {
8
- "color": {
9
- "description": "The color of the border",
10
- "oneOf": [
11
- {
12
- "$ref": "color.json"
13
- },
14
- {
15
- "$ref": "../../format.json#/definitions/tokenValueReference"
16
- }
17
- ]
18
- },
19
- "width": {
20
- "description": "The width or thickness of the border",
21
- "oneOf": [
22
- {
23
- "$ref": "dimension.json"
24
- },
25
- {
26
- "$ref": "../../format.json#/definitions/tokenValueReference"
27
- }
28
- ]
29
- },
30
- "style": {
31
- "description": "The border's style",
32
- "oneOf": [
33
- {
34
- "$ref": "strokeStyle.json"
35
- },
36
- {
37
- "$ref": "../../format.json#/definitions/tokenValueReference"
38
- }
39
- ]
40
- }
41
- },
42
- "required": ["color", "width", "style"],
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/border.json",
4
+ "title": "Border Value",
5
+ "description": "Value schema for border type tokens. Represents a border style.",
6
+ "type": "object",
7
+ "properties": {
8
+ "color": {
9
+ "description": "The color of the border",
10
+ "oneOf": [
11
+ {
12
+ "$ref": "color.json"
13
+ },
14
+ {
15
+ "$ref": "../../format.json#/definitions/tokenValueReference"
16
+ }
17
+ ]
18
+ },
19
+ "width": {
20
+ "description": "The width or thickness of the border",
21
+ "oneOf": [
22
+ {
23
+ "$ref": "dimension.json"
24
+ },
25
+ {
26
+ "$ref": "../../format.json#/definitions/tokenValueReference"
27
+ }
28
+ ]
29
+ },
30
+ "style": {
31
+ "description": "The border's style",
32
+ "oneOf": [
33
+ {
34
+ "$ref": "strokeStyle.json"
35
+ },
36
+ {
37
+ "$ref": "../../format.json#/definitions/tokenValueReference"
38
+ }
39
+ ]
40
+ }
41
+ },
42
+ "required": ["color", "width", "style"],
43
+ "additionalProperties": false
44
+ }
45
+