plouc / mozaik

Mozaïk is a tool based on nodejs / react / redux / nivo / d3 to easily craft beautiful dashboards
http://mozaik.rocks
MIT License
3.61k stars 363 forks source link

Theme is hard coded / add support for providing a custom theme #32

Closed juhamust closed 9 years ago

juhamust commented 9 years ago

Theme is hard coded to night-blue: https://github.com/plouc/mozaik/blob/master/gulp/tasks/styl.js#L15

While fixing the issue, the support of providing a custom theme could be added as well: In a case the config theme variable is not a theme name delivered with Mozaik, it is considered as a relative path to theme folder (based on config.js)?

plouc commented 9 years ago

It's now fixed, but you cannot yet set a custom theme, I have to find a way to give an alternate path, not just a theme name

plouc commented 9 years ago

@juhamust you should now be able to use a custom theme, all you have to do is to conform this directory layout:

+ /my-dashboard
+—+ /themes
  +—+ /mine
    +— _vars.styl
    +— index.styl

Then, you can set theme to mine in your config.

juhamust commented 9 years ago

Great! Based on quick test, seems to work as expected.