ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Customization Tips for Bootswatch Themes

Updated on January 9, 2016
Source

Bootswatch Customization Poll

What is your interest in this hub?

See results

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.less and bootswatch.less 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

Source

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

Option
Setting
Trend
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
These are the most obvious options many lazy developers don't change leading to the criticism that all Twitter Bootstrap sites look the same.
Source
Source

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. In the GitHub Shell, 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: 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.less and Bootswatch.less 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. | Source

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.less 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. | Source

Bootswatch Customization Quiz

view quiz statistics

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 LESS 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.

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 2015.

Comments

    0 of 8192 characters used
    Post Comment

    • kevinfream profile imageAUTHOR

      Kevin Fream 

      13 months ago from Tulsa, OK

      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 :)

    • profile image

      Dustin Nulf 

      13 months ago

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

    • profile image

      Dustin Nulf 

      13 months ago

      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?

    • profile image

      ahmetGdy 

      3 years ago

      Thank you Kevin for this beneficial article.

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://hubpages.com/privacy-policy#gdpr

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)