✨ feat: follow user OS theme with JS disabled (#357)
This commit is contained in:
@@ -19,6 +19,8 @@ tabi pot ser personalitzat de dues maneres: establint el tema per defecte (fosc
|
||||
|
||||
Utilitza `default_theme = "dark"` per establir el tema fosc com a predeterminat, o `default_theme = "light"` per establir el tema clar com a predeterminat.
|
||||
|
||||
Establir `default_theme = ""` (o comentar la variable) seguirà la preferència del sistema de l'usuari (mode clar o fosc).
|
||||
|
||||
Per configurar permanentment el teu lloc en el tema fosc o clar, necessites desactivar el `theme_switcher` a `config.toml` i establir el teu tema preferit (`light` o `dark`) a `default_theme`.
|
||||
|
||||
Per exemple, per tenir un tema fosc permanent:
|
||||
|
@@ -19,6 +19,8 @@ tabi puede ser personalizado de dos maneras: estableciendo el tema predeterminad
|
||||
|
||||
Usa `default_theme = "dark"` para establecer el tema oscuro como predeterminado, o `default_theme = "light"` para establecer el tema claro como predeterminado.
|
||||
|
||||
Establecer `default_theme = ""` (o no especificar la variable) seguirá las preferencias del sistema del usuario (modo claro u oscuro).
|
||||
|
||||
Para configurar permanentemente tu sitio en el tema oscuro o claro, necesitas desactivar el `theme_switcher` en `config.toml` y establecer tu tema preferido (`light` o `dark`) como el `default_theme`.
|
||||
|
||||
Por ejemplo, para tener un tema oscuro permanente:
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user