Live data from Hacker News

Dear web developers: set the font color, too

luu.io

81–90 of 151 posts

Re: Dear web developers: set the font color, too

#82
post #62

Earlier quoted context omitted.

Can we get a source on this? Not disputing but I had never heard that before and it's interesting.

https://news.ycombinator.com/item?id=468471

Wow, that's a ridiculously user-hostile approach to the problem.

Re: Dear web developers: set the font color, too

#83
post #62

Earlier quoted context omitted.

https://news.ycombinator.com/item?id=468471

Wow, that's a ridiculously user-hostile approach to the problem.

HN was designed for a small audience, and it intentionally did things to discourage growth. The goal was to preserve the community for longer.

Re: Dear web developers: set the font color, too

#84
post #83

Earlier quoted context omitted.

Wow, that's a ridiculously user-hostile approach to the problem.

HN was designed for a small audience, and it intentionally did things to discourage growth. The goal was to preserve the community for longer.

I understand the reason. That doesn't make it any less hostile to users with poor eye-sight.

Re: Dear web developers: set the font color, too

#85

Earlier quoted context omitted.

This comment intrigued me, so I did some digging. Looks like "prefers-color-scheme" is currently being considered by both Chrome[1] and Firefox[2]. A can-I-use page was just created for it[3]. I'm excited by this one! Think I'll add dark mode support to my simple blog right now. [1] https://bugs.chromium.org/p/chromium/issues/detail?id=889087 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1494034 [3] https://canius…

Wow, what an awful thing to standardise! Are there equivalents for high/low-contrast? Red themes, blue themes, multicolour themes, etc.? Why layer something like this on top of an override system, when devs can choose to just not override those things? As an example, the only CSS colours I use on chriswarbo.net are either semi-transparent, or mid-grey (which work on light and dark themes, although I might revisit tha…

I would say it's because light mode and dark mode are being inherited from system settings. Windows, Android, and iOS all have a concept of dark mode. The browser can pass these settings along (or allow an override).

Re: Dear web developers: set the font color, too

#86

Due to how widespread assumptions about "system" form field colors are throught the web, the proper thing for browsers to do is probably to _not_ apply a dark theme to form fields, at least by default. Maybe instead allow a CSS opt-in to support dark themes. This seems to be what Apple is doing with Safari, and I feel like it's what provides the best user experience out of the box. (Even for pages that don't make thi…

I agree that that is the simplest solution, and I've even configured Firefox as such[1], but I kind of wish I could have ONE place to control styling of everything.

That is, I kind of wish web developers couldn't control colors and such, so people could have consistent styling in their whole system.

That's a pipe dream though. Websites tend to be hosted by people that want a brand to protect, and as adoption of computers increase people on average don't want to invest time in learning how to use and configure their systems.

Maybe I should consider seriously switching to elinks or w3m for my style-consistent browsing.

[1] https://news.ycombinator.com/item?id=19056752

Re: Dear web developers: set the font color, too

#87
post #83

Earlier quoted context omitted.

Wow, that's a ridiculously user-hostile approach to the problem.

HN was designed for a small audience, and it intentionally did things to discourage growth. The goal was to preserve the community for longer.

If Hacker News wanted to discourage growth, they should have made the forum private and invite only.

There was never any real chance of this forum going mainstream, not because it was too ugly and awkward but because it didn't have any mainstream appeal. Negative reinforcements like making the text purposely difficult to read mostly just punish existing users.

Re: Dear web developers: set the font color, too

#88
post #6

Never though about this before, but, dark themes have only recently become widespread, so I'm not necessarily faulting web devs on this.

I've seen people that had their default background colours to dark green since the Windows 95 era. This is not a new trend.

It's just not as common anymore as it used to be back when you as a user could specify easily how you want your system to look.

Re: Dear web developers: set the font color, too

#90
post #35

I don't understand this article. The author is using something that manipulates the style of inputs to make them dark with light fonts... but only if the input isn't explicitly styled with either background-color or color . If they're going to be doing such hackery, just style both at the same time. Use JavaScript or something to ensure both are styled. This really isn't the developer's concern.

The hackery is literally opening the users control center and clicking the icon for desktop theme and clicking on a different theme and clicking apply. This sets the users desktop colors. Firefox will pick this up and use these colors for elements on the page unless these elements are explicitly styled by the developer. So say the users theme specifies a grey or black background and white text. The developer wants a…

The developer was doing you a favor, by not overriding all your styles, preventing you from potentially downloading a bunch of unnecessary bytes, slowing down your browser with potentially unnecessary CSS rules and leaving it up to you to use your best judgement not to fubar the site. Like I've mentioned elsewhere, this is the old reset css debate.

It's a calculated risk to address 99% of users who don't have their browser change their default agent styles. Everyone else is assumed to know what they're doing.

Post reply on HN