This commit is contained in:
Henry Jameson 2024-12-31 13:52:32 +02:00
parent 18aba1ebbc
commit 09956cad2f

View file

@ -214,7 +214,6 @@ export const getTextColor = function (bg, text, preserve) {
result.l += delta * multiplier
result.l = Math.min(100, Math.max(0, result.l))
contrast = getContrastRatio(bg, convert(result).rgb)
console.log(convert(result).hex, result.l, contrast)
}
const base = typeof text.a !== 'undefined' ? { a: text.a } : {}