Get help from the marimo community

Updated 4 weeks ago

Dark mode/theme on github pages

At a glance

The community member is unable to deploy apps and Altair charts to GitHub Pages in dark mode/theme using GitHub Actions. They are using a modified version of the GitHub template, and the notebooks are developed using the --sandbox and have theme="dark" in their script header and a cell with _ = alt.theme.enable('dark'). However, when they build, edit, or run the notebooks locally, they are in dark mode with dark Altairs, but on GitHub, they are in light mode with light Altairs. A community member suggests putting [tool.marimo.display] above the theme config, which mirrors the pyproject.toml config and resolves the issue.

Useful resources
I have not been able to deploy apps (nor altair charts) to github-pages in dark mode/theme using github actions. I use slightly modified version of the github template. The notebooks are developed using the --sandbox and have theme="dark" in their script header

/// script

...

theme = "dark"

///

and have a cell with _ = alt.theme.enable('dark')

When I 'build', edit or run the notebooks locally, they are dark with dark altairs, but they are light with light altairs on github. Any way to change/control it?
Marked as solution
can you put [tool.marimo.display] above the theme config
View full solution
M
k
5 comments
can you share the sample repo/code with us?
can you put [tool.marimo.display] above the theme config
it is suppose to mirror the pyproject.toml config
Aaah, riight. That worked, thx a lot!
Add a reply
Sign up and join the conversation on Discord