dhg / Skeleton

Skeleton: A Dead Simple, Responsive Boilerplate for Mobile-Friendly Development
http://www.getskeleton.com
MIT License
19.08k stars 3.15k forks source link

Themes implementation #425

Open JosefUtbult opened 10 months ago

JosefUtbult commented 10 months ago

Hello. I have made a change to the framework where the colors of different elements are defined as variables at the root level instead of being hard coded. This is to help with redefining these colors in order to get different themes for the site.

The idea is that a theme can be contained in its own class, where these definitions are overwritten. These changes are non-intrusive, everything looks as it did before if nothing overwrites these variables. No other css files needs to be included either, but I made a couple of example themes that I show in my Themes example. Feel free to look at it and say what you think.

I'm not sure if this is anything that you are actually intrested in adding into your project, but as I'm myself using this functionality I felt like I could at least make it a formal pull request.

Thanks in advance.