Skip to content

Add preferred theme scheme option#363

Merged
rochacbruno merged 1 commit intorochacbruno:mainfrom
Svenito:200-preferred-theme
Oct 6, 2025
Merged

Add preferred theme scheme option#363
rochacbruno merged 1 commit intorochacbruno:mainfrom
Svenito:200-preferred-theme

Conversation

@Svenito
Copy link
Copy Markdown
Contributor

@Svenito Svenito commented Oct 6, 2025

Add extra/colormode to the marmite.yaml settings that can be "auto", "dark" or "light" to set a preferred theme style when the page is loaded.

If a user toggles the scheme on the page, their setting is saved to their local storage and on next page load the config setting is ignored. The config setting is only ignored if the local storage value is not "auto"

A new setting colormodetogggle which accepts a boolean is added that allows the user to enable/disable the colormode toggle in the header of the page, fixing the page to the color set (either by system or by config)

Fixes #200

Add extra/colormode to the marmite.yaml settings that can be "auto",
"dark" or "light" to set a preferred theme style when the page is loaded.

If a user toggles the scheme on the page, their setting is saved to
their local storage and on next page load the config setting is ignored.
The config setting is only ignored if the local storage value is not
"auto"

A new setting `colormodetogggle` which accepts a boolean is added that
allows the user to enable/disable the colormode toggle in the header of
the page, fixing the page to the color set (either by system or by
config)
@rochacbruno rochacbruno merged commit 1014aab into rochacbruno:main Oct 6, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow always light theme

2 participants