Skip to content

Very basic and simple dark theme switcher using some plain Javascript, Vue 3 and Tailwindcss.

Notifications You must be signed in to change notification settings

howbizarre/vue-tailwindcss-dark-theme-switcher

Repository files navigation

Dark Theme Switcher with Vue 3 and Tailwindcss

Very basic and simple dark theme switcher using some plain Javascript, Vue 3 and Tailwindcss.

In 4 simple steps

  1. Install Vue 3

Just follow the instruction from Vue's official documentation - Creating a Vue Application.

  1. Add Tailwindcss

Use official documentation on the Tailwindcss website but start from point 2 (Install Tailwind CSS) - Install Tailwind CSS with Vite Using Vue.

  1. Add theme switcher

I will add it to the index.html file to visualize its usage. I leave it to you to find the most convenient way to use it in your project.

See the index.html from repository

  1. Add test content

I have added the contents of the App.vue to test the functionality.

See the src/App.vue from repository

Demo

You can see how it works at my GitHub page Or on the demo page

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

About

Very basic and simple dark theme switcher using some plain Javascript, Vue 3 and Tailwindcss.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published