feat: tweak color swatch, and button bgs

This commit is contained in:
dwelle 2025-04-02 10:59:49 +02:00
parent 7c58477382
commit 1056e91a33
11 changed files with 88 additions and 52 deletions

View file

@ -2,6 +2,8 @@ import oc from "open-color";
import type { Merge } from "./utility-types";
export const COLOR_OUTLINE_CONTRAST_THRESHOLD = 240;
// FIXME can't put to utils.ts rn because of circular dependency
const pick = <R extends Record<string, any>, K extends readonly (keyof R)[]>(
source: R,