alinea
Version:
Headless git-based CMS
18 lines (16 loc) • 315 B
JavaScript
import {
w
} from "../../chunks/chunk-76QF5YTJ.js";
import "../../chunks/chunk-NZLE2WMY.js";
// src/ui/util/ContrastColor.ts
function contrastColor(color) {
if (!color) return void 0;
try {
return w(color) > 0.5 ? "#11181c" : "white";
} catch (e) {
return void 0;
}
}
export {
contrastColor
};