News for hackers. Stuff that matters.
Re:UI design for software developers. Part 1, Colors by EricE on Wednesday November 18, 2020 @08:16AM (#25136374)
One of the best discussions of color - especially from an accessibility standpoint is from the US Digital Web Design System: https://designsystem.digital.gov/design-tokens/color/overvie...

It has one of the best discussions of contrast I have seen; very timely given the trends for low contrast design that seem prevalent combined with my now over 40 eyes (darn those kids!)

Re:UI design for software developers. Part 1, Colors by coldpie on Wednesday November 18, 2020 @08:48AM (#25136646)
> very timely given the trends for low contrast design that seem prevalent combined with my now over 40 eyes

I'm a decade younger than you and I still bristle every time I see someone disparage black-on-white. #000 on #FFF looks fine, guys, and it looks way, way better than the #BBB on #CCC that you're about to publish. You're overthinking it.

Re:UI design for software developers. Part 1, Colors by edoceo on Wednesday November 18, 2020 @10:16AM (#25137642)
bg: #fafafa; fg: #101010

Black and white, but take the edge of a little.

Re:UI design for software developers. Part 1, Colors by jcranmer on Wednesday November 18, 2020 @01:49PM (#25140716)
Black (#000) against a slight creamy color--like the main background of Hacker News (#f6f6ef)--is pretty good IMHO.
Re:UI design for software developers. Part 1, Colors by gpanders on Wednesday November 18, 2020 @02:52PM (#25141590)
> Accessibility is not a special case. In Q2 of 2018, sites using USWDS topped 1.4 billion pageviews. 4.5% [the portion of the population with some kind of color insensitivity] of 1.4 billion is around 60 million pageviews — when it comes to accessibility, thinking broadly and inclusively isn’t just a good idea, it’s our mission and responsibility.

It's honestly pretty cool to see this. I'm glad that the US government (or at least this one particular agency) takes accessibility so seriously.

Re:UI design for software developers. Part 1, Colors by austincheney on Wednesday November 18, 2020 @08:58AM (#25136751)
The greatest challenge when considering colors and accessibility is dealing with more than 2 colors. I wrote a tool to solve for all comparisons in a color scheme: https://github.com/prettydiff/colorContrast

In every real world scenario there will be a multitude of colors present that impact accessibility. It is almost never so simple as a single text color on a single background color.

Re:UI design for software developers. Part 1, Colors by Jerard_Victor on Wednesday November 18, 2020 @11:46AM (#25138965)
looks great, it will be useful to be able to import an actual image (let's say a mock) instead of hex numbers