Show HN: Cm-colors –I got tired of manually fixing wcag contrast,so I made this(github.com)
github.com
Show HN: Cm-colors –I got tired of manually fixing wcag contrast,so I made this
https://github.com/comfort-mode-toolkit/cm-colors
I usually look up palettes and the UI comes out nice except some color pairs don't pass wcag color contrast and well - just isn't readable
Ended up writing a tiny library that automatically nudges your text color just enough to pass AA or AAA, while keeping it visually similar to the original
along with a color contrast linter so we can use it in CI
Thought you guys might find it useful too, it's foss :>
0 comments
—