GithubHelp home page GithubHelp logo

ksarpotdar / 1-theme-switcher-ionic-vue Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 231 KB

Theme Switcher for Ionic Vue That has 3 different ways to change the theme or color scheme of your app!

License: MIT License

TypeScript 2.93% CSS 12.90% Vue 53.58% SCSS 30.59%

1-theme-switcher-ionic-vue's Introduction

Ionic Vue Theme Switcher

Making a theme switcher for an Ionic Vue app can be a pain. Making it fully responsive without reloading, or flickering isn't as obvious as you would like due to how Ionic renders its CSS (or sass) files app-wide. Making the CSS file in main.ts dynamic doesn't work as it doesn't apply changes reactively.

The Solution

To make it work we create a VueEx-like solution that only uses 7 lines of code and a storage solution of your choice! We used local storage here to show you the basics but I use Localbase just fine.

What you need to do

this repo contains the src folder from a side menu Ionic Vue Project I have also included a Readme 2 - What was Changed & Added file explaining the changes to default files and what I've added to make it work. You can drop the files in a new template and start using it, play around to figure out how it works. or you can tear it apart and copy-paste what you need to add to your own project. Watch the video above for a full tutorial on what to use and how it works!

--This repo can be found at: https://github.com/UDKodr/1-Theme-Switcher-Ionic-Vue/

Check out these other related repos

Layout Switcher - https://github.com/UDKodr/2-Layout-Switcher-Ionic-Vue Layout-Theme-Switcher-Combo-Ionic-Vue - https://github.com/UDKodr/2-Bonus-Layout-Theme-Switcher-Combo-Ionic-Vue

UDKodr Links

Website - https://www.UDKodr.com
GitHub - https://github.com/UDKodr
Youtube - https://www.youtube.com/channel/UCWHcWrwsmG-7H1_fjQAwU-w
Twitter - https://twitter.com/UDKodr
Patreon - https://www.patreon.com/UDKodr
Play Store - https://play.google.com/store/apps/dev?id=4828316913700075617
UDKodr Logo is a Trademark of UDKodr LLC and Copywrite 2022 and may not be used

1-theme-switcher-ionic-vue's People

Contributors

udkodr avatar

Watchers

 avatar

Forkers

whatsitch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.