feat: implement dark mode support, update writing route logic, and add content entry placeholder

This commit is contained in:
Jaron
2026-05-12 19:12:41 -05:00
parent ab8eb9ab86
commit 60b5319909
12 changed files with 101 additions and 41 deletions
+10 -1
View File
@@ -45,5 +45,14 @@ export default defineNuxtConfig({
},
},
modules: ['@nuxt/content'],
modules: ['@nuxt/content', '@nuxtjs/color-mode'],
colorMode: {
preference: 'system', // default value of $colorMode.preference
fallback: 'light', // fallback value if not system preference found
globalName: '__NUXT_COLOR_MODE__',
componentName: 'ColorScheme',
classPrefix: '',
classSuffix: '-mode', // Results in .dark-mode or .light-mode
storageKey: 'color-mode',
},
});