-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Dark Mode plugin #9483
Comments
Good news, this will be trivial very shortly. I've assigned myself to work on #6451. The thing is — using editor styles, you can already provide different colored backgrounds to the Gutenberg editing canvas. This works today. However once the background color gets across the halfway threshold and needs inverted UI colors, this doesn't quite work yet. That is — the UI is ready for it, but the In other words, you'd be able to write a plugin that outputs something like |
The editor styles option doesn't address Dark Mode efficiently though. That assumes that everyone will have a certain copy of a 'Dark Gutenberg' but that won't always be the case. There needs to be a way to darken the UI without relying on editor styles to do instead. Whilst the current or planned implementation does benefit the UI, there needs to be an official 'Dark Mode for Gutenberg' baked into the Gutenberg code. Things like the side menu, the popups and the toolbars etc shouldn't be left to editor styles. |
Ah right, I understand now, you weren't just referring to the editing canvas. The rest of the UI takes many of its cues from wp-admin styles, notably with a little help from this file: https://github.com/WordPress/gutenberg/blob/master/bin/packages/post-css-config.js Should be possible to create a pull request that adds a dark theme there. Or just override colors like other admin themes do. |
I'm unsure what the next steps are for this one. What are changes that need to be made to Gutenberg in order to enable a separate dark mode feature to colorize the UI? Since no-one is assigned, I'm unassigning the "in progress" label for now. |
Personally I'm not up to speed enough with Gutenberg to answer that, but I'd imagine that the current work that has been done only focuses on the editable content region whereas the sidebar and top panel still need addressing which is where a Dark Mode could take effect. I doubt there's enough time to ship a Gutenberg Dark Mode in 5.0, so perhaps this is something for 5.1 maybe? All I know though is that the editor styles doesn't really reach far enough to cover Dark Mode properly. |
Definitely, we're past the UI freeze.
This is where I'm unclear on what, specifically, needs to be done. My current understanding is that nothing needs to be done to gutenberg, that in fact the onus of work is on those developing the Dark Mode plugin. This is why I'm lacking some action items for the Gutenberg project.
Understood. This was an initial misunderstanding on my part — that this was about editor styles. I understand it's about the surrounding UI. |
I am wondering how this is going? |
Added |
Hi @strarsis, |
@jasmussen: I see, but there are no changes in the editor UI, everything should be using light colours now, to contrast from e.g. dark background of editor wrapper (body in frontend)? |
Any Updates on this? |
This plugin no longer exists. Any work on dark mode support would need to be approached separately. |
As outlined in the recent merge proposal, it'd be great if we could work together to implement a Dark Mode into Gutenberg. Currently the UI is very bright and can make the eyes quite sore. It'd be nice if Gutenberg was a little darker when writing at night.
I've written a plugin compatibility guide on how plugin developers can easily support this alternative design and I think it'd be much more beneficial for the Gutenberg styling to be a part of this plugin so the styles can be much more easily maintained when the UI is updated.
Thanks!
The text was updated successfully, but these errors were encountered: