1.0.2 • Published 9 months ago

@fredrick.mgbeoma/simple-dark-mode v1.0.2

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

simple-dark-mode

This is a minimalist Vue.js plugin for achieving dark mode on a web app. See usage instructions below ⬇️

Project Setup

Install package

npm install @fredrick.mgbeoma/simple-dark-mode

In your project entry point, e.g src/main.ts

import { createApp } from "vue";
import SimpleDarkMode from "@fredrick.mgbeoma/simple-dark-mode";
import App from "./App.vue";

import "./assets/main.css";
import "@fredrick.mgbeoma/simple-dark-mode/dist/style.css";

const app = createApp(App);

app.use(SimpleDarkMode);
app.mount("#app");

Usage in a component

// e.g HeaderComponent.vue
<template>
// ...
    <SimpleDarkMode />
// ...
</template>

Developing locally

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint
1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago