Reference · Flag source and framing metadata
ColourNametype
The names a flag's colour can have: a closed list of the words a person uses of a flag ("red, white and blue"). Two
blues are both blue, and the hex says which; light-blue is the sky blue of Argentina's flag or the United Nations'.
Import it
import type { ColourName } from "@johnmorrisdotca/hata/manifest";
Also exported from: @johnmorrisdotca/hata/search
Definition
type ColourName = "red" | "orange" | "yellow" | "green" | "light-blue" | "blue" | "purple" | "brown" | "black" | "grey" | "white";
Examples
import { manifest, type ColourName } from "@johnmorrisdotca/hata/manifest";
const names: ColourName[] = (manifest("FR")?.colours ?? []).map((one) => one.name);
console.log(names); // ["blue", "red", "white"][ 'blue', 'red', 'white' ]What it prints (run when this page was built)