File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,22 @@ export default defineNuxtConfig({
1111 } ,
1212
1313 modules : [
14- "@nuxtjs/tailwindcss"
14+ "@nuxtjs/tailwindcss" ,
15+ "@nuxtjs/color-mode"
1516 ] ,
1617
18+ colorMode : {
19+ preference : "system" , // default value of $colorMode.preference
20+ fallback : "light" , // fallback value if not system preference found
21+ hid : "nuxt-color-mode-script" ,
22+ globalName : "__NUXT_COLOR_MODE__" ,
23+ componentName : "ColorScheme" ,
24+ classPrefix : "" ,
25+ classSuffix : "" ,
26+ storageKey : "nuxt-color-mode" ,
27+ dataValue : "theme"
28+ } ,
29+
1730 vite : {
1831 server : {
1932 fs : {
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ module.exports = {
3333 }
3434 ]
3535 } ,
36+ darkMode : "class" ,
3637 plugins : [
3738 require ( "daisyui" ) ,
3839 require ( "@tailwindcss/typography" )
You can’t perform that action at this time.
0 commit comments