@adobe/spectrum-tokens
Version:
Design tokens for Spectrum, Adobe's design system
46 lines (45 loc) • 958 B
JSON
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/token.json",
"title": "Token",
"description": "A general token.",
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "number"
},
{
"type": "string"
},
{
"type": "object"
},
{
"type": "array"
}
]
},
"component": {
"type": "string"
},
"private": {
"type": "boolean",
"default": false
},
"deprecated": {
"type": "boolean",
"default": false
},
"deprecated_comment": {
"type": "string"
},
"uuid": {
"type": "string",
"pattern": "^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$",
"format": "uuid"
}
},
"required": ["value", "uuid"]
}