From acb309b79eecd9acff585730945472adbbbde7df Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Sun, 7 Feb 2016 15:34:32 -0500 Subject: add info on importing into less and sass to readme, closes #547 --- README.md | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cfbb417c..0f1314c5 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,29 @@ Bootswatch is a collection of open source themes for [Bootstrap](http://getboots Usage ----- -Download the `bootstrap.min.css` file associated with a theme and replace Bootstrap's default stylesheet. +Download the `bootstrap.min.css` file associated with a theme and replace Bootstrap's default stylesheet. You must still include Bootstrap's JavaScript file to have functional dropdowns, modals, etc. -The themes are also hosted on [BootstrapCDN](http://www.bootstrapcdn.com/bootswatch/). +The themes are also hosted on [BootstrapCDN](http://www.bootstrapcdn.com/bootswatch/). - Rails users should check out: +You can import a theme into your styles using either LESS or SASS. -* [twitter-bootswatch-rails](https://github.com/scottvrosenthal/twitter-bootswatch-rails) if using _LESS_. -* [bootswatch-rails](https://github.com/maxim/bootswatch-rails) if using _SASS_. +LESS: + +``` +@import "bootstrap/less/bootstrap.less"; +@import "bootswatch/theme/variables.less"; +@import "bootswatch/theme/bootswatch.less"; + +``` + +SASS: + +``` +@import "bootswatch/theme/variables"; +@import "bootstrap-sass-official/assets/stylesheets/bootstrap"; +@import "bootswatch/theme/bootswatch"; + +``` Customization -- cgit v1.2.3