aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-07-14 11:40:40 +0200
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-07-17 18:32:38 +0200
commit70146b971f3ba6adb11eac0f465c7f40ad88ebae (patch)
tree6347c687baaeaafd9ecb86746f65a20d9a6de218
parenttests: rewrite contrast checker in pure POSIX sh (diff)
first v4 draft, Lch edition
-rw-r--r--CHANGELOG.md30
-rw-r--r--colors/colors.sh24
2 files changed, 42 insertions, 12 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a2ade0b..5e078c6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,36 @@
# CHANGELOG
Documentation on how the colors were determined in every version, along with the changes.
+## V4
+V4 is a reimagining of starlight using the LCH color space.
+The comments in particular were regarding the accessibility (lack of contrast) of red and magenta.
+After some testing, WCAG AAA is not a particularly big deal, but a contrast ratio of at least 4 is highly recommendable.
+With some math and focus group testing,
+I determined that highly variable lightness values are somewhat inevitable when catering to color blindnesses:
+in part because they're what permit colorblind people to differentiate the colors,
+and in part because of the need to fit into sRGB.
+
+The new colors aim for an LCH L of 65 for the basic version and 75 for the bright version.
+Additionally, bright versions are hue-shifted right by 10.
+Chroma values are either 40, 60, or 80, depending on sRGB and colorblindness constraints.
+
+That said, the new colors are (L, C, H):
+* Red: 55, 80, 20 and 60, 80, 30.
+ The lightness needed to be reduced to fit into sRGB, but be high enough to remain legible.
+ For bright red, it looked different enough at 60, so it was kept to remain mostly within sRGB.
+* Green: 65, 80, 130 and 75, 80, 140.
+* Yellow: 80, 80, 90 and 90, 80, 100.
+* Blue: 65, 40, 230 and 75, 40, 240.
+ The chromacity had to be reduced to fit into sRGB.
+* Magenta: 65, 60, 330 and 75, 60, 340.
+ The chromacity had to be reduced to fit into sRGB.
+* Cyan: 70, 40, 190 and 80, 40, 200.
+ The chromacity had to be reduced to fit into sRGB.
+ The hue and lightness had to be further played around with to accomodate color blindness.
+
+The white and black values were left alone, as no one had issues with them.
+They may be changed in a patch.
+
## V3
We use black as the background, and move old brblack into black.
We then make brblack more of a gray.
diff --git a/colors/colors.sh b/colors/colors.sh
index b9f7c4e..4ea25e8 100644
--- a/colors/colors.sh
+++ b/colors/colors.sh
@@ -4,23 +4,23 @@ theme=starlight
black=242424
brblack=616161
-red=CF1745
-brred=FF1A53
+red=F62B5A
+brred=FF4D51
-green=3ECF5B
-brgreen=17E640
+green=47B413
+brgreen=35D450
-yellow=CFCF17
-bryellow=ECFF1A
+yellow=E3C401
+bryellow=E9E836
-blue=0BA6DA
-brblue=1AC6FF
+blue=24ACD4
+brblue=5DC5F8
-magenta=D926AC
-brmagenta=F53DC7
+magenta=E276D5
+brmagenta=FF92F1
-cyan=17CFA1
-brcyan=1AFFC6
+cyan=31BFB6
+brcyan=50DADE
white=E6E6E6
brwhite=FFFFFF