diff --git a/README.md b/README.md index 93e1b40..5ab96fe 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,27 @@ # An overview of barebones drop-in minimal CSS boilerplate frameworks -This is a quick CSS switcher to allow for previewing some of the many minimal CSS-only frameworks out there. See the demo [here](https://dohliam.github.io/dropin-minimal-css). +This is a quick CSS switcher to allow for previewing some of the many minimal CSS-only frameworks out there. See the demo [here](https://dohliam.github.io/dropin-minimal-css) or [drop the switcher](#Usage) into your own page to see how [different frameworks](#list-of-frameworks) would look with your content. + +## 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). + +If you don't already have a stylesheet defined, you'll need to add the following default stylesheet to the header of your page: + + + +Include the js for the switcher in the header of the page: + + + +Then, add the following code wherever you want the dropdown to appear: + +
 
+ + +That's it! You should now be able to cycle through the different frameworks by choosing them from the dropdown. ## List of frameworks diff --git a/index.html b/index.html index eebdda0..b143656 100644 --- a/index.html +++ b/index.html @@ -10,41 +10,16 @@ padding-left: 24px; } - +

Drop-in Minimal CSS

-

This page provides an overview of barebones drop-in minimal CSS boilerplate frameworks. For more information, and links to all the frameworks seen here, visit the project page on GitHub.

+

This page provides an overview of barebones drop-in minimal CSS boilerplate frameworks. To switch to a different stylesheet, select one of the frameworks from the dropdown menu below. For more information, and links to all the frameworks seen here, visit the project page on GitHub.

- +
 
+