From 501137a67280e80d36dc485f850027216e478386 Mon Sep 17 00:00:00 2001 From: Selemondev <106826371+selemondev@users.noreply.github.com> Date: Fri, 30 Aug 2024 21:02:24 +0300 Subject: [PATCH] feat: auto install `@nuxtjs/color-mode` module (#737) * feat(app): #537 auto install the module This pull request is intended to install the module during the installation of the module Closes: #537 * docs: update Nuxt dark mode --------- Co-authored-by: selemondev-triply --- apps/www/src/content/docs/dark-mode/nuxt.md | 16 +++++++++------- packages/module/src/module.ts | 12 ++++++++++-- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/apps/www/src/content/docs/dark-mode/nuxt.md b/apps/www/src/content/docs/dark-mode/nuxt.md index 4bf1150c..60859d6b 100644 --- a/apps/www/src/content/docs/dark-mode/nuxt.md +++ b/apps/www/src/content/docs/dark-mode/nuxt.md @@ -7,7 +7,7 @@ description: Adding dark mode to your nuxt app. -### Install Dependencies + ### Add a mode toggle Place a mode toggle on your site to toggle between light and dark mode. +The `@nuxtjs/color-mode` module is automatically installed and configured during the installation of the `shadcn-nuxt` module, so you literally have nothing to do. + We're using [`useColorMode`](https://color-mode.nuxtjs.org/#usage) from [`Nuxt Color Mode`](https://color-mode.nuxtjs.org/). +Optional, to include icons for theme button. +```bash +npm install -D @iconify/vue @iconify-json/radix-icons +``` + ```vue