Updated date:

Bootswatch Theme Customization Tips

Kevin Fream is the divergent cyberist who developed the Delta Method used to change the game for search engine marketing.

Bootswatch Customization Poll

Why Bootswatch Themes?

Bootswatch is a site by Thomas Park that offers free themes for Twitter Bootstrap. While the GetBootstrap site shows some basic examples of web pages for responsive and mobile first design, Bootswatch provides a dozen themes showcasing various looks.

The magic for quickly changing the look and feel of a bootstrap site is updating the two Cascading Style Sheets (CSS) of boostrap.css and bootstrap.min.css. However, bootstrap is a design model that is regularly updated by Twitter, so you shouldn't just manually edit those files like traditional web development. Not only is the task daunting over pages of code, but any changes you make would have to be made again and tested with each successive version of bootstrap.

Fortunately, Bootwatch themes provide an example of the myriad bootstrap customization settings. Using the utility sites Git and Node, you can clone an existing Bootswatch theme with a framework to then just update a few settings as desired. By editing the special _variables.scss and _bootswatch.scss files, you specify aspects such as fonts, colors, and sizes. Finally, you combine your customizations with the default CSS using the command: grunt swatch.

Default Twitter Bootstrap Site

The default Twitter Bootstrap site is mobile responsive, but has a very boring look.

The default Twitter Bootstrap site is mobile responsive, but has a very boring look.

United Theme

Fast and Furious

If you're just wanting some rapid prototypes or feel one of the Bootstrap themes will fit all of your needs, then you can pretty much can:

  1. Browse to Bootswatch.com.
  2. Click the Themes pulldown.
  3. Select your favorite theme like United.
  4. Click the Download pulldown.
  5. Select bootstrap.min.css and bootstrap.css.
  6. Replace the same name files in your web project with your downloads.
  7. View the changes and begin building pages.

You don't have to worry about compiling anything and at least you're a few steps ahead of all those lazy people, who never changed default Twitter Boostrap example of black navbar, gray panels, and blue buttons.

Step 3 lists United because it's something different that if you check, most of your competition probably has the same look and colors - text probably says the same things too. However, with just a little more effort, you can develop a custom brand and unique presence.

Default Twitter Bootstrap Settings

These are the most obvious options many lazy developers don't change leading to the criticism that all Twitter Bootstrap sites look the same.

OptionSettingTrend

Navbar Height

50px

Taller

Navbar Color

Black or white

Brand color

Navbar Brand

Text only

Logo Image

Typography

Helvetica Nueu

Georgia

Jumbotron

Gray

Color or Image

Buttons

Blue

Brand color

Carousel

None

Home page

Search form

None

Navbar

Social Icons

None

Footer

Footer

Limited

Full-width Panel

Environment Setup

Follow the Help page at Bootswatch. The setup is almost that straight forward, except for a few exceptions:

  1. Download and run Git and Node.
  2. Open the GitHub app and create your GitHub user name and repository. Make it simple and name the repository the same as your user name.
  3. Right-click on your repository for options like opening the shell or explorer for editing.
  4. Open Command Prompt as Administrator. Then copy the Bootswatch themes:
    git clone https://github.com/thomaspark/bootswatch.git
  5. NPM command will not be recognized until you change directory to Bootswatch under the GitHub folder: cd bootswatch
  6. Run this command once from the Bootswatch directory to enable recompiling bootstrap CSS files with your custom changes in the LESS files:
    npm install -g grunt-cli
  7. After editing _Variables.sass and _Bootswatch.sass in the \github\bootswatch\custom folder, run this command from the Bootswatch directory to compile the changes:
    grunt swatch:custom
  8. Copy the updated bootstrap.css and bootstrap.min.css files from \custom to your your Bootstrap project and review.

Cerulean Theme

Blue is the color most commonly associated with harmony, faithfulness, and confidence. It's the favorite color of almost half of men and women.

Blue is the color most commonly associated with harmony, faithfulness, and confidence. It's the favorite color of almost half of men and women.

Popular Customizations

