Update colors.

This commit is contained in:
Nate Butler
2023-02-12 21:04:31 -05:00
parent e65c0810ba
commit a32c0d1c9b
5 changed files with 121 additions and 76 deletions
+3 -1
View File
@@ -60,7 +60,9 @@ function generateColor(
const rgba = color.rgba();
const hex = color.hex();
const isLight = lch[0] > 50;
// 55 is a magic number. It's the lightness value at which we consider a color to be "light".
// It was picked by eye with some testing. We might want to use a more scientific approach in the future.
const isLight = lch[0] > 55;
const result: Color = {
step,