From 4001cf3e93fcc2e597ed34ea70c9d038396a466e Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Fri, 14 Mar 2014 01:22:13 -0400 Subject: embed api demo --- help/index.html | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'help/index.html') diff --git a/help/index.html b/help/index.html index 24725639..48d8c351 100644 --- a/help/index.html +++ b/help/index.html @@ -94,11 +94,14 @@
-

Quick Start

Using the themes is as easy as downloading a CSS file and replacing the one that comes with Bootstrap.

The themes are also available via CDN at BootstrapCDN.

+
+
+
+

Customization

To modify a theme or create your own, follow the steps below in your terminal. You'll need to have Git and Node installed.

    @@ -110,13 +113,34 @@
  1. Type grunt swatch:[theme] to build the CSS for a theme, e.g., grunt swatch:amelia for Amelia. Or type grunt swatch to build them all at once. To have grunt available in the command line, install grunt-cli as described on the Grunt Getting Started page.

Here are additional tips for customizing Bootstrap.

+
+
+
+

API

You can use the API to integrate the themes with your platform. Send your request to:

http://api.bootswatch.com/3/

-

This returns the version and a themes array with the following properties: name, description, preview, thumbnail, css, cssMin, cssCdn, less, and lessVariables.

-

Here's a demo with mustache.js templating.

+

This returns an object with a version and a themes property. themes is an array with the following properties:

+
    +
  • name
  • +
  • description
  • +
  • preview
  • +
  • thumbnail
  • +
  • css
  • +
  • cssMin
  • +
  • cssCdn
  • +
  • less
  • +
  • lessVariables
  • +
+

Here's a demo of the API in action.

+ Bootswatch API Demo +
+
+ +
+

Bookmarklet

Drag Bootswatchlet into your bookmarks bar, and use it on Bootstrap-based sites to see how they'd look with a theme.

-- cgit v1.2.3