function o(e) {
  if (!e || typeof e != "string") return !1;
  const r = e.trim();
  return !!(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(r) || /^var\(--[a-zA-Z0-9-_]+\)$/.test(r) || [
    "transparent",
    "currentcolor",
    "black",
    "white",
    "red",
    "green",
    "blue",
    "yellow",
    "cyan",
    "magenta",
    "gray",
    "grey",
    "silver",
    "maroon",
    "olive",
    "lime",
    "aqua",
    "teal",
    "navy",
    "fuchsia",
    "purple",
    "orange",
    "pink",
    "brown",
    "gold"
  ].includes(r.toLowerCase()));
}
export {
  o as default
};
//# sourceMappingURL=isValidColor.js.map
