Hacker News new | ask | show | jobs
by fainpul 189 days ago
Dark mode looks fine to me: light gray on black.

Light mode is terrible: dark gray on black.

2 comments

You get light grey? The headings are #101828 and body text #364153 on #0a0a0a for me.
Light mode text: oklch(37.3% .034 259.733)

Dark mode text: oklch(87.2% .01 258.338)

Background in both modes: oklch(14.5% 0 0)

See here: https://jsfiddle.net/kmtwf4g3/

I think the fuckup of the website author is that the background is black instead of white in light mode. Otherwise the text colors would be fine as they are. Probably vibe coded and never tested in light mode.

Not vibe-coded! I just didn't realize that the `prose` mode with Tailwind changes the default text colour set on other pages.

Lesson learned!

Light gray on black is not fine. Background should not be black, the text blurs.