Giter Club home page Giter Club logo

ionic-dark-grey-theme's Introduction

Dark Theme for Ionic (2+) apps

This is a "Work in Progress" Dark Theme implementation for Ionic (2+) apps.

There are several components that still need styling, but its a start. Feel free to contribute with PRs. I'm also not sure if I did this the right way, so feel free to fix

Screenshots

How to run the example

  • git clone https://github.com/pliablepixels/ionic-dark-grey-theme
  • cd ionic-dark-grey-theme/example
  • npm install
  • ionic serve

How to use it in your project

To use it in your project, simply copy over the src/themes/dark files to src/themes/dark in your project and copy over src/themes/variables.scss to your src/themes (or modify your src/themes/variables.scss to use the dark theme as in this project (look at the end)

iOS Quirks

In iOS, you'll see a white background as you rotate the phone. To fix this, you need to use a plugin:

 ionic cordova plugin add cordova-plugin-webviewcolor

And then add this code to your app:

this.platform.ready().then(() => {
  if (this.platform.is('ios')) {
    // change #000 to whatever you need
    window['plugins'].webviewcolor.change('#000');
  }
}

This plugin unfortunately doesn't work with WKWebView. For a WKWebView specific solution, see here.

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.