Git Product home page Git Product logo

themingapp's Introduction

themingApp

A simple app to demonstrate user-selected themes in Ionic 2

This is a simple, straightforward Ionic 2 app that I built to demonstrate user-selected themes. The goal of this was to demonstrate: – A settings page – A way for the user to choose a theme – Proof that the changing theme works as you navigate across the app

It was meant to accompany a blog post I wrote.

Installation

Pull this repo, and then install NPM packages:

$ npm install

Note that there are system configurations and installations you'll have to have completed in order to run Ionic in a simulator on your machine. You can find instructions in the Ionic documentation.

Make sure you're configured for whatever platforms on which you might want to run this app:

$ ionic add android
$ ionic add ios

Once that's done, you can start the app on either platform:

$ ionic run ios
$ ionic emulate android

Functionality

This app starts with a default blue set of styles, and allows the user to select between said blue theme and an alternate red theme. To toggle themes:

  • open the app
  • click on the hamburger menu and navigate to Settings
  • choose from the select whichever theme you'd like to see activated

Once you shoose an option, the app should change colors to reflect the theme you've chosen. Feel free to add themes and options. If you're interested in the code, please feel free to read through my blog post.

themingapp's People

Contributors

colinjlacy avatar

Watchers

James Cloos avatar Sanjoy Kanrar avatar

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.