Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions generated/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## ⚠️

### The content of this folder is generated and should not be modified directly.
151 changes: 151 additions & 0 deletions generated/tokens/border.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
{
"$id": "https://designtokens.org/schemas/tokens/border",
"title": "Border token",
"description": "The border token.",
"type": "object",
"properties": {
"$type": {
"type": "string",
"pattern": "^border$"
},
"$value": {
"$ref": "https://designtokens.org/schemas/tokens/border/value"
},
"$description": {
"$ref": "https://designtokens.org/schemas/treeNode/description"
},
"$extensions": {
"$ref": "https://designtokens.org/schemas/treeNode/extensions"
}
},
"required": [
"$value"
],
"additionalProperties": false,
"$defs": [
{
"$id": "https://designtokens.org/schemas/alias/value",
"title": "Alias value",
"description": "A path to a value in the design token tree. Example: \"{colors.primary}\".",
"type": "string",
"pattern": "^\\{[a-zA-Z0-9_\\-\\.]+\\}$"
},
{
"$id": "https://designtokens.org/schemas/tokens/color/value",
"title": "Color value",
"description": "The hexadecimal representation of a color.",
"anyOf": [
{
"$ref": "https://designtokens.org/schemas/alias/value"
},
{
"type": "string",
"pattern": "^#[0-9a-fA-F]{6,8}$"
}
]
},
{
"$id": "https://designtokens.org/schemas/tokens/dimension/value",
"title": "Dimension value",
"description": "The dimension of a property.",
"anyOf": [
{
"$ref": "https://designtokens.org/schemas/alias/value"
},
{
"type": "string",
"pattern": "^(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:px|rem)$"
}
]
},
{
"$id": "https://designtokens.org/schemas/tokens/strokeStyle/value",
"title": "StrokeStyle value",
"description": "The stroke style of a property.",
"anyOf": [
{
"$ref": "https://designtokens.org/schemas/alias/value"
},
{
"oneOf": [
{
"type": "string",
"enum": [
"solid",
"dashed",
"dotted",
"double",
"groove",
"ridge",
"outset",
"inset"
]
},
{
"type": "object",
"properties": {
"dashArray": {
"type": "array",
"items": {
"$ref": "https://designtokens.org/schemas/tokens/dimension/value"
}
},
"lineCap": {
"type": "string",
"enum": [
"round",
"butt",
"square"
]
}
},
"required": [
"dashArray",
"lineCap"
]
}
]
}
]
},
{
"$id": "https://designtokens.org/schemas/tokens/border/value",
"title": "Border value",
"description": "The border of a property.",
"anyOf": [
{
"$ref": "https://designtokens.org/schemas/alias/value"
},
{
"type": "object",
"properties": {
"color": {
"$ref": "https://designtokens.org/schemas/tokens/color/value"
},
"width": {
"$ref": "https://designtokens.org/schemas/tokens/dimension/value"
},
"style": {
"$ref": "https://designtokens.org/schemas/tokens/strokeStyle/value"
}
},
"required": [
"color",
"width",
"style"
]
}
]
},
{
"$id": "https://designtokens.org/schemas/treeNode/description",
"title": "Description",
"type": "string"
},
{
"$id": "https://designtokens.org/schemas/treeNode/extensions",
"title": "Extensions",
"type": "object"
}
]
}
116 changes: 116 additions & 0 deletions generated/tokens/border/value.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"$id": "https://designtokens.org/schemas/tokens/border/value",
"title": "Border value",
"description": "The border of a property.",
"anyOf": [
{
"$ref": "https://designtokens.org/schemas/alias/value"
},
{
"type": "object",
"properties": {
"color": {
"$ref": "https://designtokens.org/schemas/tokens/color/value"
},
"width": {
"$ref": "https://designtokens.org/schemas/tokens/dimension/value"
},
"style": {
"$ref": "https://designtokens.org/schemas/tokens/strokeStyle/value"
}
},
"required": [
"color",
"width",
"style"
]
}
],
"$defs": [
{
"$id": "https://designtokens.org/schemas/alias/value",
"title": "Alias value",
"description": "A path to a value in the design token tree. Example: \"{colors.primary}\".",
"type": "string",
"pattern": "^\\{[a-zA-Z0-9_\\-\\.]+\\}$"
},
{
"$id": "https://designtokens.org/schemas/tokens/color/value",
"title": "Color value",
"description": "The hexadecimal representation of a color.",
"anyOf": [
{
"$ref": "https://designtokens.org/schemas/alias/value"
},
{
"type": "string",
"pattern": "^#[0-9a-fA-F]{6,8}$"
}
]
},
{
"$id": "https://designtokens.org/schemas/tokens/dimension/value",
"title": "Dimension value",
"description": "The dimension of a property.",
"anyOf": [
{
"$ref": "https://designtokens.org/schemas/alias/value"
},
{
"type": "string",
"pattern": "^(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:px|rem)$"
}
]
},
{
"$id": "https://designtokens.org/schemas/tokens/strokeStyle/value",
"title": "StrokeStyle value",
"description": "The stroke style of a property.",
"anyOf": [
{
"$ref": "https://designtokens.org/schemas/alias/value"
},
{
"oneOf": [
{
"type": "string",
"enum": [
"solid",
"dashed",
"dotted",
"double",
"groove",
"ridge",
"outset",
"inset"
]
},
{
"type": "object",
"properties": {
"dashArray": {
"type": "array",
"items": {
"$ref": "https://designtokens.org/schemas/tokens/dimension/value"
}
},
"lineCap": {
"type": "string",
"enum": [
"round",
"butt",
"square"
]
}
},
"required": [
"dashArray",
"lineCap"
]
}
]
}
]
}
]
}
58 changes: 58 additions & 0 deletions generated/tokens/color.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"$id": "https://designtokens.org/schemas/tokens/color",
"title": "Color token",
"description": "The color token.",
"type": "object",
"properties": {
"$type": {
"type": "string",
"pattern": "^color$"
},
"$value": {
"$ref": "https://designtokens.org/schemas/tokens/color/value"
},
"$description": {
"$ref": "https://designtokens.org/schemas/treeNode/description"
},
"$extensions": {
"$ref": "https://designtokens.org/schemas/treeNode/extensions"
}
},
"required": [
"$value"
],
"additionalProperties": false,
"$defs": [
{
"$id": "https://designtokens.org/schemas/alias/value",
"title": "Alias value",
"description": "A path to a value in the design token tree. Example: \"{colors.primary}\".",
"type": "string",
"pattern": "^\\{[a-zA-Z0-9_\\-\\.]+\\}$"
},
{
"$id": "https://designtokens.org/schemas/tokens/color/value",
"title": "Color value",
"description": "The hexadecimal representation of a color.",
"anyOf": [
{
"$ref": "https://designtokens.org/schemas/alias/value"
},
{
"type": "string",
"pattern": "^#[0-9a-fA-F]{6,8}$"
}
]
},
{
"$id": "https://designtokens.org/schemas/treeNode/description",
"title": "Description",
"type": "string"
},
{
"$id": "https://designtokens.org/schemas/treeNode/extensions",
"title": "Extensions",
"type": "object"
}
]
}
23 changes: 23 additions & 0 deletions generated/tokens/color/value.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$id": "https://designtokens.org/schemas/tokens/color/value",
"title": "Color value",
"description": "The hexadecimal representation of a color.",
"anyOf": [
{
"$ref": "https://designtokens.org/schemas/alias/value"
},
{
"type": "string",
"pattern": "^#[0-9a-fA-F]{6,8}$"
}
],
"$defs": [
{
"$id": "https://designtokens.org/schemas/alias/value",
"title": "Alias value",
"description": "A path to a value in the design token tree. Example: \"{colors.primary}\".",
"type": "string",
"pattern": "^\\{[a-zA-Z0-9_\\-\\.]+\\}$"
}
]
}
Loading