alinea
Version:
[](https://npmjs.org/package/alinea) [](https://packagephobia.com/result?p=alinea)
19 lines (17 loc) • 319 B
JavaScript
import {
w
} from "../../chunks/chunk-57QP2MGK.js";
import "../../chunks/chunk-U5RRZUYZ.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
};