mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
✨ feat: follow user OS theme with JS disabled (#357)
This commit is contained in:
parent
5db006ac47
commit
c7b79552c4
8 changed files with 70 additions and 38 deletions
|
@ -19,6 +19,8 @@ tabi can be customised in two ways: by setting the default theme (dark or light)
|
|||
|
||||
Use `default_theme = "dark"` to set the dark theme as the default, or `default_theme = "light"` to set the light theme as the default.
|
||||
|
||||
Setting `default_theme = ""` (or commenting out the variable) will follow the user's system preference (light or dark mode).
|
||||
|
||||
To permanently set your site to either the dark or light theme, you need to disable the theme switcher in `config.toml` and set your preferred theme as the `default_theme`.
|
||||
|
||||
For example, to have a permanent dark theme:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue