mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-18 17:06:56 +00:00
feat: implement dark mode support, update writing route logic, and add content entry placeholder
This commit is contained in:
+10
-1
@@ -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',
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user