feat: tweak color swatch, and button bgs (#9330)

* feat: tweak color swatch, and button bgs

* snapshots
This commit is contained in:
David Luzar
2025-04-02 14:36:13 +02:00
committed by GitHub
parent 7c58477382
commit 57a9e301d4
12 changed files with 94 additions and 58 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,