mirror of
https://github.com/welpo/tabi.git
synced 2025-10-10 23:38:53 +02:00
✨ feat: allow setting the default theme
Used as fallback when JS is disabled and `theme_switcher` is enabled. If `default_theme` is unset, it defaults to "light". Used as single theme when `theme_switcher` is disabled.
This commit is contained in:
parent
ab879e3727
commit
c78c7f5bd1
3 changed files with 22 additions and 5 deletions
11
theme.toml
11
theme.toml
|
@ -26,10 +26,17 @@ language_name.ca = "Català"
|
|||
language_name.en = "English"
|
||||
language_name.es = "Español"
|
||||
|
||||
# Enable JavaScript theme toggler for dark/light mode (and automatic switching).
|
||||
# The default setting is the light theme.
|
||||
# Enable JavaScript theme toggler to allow users to switch between dark/light mode.
|
||||
# Also enables automatic switching based on user's OS-level theme settings.
|
||||
# If disabled, your site will only use the theme specified in the `default_theme` variable.
|
||||
theme_switcher = true
|
||||
|
||||
# This setting determines the default theme ("light" or "dark").
|
||||
# If you wish to use only a dark or light theme, disable the `theme_switcher` above and set this variable.
|
||||
# If `theme_switcher` is enabled, this will be the theme that is visible to users who have JavaScript disabled.
|
||||
# Defaults to "light", if unset.
|
||||
default_theme = "light"
|
||||
|
||||
# Add a "copy" button to codeblocks (loads ~700 bytes of JavaScript).
|
||||
copy_button = true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue