chore: generate
This commit is contained in:
parent
f35bb5184c
commit
bf4c647653
@ -19,12 +19,7 @@ function resolveGreyRef(value: V2ColorValue, primitives: Record<string, V2ColorV
|
|||||||
return hex
|
return hex
|
||||||
}
|
}
|
||||||
|
|
||||||
function pickGrey(
|
function pickGrey(primitives: Record<string, V2ColorValue>, background: HexColor, minContrast: number, target: number) {
|
||||||
primitives: Record<string, V2ColorValue>,
|
|
||||||
background: HexColor,
|
|
||||||
minContrast: number,
|
|
||||||
target: number,
|
|
||||||
) {
|
|
||||||
const matches = GREY_STEPS.filter((step) => {
|
const matches = GREY_STEPS.filter((step) => {
|
||||||
const hex = greyHex(primitives, step)
|
const hex = greyHex(primitives, step)
|
||||||
return hex && contrastRatio(hex, background) >= minContrast
|
return hex && contrastRatio(hex, background) >= minContrast
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user