UNPKG

@thi.ng/color

Version:

Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets

29 lines (28 loc) 712 B
var Hue = /* @__PURE__ */ ((Hue2) => { Hue2[Hue2["RED"] = 0] = "RED"; Hue2[Hue2["ORANGE"] = 1] = "ORANGE"; Hue2[Hue2["YELLOW"] = 2] = "YELLOW"; Hue2[Hue2["CHARTREUSE"] = 3] = "CHARTREUSE"; Hue2[Hue2["GREEN"] = 4] = "GREEN"; Hue2[Hue2["SPRING_GREEN"] = 5] = "SPRING_GREEN"; Hue2[Hue2["CYAN"] = 6] = "CYAN"; Hue2[Hue2["AZURE"] = 7] = "AZURE"; Hue2[Hue2["BLUE"] = 8] = "BLUE"; Hue2[Hue2["VIOLET"] = 9] = "VIOLET"; Hue2[Hue2["MAGENTA"] = 10] = "MAGENTA"; Hue2[Hue2["ROSE"] = 11] = "ROSE"; return Hue2; })(Hue || {}); class ParsedColor { constructor(mode, value) { this.mode = mode; this.value = value; } deref() { return this.value; } } export { Hue, ParsedColor };