You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
dohliam 012d486228 add default stylesheet 8 years ago
vendor update readme 8 years ago
LICENSE initial project version 8 years ago
README.md add default stylesheet 8 years ago
index.html modularize 8 years ago
switcher.js add default stylesheet 8 years ago

README.md

Modular switcher for previewing drop-in minimal CSS frameworks

This is a quick CSS switcher to allow for previewing some of the many minimal CSS-only frameworks out there. See the demo or drop the switcher into your own page to see how different frameworks would look together with your content.

This project only includes "drop-in" minimal frameworks, in other words, boilerplate frameworks that require no adjustment of the corresponding HTML and can be simply dropped into the project to provide a starting point for further design. No additional javascript, compiling, pre-processors, or fiddling with classes should be required for these to look good and be responsive.

Usage

The switcher is fully modular, so you can easily drop it into your own pages to quickly preview the effect of using different CSS frameworks. You can even add your own frameworks to the list and use the dropdown menu to switch between them.

To use the CSS switcher, just clone or download the project and then copy your html file into the main project folder (you can replace index.html if you want, since it's just the demo).

Include the js for the switcher in the header of the page:

    <script src="switcher.js" type="text/javascript"></script> 

Then, add the following code wherever you want the dropdown to appear:

      <div id="switcher">&nbsp;</div>
      <script type="text/javascript">inline_switcher();</script>

That's it! You should now be able to cycle through the different frameworks by choosing them from the dropdown.

Custom frameworks

You can easily add your own frameworks to the dropdown, or replace the default ones entirely. Just copy the minified css file for each framework into the vendor directory and add the framework names to the list at the top of switcher.js, separated by commas. They will be automatically pulled into the switcher dropdown and loaded when you select them.

List of frameworks

Acknowledgements

LICENSE

MIT.