refactor: view animation and theme toggle

- Streamline theme toggle script in ThemeToggle component
- Improve theme initialization in Head layout
- Centralize theme color and mode configuration
- Enhance view transition handling for theme changes
- Optimize event listeners and theme synchronization
This commit is contained in:
radishzzz 2025-02-18 02:28:55 +00:00
parent 47951152d1
commit 152dd83e0c
5 changed files with 104 additions and 140 deletions

View file

@ -14,7 +14,7 @@ export const themeConfig: ThemeConfig = {
// COLOR SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> START
color: {
mode: 'light', // light or dark. Matches system theme by default, falls back to configured theme mode if not available.
mode: 'light', // light, dark
light: {
primary: '#17191A', // accent color for title
secondary: '#505050', // secondary color for text