700 points · by m1 · 5y ago · 251 comments
Edit: Found the link. https://twitter.com/natfriedman/status/1330924323952091137
I use many dark mode themes and have even created them. The important thing to constantly keep in mind whilst authoring a dark them is: resist the urge to go "too dark" and contrasty, and to keep checking against a known "good" reference.
If any GitHub execs are reading this, and would like to see an example of what we're talking about here, then the JetBrains "Darkula" theme in IntelliJ is a well done dark theme.
It feels move like "invert colors" than a dark theme. Toning the white down would be a huge improvement.
I personally think GitHub have got this just right, I love it! (I'm red/green colour blind tho, and do tend towards preferring a bit more contrast).
https://github.com/adrianmteo/Luna
I usually prefer the dark theme but some websites detect that Windows is in dark mode (using `prefers-color-scheme: dark` in CSS) and fail to provide a way to toggle the dark theme off. This makes it difficult to read the text during daytime.
Scheduling dark theme on & off and combining it with Dark Reader's automation, it's nice being able to have all websites switch to dark mode at night.
They had years to build a dark theme, and they managed to under deliver..
They should have just forked the stylus theme..
But I use gh on my desktop, a not my phone. A LCD friendly mode is a must.
[0]: https://github.blog/2020-12-08-new-from-universe-2020-dark-m...
Two clicks from the HN homepage and it's done. Informed and improved in one go!
Other examples include their insistence on pixel-thin icons which are barely legible when reduced [1], flat buttons that are just colored boxes devoid of even basic button affordances, hard edges everywhere, and nearly 100% saturated colors that are an assault on the eyes.
They've never been very good at UI, but where they are these days is just bad. Their new Fluent design language [2] on mobile looks like an improvement from Metro, they're actually seeing what others are doing and copying it decently enough, but its not really out there much in their products.
[1] example here https://medium.com/microsoft-design/evolving-the-microsoft-f...
PS. In fact, it's more likely it was the Github's old design team, not MS.
PS. I've been using this one for years and it looks much "softer" on the eyes: https://poychang.github.io/github-dark-theme/
Hope it's still work in progress
It is about what feels better on the eyes
Dark theme, and at night you want to reduce eyestrain by reducing the blue light
This dark theme is full of blueish tone, wich goes against the need of dark theme
We can discuss the blue light aspect in its own merit.
On the other hand, the dark theme could be kinda cool.
As a disabled POC, I personally don’t mind in either case, but also if at least one person feels more welcomed because of the change then it’s worth it in my book.
It feels like picking a light skin tone will be essentially sending a message that seems borderline crass and verging on culturally tone-deaf in the current circumstances. So I pick a Simpsons-yellow, because that's what I'm used to, what I prefer, and what draws the least attention to my skin colour.
How do you give other people options!
Overall, I feel that it's better to use only the neutral variant in reactions.
I also reverted back to light themes for my text editors - I felt it was easier to focus on dark-on-light text than the other way around.
As long as designers understand and support both light and dark, it's good to have the option.
For me, any time I pop open HN or Google Drive, my eyes have to take a second to adjust to the glaring brightness compared to everything else on the screen.
There's no absolute reason why the evolution happened that way that I can say. It was all more or less arbitrary design decisions.
Image: http://www.computinghistory.org.uk/userdata/images/large/21/...
I don't know how common this was, or if it's something that was unique to these sparcstations.
Computing with “light mode” preceded video terminals!
https://getpolarized.io/2019/11/19/Dark-Mode-Should-Be-The-D...
The idea being, if you were FORCED to pick one, would you rather have light or dark mode.
90% preferred dark mode with nearly 1000 votes.
That blew me away honestly.
Before that I thought that dark mode was a 'nice to have' but clearly I was wrong.
The other issue isn't just dark mode but 'true black' mode for mobile devices and OLED. True black just looks better on mobile devices.
Most dark mode skins can usually be converted to true black but you have to make sure the fonts don't become too strong.
My mother on the other hand is younger and still has an adventurous willingness to try new things, and last I saw was using the dark mode in Windows 10.
Polling someone who likes light themes because they know no better is an answer to a completely different question.
Also, while trendy, "bias" isn't a word you should throw around unless you also have established the question being asked and what the bias is. Informed answers to the poll aren't biased, especially compared to someone who doesn't know what a dark mode is.
I wouldn't be able to stare at big white areas for the whole day. White is painful for my eyes.
While I hate that move, I am genuinely interested into the answer ;-)
I got too used to them, and have tried putting dark themes on them but it just looks "wrong" now.
Humans are weird.
(Sorry if this sounds confrontational; just trying to understand the appeal of dark mode from someone who never got into it. IME dark themes are often too contrasty on bright monitors and not contrasty enough on dark ones, and I find a dim light theme works best for me in dim lighting.)
So now pretty much everything is light theme, and it's like I'm living in 2004 again.
Just gotta keep the lights on in the room when working, which is what I should have always done anyway.
I still love the dark themes on my phone and tablet. I use those more often in poorly-lit areas, so that makes more sense, I guess.
Also, I don't want to use Github when authorized to do things on company repos when browsing something completely unrelated in my own time and own devices. Thus this option is not available to me without creating a dummy account. I also have to change this manually whenever environment changes. With the accompanying blinding flash of light on unfortunate late night sessions.
I'll admit there might be other considerations than funnelling users to registering and using their accounts. It's just not a good user experience and misunderstanding of the target audience.
Edit: spoke too soon. It's not available in their enterprise edition yet. Re enables Dark Reader for corporate url.
Nothing please, that's exactly how I want my sites to look.
That said, on an operating system level (both mobile and desktop) you will have apps that use the same color schemes because they're dictated by the OS, e.g. https://developer.apple.com/design/human-interface-guideline...
Custom css properties are used to personalize colors, which would also work with shadowDom.
background-color: var(--color-menu-bg-active);
These custom properties are declared in light.scss and applied to the body, using the selector [data-color-mode="light"].
This method is fairly standard and widely used in modern websites. The only downside is that IE11 doesn't support custom properties and, in my expierience, there is no polyfill or postcss plugin that is 100% reliable.
It offers dark mode and many useful quality-of-life UI tweaks.
Also, the text in the extension is nigh unreadable. I have to highlight it all to get enough contrast to make it visible. This is on Firefox, anyone else have this issue?
https://news.ycombinator.com/item?id=23197966
Many really good themes you can install with Stylish or whatever extension works with your browser.
I often use all of Safari, FireFox, Chrome, and maybe one or two mobile browsers in a day, and the dissonance from having different styles on the same site in different browsers is worse than having to suffer through not having dark mode for me.
See https://www.mediawiki.org/wiki/Help:Extension:GlobalCssJs
1. Most people just want a website to work. (I know I do) 2. Because how are you gonna do support on a website when the website looks different for everyone involved? Are you only going to offer support for the basic text version? In that case, aren't you still kind off deciding how it looks, only now it looks ugly? 3. Branding. You want people to instantly recognize your product/brand. 4. To push features you want to be used, for better (handy new ones) or worse (advertising, generating bullshit metrics).
Probably a lot more than, but these just popped in my mind.
You can do both. Offer CSS, but keep the site usable without it. The same goes for every feature: JS, images (fallback to alt-text), etc. Non-HTML resources should usually be optional enhancements.
Over time, browsers have ceded more and more control over layout and colors to web developers, and got busy burying/deprecating the browser-side defaults... to the point where user preference is an afterthought now, and almost universally ignored by sites. Now you have to use big hammers like disabling CSS and JavaScript in order to have any say as a user. Nobody likes when your native desktop application's UI ignores your system default colors and forces their own color scheme, yet this is acceptable on the web.
Yes, I want to set a style, once, and have it used by every site on the internet that I access.
The idea of the user agent dictating presentation rather than the content author is kind of dead on today's modern web; while it's certainly possible to set a global stylesheet, doing so creates an incredibly frustrating game of trial-and-error as some websites break while others work fine.
The idea does live on outside the mainstream in ideas like Gemini, Gopher, and a small subset of the Web that focuses on textual content with very conservative progressive enhancement.
I wrote about this previously: https://seirdy.one/2020/11/23/website-best-practices.html
Most websites should be able to work just fine with nothing but HTML. That doesn not mean that they should actually be just HTML (my website certainly isn't); it means that enhancements like CSS and JS should be progressive. Exceptions exist, obviously.
I interpreted this as OP being tired of having to rewrite the awful CSS of most websites.
This is obviously for a specific type of user who is very very much the minority. Any idea that this would work for a broad audience should be thrown away, because your friend Steve in sales doesn’t give a shit about writing their own CSS.
I think what you have left after that is serving two different versions of your content. One has its own styling and the other does not. Don’t pretend that the markup isn’t tied to the CSS, and that the unstyled version just doesn’t apply CSS, because there will always be coupling between the two for any moderately complex site. Just have two deliverables and be done with it.
Of course, duplicating the content is suboptimal. You could have a source of truth for the actual content of the site that is used to build deliverables with, employing a clever build process.
I mean, I’ll just stop there because this sounds like way too much work, being put on the content creator to satisfy an insanely small number of their users. If you want to style the content on your own, just do it. Delete all style sheets and inline styles and apply your own. It’ll be hard work, and the markup will be all wrong for that type of work, but it can be done if it’s really really necessary.
The "modern web" and associated software is designed to take control away from users, so that authors can slowly give back an illusion of it.
I've always been writing my own CSS for sites whose style but not content irritated me. Mostly when they change to some idiotic fad, so I can put it back.
Dark mode sounds easy (just make the background black!), but I'm pretty sure there are more science to that, because many dark mode apps I've tried make me uncomfortable and I reverted to normal mode because it's _easier_ for my eyes.
The pattern you’ll see is that accent colors tend to need to be brighter on black backgrounds.
If you’re targeting iOS and your design team doesn’t exist or hasn’t specified a theme, consider using the built-in adaptive colors basically everywhere.
https://developer.apple.com/design/human-interface-guideline...
Material guidelines also cover dark mode, but it seems the hex codes are harder to copy/paste as they seem to all be embedded in images: https://www.material.io/design/color/dark-theme.html
It's odd that they have a skin colour settings for cartoon hands. Why not just stick to yellow and keep race out of it? Having that settings is essentially saying that race matters which I find offensive. I don't care what colour your skin is.
You can check your gamma settings, but that's a bit of an ask if you have everything setup just right. Green line numbers are pretty indicative either way
- light mode is often the default, so you don't have to work around it
- more readable: in the daytime, in text editors, for people with astigmatism
- using screen inverters like https://github.com/mlaily/NegativeScreen/ switches your whole screen to "night mode" - including the pesky details like taskbars, menu, etc, and offering you more fine control (ex: only keep the red channel)
Yes, even my terminal is in light mode (Solarized light) - at night, I just press on a key which immediately invert my screen colors and only preserve the red channels. No tweaking with a zillion apps to get them "dark".
In the day time, I press on the key again and keep going with all the applications now "light".
@-moz-document domain("github.com") {
.dashboard .js-all-activity-header + div {
background-color: inherit !important;
border: 1px solid var(--color-border-secondary) !important;
}
.dashboard-rollup-items .body {
border-top: 1px solid var(--color-border-secondary) !important;
}
}
Edit: issue for Refined GH: https://github.com/sindresorhus/refined-github/issues/3798- IntelliJ (similar notebook style setup as Datagrip for SQL queries)
- Sequel Ace - a fork of Sequel Pro
It's appalling how such major apps and websites literally took YEARS to implement Dark Mode after OSes added support for it, while plenty of minor devs had their shit ready to ship during the betas of iOS and macOS.
If their elite teams can't manage something as simple as an additional color theme, what confidence do they hope to inspire in their product? (then again most popular apps are actually crappy in other areas too; WhatsApp, Instagram, Snapchat etc.)
Making it a single button that enables a different theme that a professional designer somewhere has signed off on is a much better user experience for almost everybody when compared to the "write your own CSS" option. Even if you automate it with a browser extension, you're still giving that extension read+write access to the site, hopefully it's trustworthy!
I have no interest in designing my own as I have a terrible eye for design and am equally terrible at visualizing changes, making the process take forever. If I can click a button and make dark theme work, that's fantastic.