Doyban / Doyban-Website

https://doyban.com
1 stars 1 forks source link

Create toggle to switch between light/dark theme with creation of dark theme #13

Open danieldanielecki opened 1 year ago

danieldanielecki commented 1 year ago

https://github.com/BayBreezy/nuxt3-vuetify3-starter/blob/main/utils/themes.ts is a very good reference how to do that

danieldanielecki commented 1 year ago

https://github.com/viandwi24/nuxt3-awesome-starter/blob/v2/components/layouts/Page/NavbarDropdown/ThemeSwitcher.vue can be also helpful

danieldanielecki commented 1 year ago

In addition to create the toogle, the dark theme needs to be created.

danieldanielecki commented 1 year ago

by default it should take system settings, with the option to toggle between light/dark/theme, like in the second link