NUKnightLab / TimelineJS3

TimelineJS v3: A Storytelling Timeline built in JavaScript. http://timeline.knightlab.com
Mozilla Public License 2.0
2.99k stars 620 forks source link

Support for themes / Third Party contributions #172

Open JoeGermuska opened 9 years ago

JoeGermuska commented 9 years ago

On Twitter, @HikwaMehluli said:

I look forward to creating various themes for contribution on your @github repository soon.

Before anyone spends a lot of time creating themes, we should have some discussion about what level of support we plan for them.

Of course, people could publish compatible themes as Github gists or otherwise without coordinating with us -- but I would hate for someone to spend a lot of energy and make a pull request only to find that we aren't ready to accept their contribution.

So we can use this issue to discuss.

zachwise commented 9 years ago

I laid the groundwork for this. All we need to do is document how to do it and the best way to contribute.

HikwaMehluli commented 9 years ago

Hi @zachwise and @JoeGermuska what is the word on theming. I am very interested in contributing. Suggestively it could be a javascript addition on options for color change? or separate style sheet?

zachwise commented 9 years ago

Themes can be built in LESS and they compile to an alternate spreadsheet to use instead of the default one: LESS: https://github.com/NUKnightLab/TimelineJS3/tree/master/source/less/themes Compiled example: https://github.com/NUKnightLab/TimelineJS3/tree/master/compiled/css/themes

You could duplicate the dark theme folder as a starting point. All of the colors are changeable in the Variables.less file within that theme's folder.