observable-framework-input-color
Installation
SKILL.md
Input: Color
Observable Framework documentation: Input: Color Source: https://observablehq.com/framework/input-color
API · Source · The color input specifies an RGB color as a hexadecimal string #rrggbb. The initial value defaults to black (#000000) and can be specified with the value option.
const color = view(Inputs.color({label: "Favorite color", value: "#4682b4"}));
color
The color input is currently strict in regards to input: it does not accept any CSS color string. If you’d like greater flexibility, consider using D3 to parse colors and format them as hexadecimal.