Documentation
¶
Overview ¶
Package palettebuilder provides shared helpers for building colour palettes from map[string]string colour sources with optional role-mapping support. Used by remotecss and remotejson input plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPalette ¶
BuildPalette converts a map of colour names → hex strings into a Palette. If mapping is non-empty, role hints are applied: each entry maps a source colour name to a colour.Role string. When verbose is true, missing source keys are reported as warnings.
func ParseColourRole ¶
ParseColourRole parses a role name string into a Role constant. The name is normalised to lowercase with underscores and hyphens stripped.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.