0.0.3 • Published 2 years ago
@crtxio/darkmode v0.0.3
@crtxio/darkmode
@crtxio/darkmode is a Nuxt3 layer which provides a Nuxt 3 component to toggle between dark and light mode.
Setup
Make sure to install the dependencies:
npm install --save @crtxio/darkmodeor
yarn add @crtxio/darkmodeAdd the dependency to your extends in nuxt.config:
defineNuxtConfig({
extends: [
'@crtxio/darkmode'
]
})How to use it
Components
<template>#
<DarkModeToggle />
<div class="dark:bg-black bg-white dark:text-white text-black">
Showcasing dark mode.
</div>
</template>