You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello 👋 this is a really cool way to package Gutenberg outside of WordPress.
I've been messing around with adding it to my Trilium Notes as a custom note-type:
As you may notice from the above screenshot, Gutenberg is rendering in light-mode.
My computer, and app are set to dark-mode, so if it were using CSS preferences, then that would work, but likely be buggy.
If the page that Gutenberg is rendered on, has a light-mode theme, or does not support dark-mode, or is on an OS / browser where the app ignores preferences and allows the user to set independently; I guess this might be a set of use-cases you may also be interested in?
If there is any guidance anyone can offer, my page is sort-of the same as your index.html, apart from rendering Gutenberg to a textarea (present iteration only, I will eventually dispense with the HTML element backing) on-load instead of on button-click / toggle.
One other edit I made is to expose OnChange (preparation for getting rid of the textarea, and integration into Trilium). I Do not believe this should have any effects on Dark-mode support.
would you mind adding more detail to the question?
It’s unclear to me if you are asking if Gutenberg has dark mode support, inferring that blocks this, or communicating in a way that is too subtle or nuanced for me to understand the meaning.
I am asking if Gutenberg has dark mode support. I'm sure a lot of CSS could be added to implement it here, but I think it's something that would be best to come from Gutenberg itself. There seems to be various attempts at this but I don't think anything has made it out yet:
Sorry, but it's not completed. Not by any stretch of the imagination. It's the opposite. It's won't / can't fix (and that is fine), but the closed as completed is incorrect, misleading, all sorts of problematic.
Activity
Lewiscowles1986 commentedon Aug 15, 2022
I'm noticing a
defaultEditorStylesproperty onEditorSettings... I'll try to see if the browser-extension covers any of this.Lewiscowles1986 commentedon Aug 15, 2022
For now, I've opted to use CSS
filterwith aninvert(.85), this seems to work well enough and is powered from:Preview
johngodley commentedon Oct 13, 2022
I think this is something that needs to come from Gutenberg itself. Does that have dark mode support?
Lewiscowles1986 commentedon Oct 14, 2022
Hey John,
would you mind adding more detail to the question?
It’s unclear to me if you are asking if Gutenberg has dark mode support, inferring that blocks this, or communicating in a way that is too subtle or nuanced for me to understand the meaning.
best
johngodley commentedon Oct 14, 2022
I am asking if Gutenberg has dark mode support. I'm sure a lot of CSS could be added to implement it here, but I think it's something that would be best to come from Gutenberg itself. There seems to be various attempts at this but I don't think anything has made it out yet:
https://github.com/WordPress/gutenberg/search?q=dark+mode&type=issues
Lewiscowles1986 commentedon Oct 15, 2022
Yeah I guess until it gets dark mode, im happy enough with this hack I guess.
Lewiscowles1986 commentedon Oct 22, 2022
Sorry, but it's not completed. Not by any stretch of the imagination. It's the opposite. It's won't / can't fix (and that is fine), but the closed as completed is incorrect, misleading, all sorts of problematic.