Menu

Three of the five text colours in our alert emails fail WCAG AA, and the one that tells you which search it came from is 2.29:1
📰

Three of the five text colours in our alert emails fail WCAG AA, and the one that tells you which search it came from is 2.29:1

DEV Community: typescript·Daniel Pertu·4 days ago
#8t7QEJQP
#devtotypescript#devto#dev#fafafa#xxxxxx
Reading 0:00
15s threshold

Notifio is a desktop app that watches rental search pages and tells you when a new listing appears. The alert is the product. The app finds the listing, posts to the server, and the server sends an email, which for most users is the thing they actually look at.

That email is built by one module, server/src/lib/emails/alert.ts , which I have written about before: four alert emails, eight functions, and a five-line HTML escaper . That post was about the structure. This one is about the colours, because I measured them this morning and the result is worse than I expected in a specific and embarrassing way.

The whole palette is seven hex strings

$ grep -ro "#[0-9a-f] \{ 6 \} " src/lib/emails/alert.ts | sort -u #0a0a0a #171717 #262626 #404040 #525252 #a3a3a3 #fafafa

Enter fullscreen mode

Exit fullscreen mode

Two of those are backgrounds: #0a0a0a is the page, #171717 is the card the content sits on. #262626 draws the rules between sections.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.