New dark-grey theme for Ionic!


#1

Anyone interested in a new dark theme for ionic? This is how the ionic conference app looks like with the switched theme.

I’ve just started work in it and maybe folks can extend it?

Github Repo: https://github.com/pliablepixels/ionic-dark-grey-theme


#2

Like it! Would be very nice to have somehting like this. Put it on Github?


#3

Sounds good, done - updated first post. My sass knowledge is zero, so I have no idea if this is the right way to do it


#4

I like the look of that!


#5

Hey, the screenshot looks really promising.

Do you allow for a means of switching between a light theme (the ionic default) and a dark theme within a single app?


#6

Hi there, glad you like the theme! I’ve just defined an alternate sass file - the dynamic part of it is strictly speaking out of scope of the theme itself.

That being said, and I’m by no means an expert here, it looks like the only option to dynamically switch themes is to wrap each page template around css class names, which you then toggle, like here. I don’t want to enforce every component requiring a custom style name - that makes it laborious - and would like to explore an easier way.

I suppose there might be a better way if we dynamically switch the generated CSS (from the SASS files) during run-time in some sort of global scope. Do you have any ideas around this?