Bootswatch now offers an API, making it easier than ever to integrate with your platform!

Request

Send your request to:

http://api.bootswatch.com

Response

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.

Demo

Here’s a simple demo, with templating by¬†mustache.js.

Notes

My thanks to James Taylor for cors-lite.

  1. jonnathandb reblogged this from bootswatch
  2. hynesip reblogged this from bootswatch
  3. kittyonyourlap reblogged this from bootswatch
  4. skuda reblogged this from bootswatch
  5. cbuck reblogged this from bootswatch
  6. bootswatch posted this