Skip to content

Commit

Permalink
feat(module): enable @nuxtjs/color-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Oct 2, 2024
1 parent 0f86b87 commit 9dcf903
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ export default defineNuxtModule<ModuleOptions>({
nuxt.options.icon = defu(nuxt.options.icon, { cssLayer: 'components' })
}

// if (!hasNuxtModule('@nuxtjs/color-mode')) {
// await installModule('@nuxtjs/color-mode', { classSuffix: '' })
// } else {
// nuxt.options.colorMode = defu(nuxt.options.colorMode, { classSuffix: '' })
// }
if (!hasNuxtModule('@nuxtjs/color-mode')) {
await installModule('@nuxtjs/color-mode', { classSuffix: '' })
} else {
nuxt.options.colorMode = defu(nuxt.options.colorMode, { classSuffix: '' })
}

addPlugin({
src: resolve('./runtime/plugins/colors')
Expand Down

0 comments on commit 9dcf903

Please sign in to comment.