mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 12:01:33 +02:00
✨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:
parent
47951152d1
commit
152dd83e0c
5 changed files with 104 additions and 140 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue