Hi,
is there any way in a section to define a color picker, only to choose from colors defined globally,
to be used on all custom sections?
thanks
A user is seeking a way to create a color picker in a section that only allows selection from a predefined set of globally-defined colors, rather than an open color picker. This would apply across all custom sections.
Initial Response:
default attribute with a code example showing color, ID, label, and default hex value fields.Clarification:
Status: The question remains open, as the suggested solution doesn’t address the core requirement of limiting color options to a predefined palette.
Hi,
is there any way in a section to define a color picker, only to choose from colors defined globally,
to be used on all custom sections?
thanks
Hello @Rasmus-sorensen ,
Pass the color in default attribute
{
"type": "color",
"id": "color_heading",
"label": "Headings",
"default": "#3d4246"
}
Hi,
I was more looking for a set of colors to choose from. So it is locked to 3 or 4 colors to pick from.
Something like a select box (might be the solution)