diff --git a/docs/app.vue b/docs/app.vue
index 2a2eb96d..114d07f4 100644
--- a/docs/app.vue
+++ b/docs/app.vue
@@ -55,7 +55,7 @@
import { UseDark } from '@vueuse/components'
const sections = [
- { label: 'Getting Started', links: [{ label: 'Installation', to: '/' }, { label: 'Examples', to: '/examples' }, { label: 'Migration', to: '/migration' }] },
+ { label: 'Getting Started', links: [{ label: 'Installation', to: '/' }, { label: 'Examples', to: '/examples' }, { label: 'Migration', to: '/migration' }, { label: 'Dark mode', to: '/dark' }] },
{ label: 'Elements', links: [{ label: 'Avatar', to: '/components/Avatar' }, { label: 'AvatarGroup', to: '/components/AvatarGroup' }, { label: 'Badge', to: '/components/Badge' }, { label: 'Button', to: '/components/Button' }, { label: 'Dropdown', to: '/components/Dropdown' }, { label: 'Icon', to: '/components/Icon' }, { label: 'Link', to: '/components/Link' }, { label: 'Toggle', to: '/components/Toggle' }] },
{ label: 'Feedback', links: [{ label: 'Alert', to: '/components/Alert' }] },
{ label: 'Forms', links: [{ label: 'Checkbox', to: '/components/Checkbox' }, { label: 'Input', to: '/components/Input' }, { label: 'InputGroup', to: '/components/InputGroup' }, { label: 'Radio', to: '/components/Radio' }, { label: 'RadioGroup', to: '/components/RadioGroup' }, { label: 'Select', to: '/components/Select' }, { label: 'SelectCustom', to: '/components/SelectCustom' }, { label: 'Textarea', to: '/components/Textarea' }] },
@@ -64,3 +64,9 @@ const sections = [
{ label: 'Overlays', links: [{ label: 'Modal', to: '/components/Modal' }, { label: 'Notification', to: '/components/Notification' }, { label: 'Popover', to: '/components/Popover' }, { label: 'Slideover', to: '/components/Slideover' }, { label: 'Tooltip', to: '/components/Tooltip' }] }
]
+
+
diff --git a/docs/pages/dark.vue b/docs/pages/dark.vue
new file mode 100644
index 00000000..6feaadaa
--- /dev/null
+++ b/docs/pages/dark.vue
@@ -0,0 +1,74 @@
+
+
+ Dark mode implementation with VueUse.
+ VueUse useDark composable is instancied through a plugin injected by the module. This composable makes use of the `dark` class on the html tag so you can easily take advantage of the UnoCSS `dark` variant. You can implement a toggle button easily by doing: A number of shortcuts are available to make your life with colors easier. For each color utilities: `bg`, `text`, `border`, `ring` and `divide`, shortcuts for `white`, `black` and `gray` colors are generated (based on your prefix `u` by default) that handles the dark mode automatically: For example `u-bg-gray-100` is a shortcut for `bg-gray-100 dark:bg-gray-800`. Take a look at the shortcuts definitions.
+ Dark mode
+
+
+ Usage
+
+
+
+
+
+
+ {{ code4 }}
+
+
+
+
+ {{ code1 }}
+
+
+
+
+
+ {{ code2 }}
+
+
+ Shortcuts
+
+
+
+
+
+
+ {{ code3 }}
+
+
- Components library as a Nuxt3 module using UnoCSS. + Components library as a Nuxt3 module using UnoCSS.