@adobe/spectrum-tokens
Version:
Design tokens for Spectrum, Adobe's design system
65 lines (64 loc) • 1.63 kB
JSON
{
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/color-area.json",
"title": "Color area",
"description": "A color area allows users to visually select two properties of a color simultaneously. It's commonly used together with a color slider or color wheel.",
"meta": {
"category": "inputs",
"documentationUrl": "https://spectrum.adobe.com/page/color-area/"
},
"type": "object",
"properties": {
"background": {
"type": "string",
"description": "This will vary depending on implementation."
},
"x-value": {
"type": "number",
"description": "Number (from x-minValue to x-maxValue)"
},
"x-minValue": {
"type": "number",
"default": 0
},
"x-maxValue": {
"type": "number",
"default": 100
},
"y-value": {
"type": "number",
"description": "Number (from y-minValue to y-maxValue)"
},
"y-minValue": {
"type": "number",
"default": 0
},
"y-maxValue": {
"type": "number",
"default": 100
},
"step": {
"type": "number",
"default": 1
},
"width": {
"type": "number",
"default": 192,
"description": "units: px"
},
"height": {
"type": "number",
"default": 192,
"description": "units: px"
},
"isDisabled": {
"type": "boolean",
"default": false
},
"state": {
"type": "string",
"enum": ["default", "hover", "down", "keyboard focus"],
"default": "default"
}
}
}