Skip to content

pliablepixels/ionic-dark-grey-theme

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Dark Theme for ionic2 (ionic-conference-app as example)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 50.6%
  • HTML 27.5%
  • CSS 20.9%
  • JavaScript 1.0%