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
Thank you for the really nice work done here. This theme looks great ;)
Since the new darkmode feature has become really common among sphinx themes, it would be nice if there would be possible to sync the page theme with the plotly plot template. This is what plotly is doing on their on page, this looks so nice^^
the .js you linked to has ~340 lines of styling and IMO it doesn't make sense for us to duplicate that and try to keep it in sync with changes to plotly). But there might be a way to incorporate that .js file directly (probably with some minimal changes).
As I am not versed in javascript at all, I am not able to adapt this to another theme and I rely on the community to help out here!
Sincerely, Alex -
The text was updated successfully, but these errors were encountered:
That would be nice if we were able to do the same directly in the lib so if you come up with a solution please open a PR, I'll be happy to make a review. Unfortunatelly I think for maintainers that's very low priority compared to other JS devs that needs to be done (refactor colors, search as you type, etc...) So I think you'll need to dive in.
In short what you are looking for is a trigger. In our theme everything can be done listening to the html tag data-mode and data-theme attrributes.
As I am not versed in javascript at all, I am not able to adapt this to another theme and I rely on the community to help out here!
you might actually have better luck asking on one of the plotly forums: https://community.plotly.com/, some variant of "how can I get light/dark theming like on plotly.com when the plots are embedded in my own site?"
Hi there,
Thank you for the really nice work done here. This theme looks great ;)
Since the new darkmode feature has become really common among sphinx themes, it would be nice if there would be possible to sync the page theme with the plotly plot template. This is what plotly is doing on their on page, this looks so nice^^
As I am not versed in javascript at all, I am not able to adapt this to another theme and I rely on the community to help out here!
Sincerely, Alex -
The text was updated successfully, but these errors were encountered: