Reference · Flags by their colours
COLOUR_NAMESconstant
The names a flag's colour can have, in the order a colour picker shows them: a closed list, so a page can draw a chip for each. Frozen.
Import it
import { COLOUR_NAMES } from "@johnmorrisdotca/hata/search";
Definition
const COLOUR_NAMES: readonly ColourName[] = Object.freeze([...NAMES])
Examples
import { COLOUR_NAMES } from "@johnmorrisdotca/hata/search";
console.log(COLOUR_NAMES); // ["red", "orange", "yellow", "green", "light-blue", "blue", "purple", "brown", "black", "grey", "white"][
'red', 'orange',
'yellow', 'green',
'light-blue', 'blue',
'purple', 'brown',
'black', 'grey',
'white'
]What it prints (run when this page was built)