Bootswatch now offers an API, making it easier than ever to integrate with your platform!
Send your request to:
This returns a themes array, and each theme has the following properties:
name “Amelia”description “Sweet and cheery.”preview “http://bootswatch.com/amelia/thumbnail “http://bootswatch.com/amelia/thumbnail.png”css “http://bootswatch.com/amelia/bootstrap.css”cssMin “http://bootswatch.com/amelia/bootstrap.min.css”less “http://bootswatch.com/amelia/bootswatch.less”lessVariables “http://bootswatch.com/amelia/variables.less”It also returns version, which gives the current version number of the themes.
Here’s a simple demo, with templating by mustache.js.
My thanks to James Taylor for cors-lite.