@adobe/spectrum-tokens
Version:
Design tokens for Spectrum, Adobe's design system
53 lines (52 loc) • 1.32 kB
JSON
{
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/color-slider.json",
"title": "Color slider",
"description": "A color slider lets users visually change an individual channel of a color.",
"meta": {
"category": "inputs",
"documentationUrl": "https://spectrum.adobe.com/page/color-slider/"
},
"type": "object",
"properties": {
"background": {
"type": "string",
"description": "This will vary depending on implementation."
},
"value": {
"type": "number",
"description": "Number (from minValue to maxValue)"
},
"minValue": {
"type": "number",
"default": 0
},
"maxValue": {
"type": "number",
"default": 100
},
"step": {
"type": "number",
"default": 1
},
"orientation": {
"type": "string",
"enum": ["horizontal", "vertical"],
"default": "horizontal"
},
"length": {
"type": "number",
"default": 192,
"description": "units: px"
},
"isDisabled": {
"type": "boolean",
"default": false
},
"state": {
"type": "string",
"enum": ["default", "hover", "down", "keyboard focus"],
"default": "default"
}
}
}