Skip to content

Instantly share code, notes, and snippets.

@GarthDB
Created September 26, 2023 17:02
Show Gist options
  • Save GarthDB/ae3950ff7a322eed91cc4f4b2908b1b5 to your computer and use it in GitHub Desktop.
Save GarthDB/ae3950ff7a322eed91cc4f4b2908b1b5 to your computer and use it in GitHub Desktop.
Token Types and Object Names
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/color.json",
"title": "Color",
"description": "Color token schema.",
"type": "object",
"allOf": [
{
"$ref": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/token.json"
}
],
"properties": {
"$schema": {
"const": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/color.json"
},
"value": {
"type": "string",
"pattern": "^rgba\\((([0-1]?[0-9]?[0-9]?|2[0-4][0-9]|25[0-5]),\\s?){3}(0|1|0?\\.\\d+)\\)|rgb\\(([0-1]?[0-9]?[0-9]?|2[0-4][0-9]|25[0-5]){1,3}(,\\s?\\d{1,3}%?){2}\\)$"
},
"component": {},
"deprecated": {},
"deprecated_comment": {},
"uuid": {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment