chore: optimize head component

- Add dynamic theme-color meta tag based on current theme mode
- Preload custom font files for improved performance
- Update ClientRouter configuration for view transitions
- Refactor theme toggle script comments for clarity
This commit is contained in:
radishzzz 2025-02-18 17:57:10 +00:00
parent 5b66fdb564
commit 6bcd51765d
4 changed files with 284 additions and 296 deletions

View file

@ -44,21 +44,21 @@
"vite": "^6.1.0"
},
"devDependencies": {
"@antfu/eslint-config": "^4.2.1",
"@antfu/eslint-config": "^4.3.0",
"@types/markdown-it": "^14.1.2",
"@types/mdast": "^4.0.4",
"@types/node": "^22.13.4",
"@types/sanitize-html": "^2.13.0",
"@unocss/eslint-plugin": "^65.5.0",
"@unocss/preset-attributify": "^65.5.0",
"@unocss/reset": "^65.5.0",
"@unocss/eslint-plugin": "^66.0.0",
"@unocss/preset-attributify": "^66.0.0",
"@unocss/reset": "^66.0.0",
"astro-eslint-parser": "^1.2.1",
"eslint": "^9.20.1",
"eslint-plugin-astro": "^1.3.1",
"lint-staged": "^15.4.3",
"mdast-util-to-string": "^4.0.0",
"reading-time": "^1.5.0",
"unocss": "^65.5.0",
"unocss": "^66.0.0",
"unocss-preset-theme": "^0.14.1"
},
"lint-staged": {