[Product Post] Theme Tip: Changing Icon Colors

2 minute read

November 7, 2014

[Product Post] Theme Tip: Changing Icon Colors

You can change this by making a small change to your CSS, by using a different Sprite file. Using our example above, we change icons to be white:


To do this, all you need to do is add the following to the CSS tab of your customize theme section.

.NavBar .MeMenu .Sprite16 {
background-image: url("//vanillicon.com/sprites/sprites-14-ffffff.png") !important;

You change the colors of the icons or glyphs to any color your want. Just change the last 6 alpha-numeric characters to the HEX color code you want (without the # tag). So for example, white is ffffff, black is 000000.

As we noted, the above modification works on the Bootstrap theme. If you are using older themes, such as baseline or dark theme, you are using an older sprite template:


You have the option of four colors: Black, Dark Grey, Light Grey and White. Each requires you to shift the starting points of the sprites. So for example, if you use the default and are seeing black icons, below will change this to white icons:

.SpDashboard, .SpOptions {
background-position: 0 -212px !important;

.SpInbox {
background-position: -16px -228px !important;

.SpNotifications {
background-position: -32px -212px !important;

.SpBookmarks {
background-position: -80px -245px !important;

.SpSignOut {
background-position: -2px -102px !important;

We hope you found these tips helpful. Check under the product category for more product tips.

Vanilla Forums offers a cloud based solution which can easily be themed to match your brand. Try Vanilla Forums Cloud Solution free for 30-days.


Share Your Thoughts

Your email address will not be published. Required fields are marked *

Adrian Speyer

Written by Adrian Speyer

Adrian Speyer is the Head of Community and Lead Evangelist for Vanilla by Higher Logic. Besides spending many years in digital marketing, Adrian has been building communities of all sizes for over 20 years.

Have an Article for Vanilla's Blog?

Send us an email to [email protected] with your topic idea and we'll circle back with our publishing guidelines.

Subscribe to the Community Corner Newsletter and get expert insight and analysis on how to get the most out of your online community every Friday.
[contact-form-7 id="5700" title="Newsletter Form"]

Request a Demo

Schedule a product demo now.

Contact Us