Download the repository:
git clone https://github.com/thomaspark/bootswatch.git
Make sure that you have
grunt available in the command line. You can install
grunt-cli as described on the Grunt Getting Started page.
_bootswatch.scss in one of the theme directories, or duplicate a theme directory to create a new one.
grunt swatch:[theme] to build the CSS for a theme, e.g.,
grunt swatch:flatly for Flatly. Or type
grunt swatch to build them all at once.
You can run
grunt to start a server, watch for any changes to the SASS files, and automatically build a theme and reload it on change. Run
grunt server for just the server, and
grunt watch for just the watcher.
Here are additional tips for customizing Bootstrap.
If you prefer a web interface for customizing themes, check out Bootstrap.build. From within the builder, you can click the Import button to load the Bootswatch theme of your choice as a starting point.
You can use the API to integrate the themes with your platform. Get:
This returns an object with a
version and a
themes is an array with the following properties:
Here's a demo of the API in action.