This pull request introduces several changes to enhance the theme management and customization options for the site. The most significant changes include adding support for a system theme, introducing a theme toggle option, and updating the documentation accordingly.
Enhancements to theme management:
build.js: Added default values for site.theme and site.themeToggle if they are not defined.
This pull request introduces several changes to enhance the theme management and customization options for the site. The most significant changes include adding support for a system theme, introducing a theme toggle option, and updating the documentation accordingly.
Enhancements to theme management:
build.js
: Added default values forsite.theme
andsite.themeToggle
if they are not defined.src/routes/(kener)/+layout.svelte
: Integrated theme management by addingsetMode
,mode
, andModeWatcher
from "mode-watcher", and updated the theme toggle functionality. [1] [2] [3] [4] [5]Documentation updates:
docs/customize-site.md
: Updated documentation to include the newthemeToggle
option and the additionalsystem
value for thetheme
setting. [1] [2]Minor text correction:
config/site.example.yaml
: Corrected a typo in the hero title.