Obviously, this is the point where you enter the world of personal preference and choice. Colorcombos.com is a good site for comparing color schemes. Also, here are some quick pointers to make your site different from the default bootstrap site:

  1. Copy the contents of theme folder to \bootswatch\custom that is closest to your final product like \bootswatch\cerulean. Blue is safe and offers a nice palette, but it seems like almost everyone has a blue website.
  2. Edit the variables.less for changes in colors and fonts.
  3. Change @brand-primary for your navbar background. Button colors often match in the examples, but many people keep buttons a different color.
  4. @body-bg and @text-color set the tone for a light or dark site with the background and text colors. The current trend is generally a light background, but compare or contrast with other sites in a given industry.
  5. @link-color and @link-hover-color should coordinate with the theme colors for hyperlinks.
  6. Change @font-family-sans-serif settings so your site doesn't have the default Bootstrap typography.
  7. Make the overall font size smaller or large by adjusting @font-size-base. My preference is a little larger, as we shouldn't really have to squint on large screens.
  8. The default navbar is only 50px, but most developers want their site to look different from the Bootstrap examples and like a little more height anyway by changing the @navbar-height. Obviously, the @navbar-default and @navbar-inverse settings are where you'll want to change those backgrounds and link colors.
  9. @panel-footer-bg is often changed to the same color as the navbar-default-bg.
  10. Edit the bootswatch.scss to add special styling. The other themes show some good examples for portions to copy. For instance, maybe you like the shaded pulldown menus of Cyborg or the navbar button look of Slate.

More Ideas from Wrapbootstrap Themes

Once you're up to speed with making bootstrap pages and customizing a Bootswatch theme, it may be time to up your game to paid Wrapbootstrap themes. The cost is quite affordable and you can produce great results with your new skills.

Once you're up to speed with making bootstrap pages and customizing a Bootswatch theme, it may be time to up your game to paid Wrapbootstrap themes. The cost is quite affordable and you can produce great results with your new skills.

Bootswatch Customization Quiz

For each question, choose the best answer. The answer key is below.

  1. What is Bootswatch?
    • State of Texas boot website
    • Just another kitty meme
    • New boot futures site by CNN
    • Free theme site for Twitter Bootstrap
  2. What is Twitter Bootstrap?
    • New Twitter channel for business startups
    • #I-dont-know
    • Women's fashion line inspired by The Hunger Games
    • Mobile first web standard developed by Twitter
  3. Who is Thomas Park?
    • Secretary of State
    • Author of "The Way to Wealth"
    • Lead Actor in the movie Jack Ryan Dark Agent
    • Developer of the themes and site for Bootswatch.com
  4. What is Git and Node?
    • Two characters from the Matrix
    • Food and drink for hobbits
    • Popular new dance crazes
    • Git is a code repository that works with the Node compiler
  5. Why Customize Bootswatch Themes?
    • Different Navbar color and height
    • Custom typography
    • Unique look and feel from examples and other sites
    • All of the above

Answer Key

  1. Free theme site for Twitter Bootstrap
  2. Mobile first web standard developed by Twitter
  3. Developer of the themes and site for Bootswatch.com
  4. Git is a code repository that works with the Node compiler
  5. All of the above

Bootswatch Customization Bottom Line

Setup and your first customization may be completed in under an hour, but you may spend a career testing and deploying various looks for any need. Sometimes it's easier just to throw the menu options, text, and images on the screen and do the theme settings afterward.

This hub was created because there is little clear information about recompiling boostrap.css and SCSS files or using with themes of any kind. The content didn't really fit with any blog niche and why not provide for everyone while documenting? Hopefully, these tidbits will help others get started.

No cute animals were harmed in the making of this hub from Bootswatch Theme Customization.

No sections were left blank and this media may or may not be formatted to fit your screen.

The author has no affiliation and derives no revenue from any referenced persons, organizations, or websites.

THANK YOU for reading and please provide any comments that would make this hub better.

© Kevin Fream 2021.

This content is accurate and true to the best of the author’s knowledge and is not meant to substitute for formal and individualized advice from a qualified professional.

Comments

Kevin Fream (author) from Tulsa, OK on June 21, 2017:

Sorry Dustin! I was out of town for my TV media tour, but I see you found the answer. IMO these apps are a bit wonky about setting path correctly. Good luck :)

Dustin Nulf on June 20, 2017:

Ah, there is a special Cmd shortcut under Node.js in Programs.

Dustin Nulf on June 17, 2017:

I can't seem to get passed an error on step 6:

npm install -g grunt-cli

'node' is not recognized as an internal or external command.

"c:\program files\nodejs;" is in my path.

any ideas?

ahmetGdy on June 29, 2015:

Thank you Kevin for this beneficial article.

Related Articles