Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Also, there's a neat technique to make the text color either black or white depending on what has more contrast against the background color.

https://24ways.org/2010/calculating-color-contrast



Nice! I'm definitely going to use this. The text is barely visible on a lot of the lighter colors right now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: