- Description:
This key represents an individual color string in the
_inputs.*.(color-input).options.palettearray.The value is a string that specifies a color in the predefined palette for Color Inputs. Each string can be a hex code (e.g.,
#ff0000), CSS color name, or other valid color format.- Appears in:
- Type:
string- Examples:
In this example, we have configured a color input with a palette containing a hex code color value.
Copied to clipboard_inputs: primary_color: type: color label: Primary Color options: palette: - '#ff0000'{ "_inputs": { "primary_color": { "type": "color", "label": "Primary Color", "options": { "palette": [ "#ff0000" ] } } } }In this example, we have configured a color input with a palette containing a CSS color name.
Copied to clipboard_inputs: accent_color: type: color label: Accent Color options: palette: - red{ "_inputs": { "accent_color": { "type": "color", "label": "Accent Color", "options": { "palette": [ "red" ] } } } }