19 June 2012

Beyond GMail's Themes

New in GMail Themes is a huge range of images you can add as a background to Gmail. Or you can choose your own image if you prefer.

Google currently provides a choice of a light or dark overlay, just like those in their pre-built themes, but there is no way to modify them and no way to change the text colors

So here's how to do that yourself!

There's a very simple script below for Stylish in Firefox or Chrome. Stylish is a browser extension/add on which lets you easily install and manage userstyles - "themes" for web sites created by modifying a site's Cascading Style Sheet (CSS). You can add, delete, enable, disable, and organise your userstyles with a few clicks of a mouse. Stylish's companion website, userstyles.org, hosts tens of thousands of user styles made by other Stylish users that you can try.

This short script for Stylish lets you change:

1. Unread message background colours and degree of opacity
2. Unread message text colours for sender, subject and timestamp
3. Read message background colours and degree of opacity
4. Read message text colours for sender, subject and timestamp
5. Background colour and degree of opacity for messages you have selected
6. The colour and opacity of the line which divides your message rows in the list
7. The colours of alternating message in Conversation view, to help you distinguish one from the other

First of all, install the right version of the Stylish browser extension from userstyles.org, depending on which browser you are using, Firefox or Chrome.

Pick your image next - you can upload one of your own from disk, grab one you uploaded earlier from My Photos or Picasa WebAlbums or choose from the gallery provided in the new Custom Background theme. Work out what colours you think will go well with it.

Then go here, and look up those colours and their RGB codes.

There's a long list of toning colours, grouped in "families", giving all their RGB numbers, or you can pick your own from the colour pickers at the top of the page (see left).

Choose your colours, write down the RGB numbers you want to use for (1) to (7) above and then just alter the script to suit you. You can do this by pasting it from this page into any text editor like Notepad or TextEdit - but be careful to only change the RGBA/RGB numbers.

Here's the script...

It's currently set up with my favourite green background/text colours which work well with GMail's standard Turf and Teahouse themes, and will work with any image that has green as the main colour. You can use it exactly as it is if you like green!

If you'd rather have other colours, all you need to do now is to plug in the new RGB values for the various elements that you have previously chosen and written down.  Copy the following lines of code into any text editor.

/* Unread rows - background colour and opacity and text */
.zE {background-color: rgba(230,255,210,0.95) !important; color: rgb(0,80,0) !important;}

/* Read rows - background colour and opacity and text */
.yO {background-color: rgba(210,240,190,0.8) !important; color: rgb(0,80,0) !important;}

/* Selected rows - background colour and opacity*/
.x7 {background-color: rgba(255,250,205,1) !important;}

/* Row dividing line colour and opacity */
.xY {border-color: rgba(140,190,140,0.9) !important;}

/* Alternating message colours in Conversation View */
div.h7:nth-of-type(odd) div.adn.ads, div.kv:nth-of-type(odd){ background-color: rgba(190,220,180,0.65); }
div.h7:nth-of-type(even) div.adn.ads, div.kv:nth-of-type(even){ background-color: rgba(230,255,210,0.85); }

How to amend the script for your chosen colours

To break this down and make it simple, let's take the first line above:
.zE {background-color: rgba(230,255,210,0.95) !important; color: rgb(0,80,0) !important;}

.zE is the Unread message row. To set the background, you need to alter the first three RED numbers in brackets after the "rgba" - that sets the colour. Then alter the fourth BLUE number inside the brackets to control the opacity of the colour you have just set. The scale is 0.05 to 1.0 in increments of 0.05 - and you can set any level that you want to change the look of your style.

As an example, here's a similar screenshot to the green one above, which is set to have opacities of 0.85 and 0.9 - with opacities set at 0.5 - quite a difference!

Then move to the color element further along the line which is just "rgb" - that controls the colour of the text for the sender, the subject and the timestamp. You don't want these to be transparent, so there is no opacity control - just alter the three numbers within the brackets to use the RGB colour you have chosen.

All the other lines in the script work exactly the same way. Change the RGB numbers and select the opacity level if it is shown.

Here's how Conversation View looks - even with the recent improvements, this colour alternation makes it easier to tell one message from the next, and the slightly darker coloration of read messages makes it easier to see what you have read and what you have not read:

And finally....install your script and view it in GMail!

When you have it all tweaked, save your text file, but keep it open, because you'll want to copy from it.

In your browser go to your GMail tab and click the Stylish extension icon - Chrome top right, Firefox bottom left. The interfaces are slightly different in Chrome and Firefox, but it's easy to find your way around.

In Chrome, choose "Manage Installed Styles" and then click the "Write new style" button. A new tab will open (see below) for you to create your code. Copy and paste in your style, give it a name and save it.

You should also add the URL of the site you want it to apply to - in our case, mail.google.com - so from the URL drop-down choose "URLs on the domain" and type "mail.google.com" into the box.  Save the style again. Then go back to GMail, and from your Stylish menu, choose the name you gave your new style and click Enable to apply it to GMail.

In Firefox, choose Write New Style from the Stylish menu to get to the code window, and follow the same procedure. To apply your style, click the Stylish icon and check the style you want to use.

If you want to tweak your colours further, or alter the opacity of the various elements now you can see them on the page, click the Stylish icon in Chrome, click your style and choose Edit.

Or in Firefox, click Manage Styles, and choose the Edit button alongside your style name. You can do this any time.

Last of all, here it is pre-built for you, as an easy installable userstyle right from the userstyles.org site with an easy method of choosing your colours - just click the link and get choosing....

GMail Message List Colours

See http://gmail-miscellany.blogspot.co.uk/2012/04/userstyles-for-gmail.html for a bit more information and some more screenshots

Making more scripts for different colour schemes

You may be the kind of person that likes a change. So you might want several styles, set up to use different colour sets to go with your favourite background images. To do that, click the Stylish icon, find your script in the Stylish menu and click edit. Select and copy the script in the box. Close the edit window. Then click the Stylish icon again and choose Manage Styles and Write New Style (just as you did before) and paste in the code you just copied. Change the RGBA/RGB values to the new colours of your choice. Give your new style a name and save it. Then head back to GMail to see it working. To switch between your colour styles, use the Disable/Enable options in the Stylish menu.

If you have more than one account, and like to have them open at the same time using Multiple Sign-in. the same userstyle will be applied to both accounts. To differentiate them, you can choose different backgrounds - either a standard GMail theme or an image from the gallery in the new Custom Background theme, or one of your own - that tone nicely with the colours used for your message list.

Here are some more screen shots of what you can do using just these few lines of code. I've used my Spam label so that I need to do the least possible redaction to keep the images clear.

If, having digested the above, you really don't want to start messing with GMail's style sheet, there are a large number of pre-written GMail userstyles available at userstyles.org, as well as the one I have written for you (see above) based on this script. I wrote about those in an earlier blog at http://gmail-miscellany.blogspot.co.uk/2012/04/userstyles-for-gmail.html - and you can just install them into Stylish and use "as is".

A particularly useful one - which also mimics the "old inbox look" to a large degree - is "Marina Resurrected". Find it here: http://userstyles.org/styles/65048/marina-resurrected

Unlike many of the pre-written styles, this one allows you to pick your own colours and customise the script before it is installed into Stylish.  Each element is listed, with a colour picker beside it, and you can choose from the Marina background or a solid colour - or if you are using the Custom Background theme or another GMail theme, then it will work with any of those images too. The style can also remove the People Widget and the ads in an open message, freeing up that space for wider messages.  Here's how it looks with one of the gallery images, and a small tweak to the colour of read messages:


I must thank all those busy coders at userstyles.org who publish their userstyles for other GMail users to share. I was able to browse their code to find the most straightforward and robust way of making a short colour-changing script, and could not have written this simple little style without their generosity to other GMail users. In particular, thanks are due to bookdragoness for Marina Resurrected, and C26000 for the Real GMail Turf Theme, both of which helped me write the original script, and produce the pre-built version now available at www.userstyles.org.


  1. This is great, Wendy! I'll be pointing people in your direction :-)

  2. In my gmail theme tab, I am not getting link to custom new own gmail theme. From where I can get?

  3. This is great!! Can you set opacity for messages you are reading?

  4. I found the code for the messages as you read them:
    /* Background of Messages being viewed */
    .Bu {background-color: rgba(255,255,255,0.5) !important;}

  5. Nice find, David - thanks for posting it!

    I kept the original script as simple as possible on the advice of a Gmail engineer, so that future changes in the Gmail CSS would be less likely to break it. So far, so good!

    So I didn't even look for open message transparency, on the assumption that most users wouldn't want the distraction of their background image coming through while actually reading messages.

    Does it work well for you?

  6. Thanks for the above post.I am using gmail from so long time. Now its time to change the color and background of my account. I am trying this but I think here is some problem in doing this. Its not done like you mentioned above. I will try again and then send you feedback. Thanks once again.

  7. Awesome! I've been trying to work this out for ages. I also use melius to tweak my gmail interface, and the "gmail label column resizer".

    Thanks very much

  8. he best thing about Yahoo Search Marketing is the sheer quantities of individuals who seek on Yahoo. With a normal of 2.3 billion (with a b) ventures each month, Yahoo Search Marketing gives you an inconceivable range in your promoting.https://800support.net/yahoo-support/how-to-group-and-delete-emails-by-conversations-in-yahoo/

  9. nice template got more information. keep share more information. i would like to get the best kind of services for different theme about template for my web designs. keep it up.
    School Prospectus Design uk | School Prospectus UK

  10. How to add yahoo search bar in my browser

    Yahoo is one of the popular website that you can use as the browser or as a default Internet search engine. You can simply add yahoo search bar in to your browser which can ease your work.


  11. lot of things learnt from your blog. got more ideas for us. wonderful tips makes from yours. Soonly will test and Execute our status very helpful one.
    GMAT coaching chennai

  12. Gmail has made messaging simple and when any specialized issue comes in it get connected with professionals technicians at our Gmail Helpline Number UK and you will get it fixed.

  13. Thus, it in on the responsibility of the toll free email Yahoo helpline team to attract and keep users by providing the greatest in class services and help so that they have a satisfying knowledge of using the Yahoo mail account.

  14. This comment has been removed by the author.


  15. We have excellence Printer technical support team that are capable enough to short out even the most complicated all type of printer technical problems such as getting paper input problems, getting poor or low printing quality, Plug-and-play problems then contact Printer technical support executive.
    For more information visit: -

    Epson Printer Customer Care Helpline Number for Live Chat
    Dell Printer Customer Care Helpline Number for Live Chat
    Brother Printer Customer Care Helpline Number for Live Chat
    HP Printer Customer Care Helpline Number for Live Chat
    Canon Printer Customer Care Helpline Number for Live Chat

  16. Some issues like getting too many spam mails or language setting create trouble for Gmail users because they become unable to sort this issue out. At this moment, you should contact the technicians at Gmail Helpline Number UK.

  17. Are you unable to resolve 500 error in your Gmail account? If so, then you need to contact Gmail customer service support toll free 800 phone number to get free from the serious issues. Gmail users don’t need to overload themselves with the worries of your account because the round the clock availability of an expert will surely help you to get rid of the issue.

  18. Get the verification Yahoo Child Account

    You are confronting some technical grievances while using your child account or finding difficulty in viewing the activities of your kid, you can get connected to a certified technical professional of Yahoo mail. Get the verifiction Yahoo phone number support the new Yahoo child account.

  19. Technical Security issues of your Gmail account

    Get the best security issue resolved via Gmail technical support. Gmail is to enable two-step verification password recovery, which prevents other accessing gmail account and secure the Gmail account.This is a major privacy issue and detect email trackers within your Gmail account.

  20. Are you confronting some issue in changing and recovering the Gmail account password? If your answer is positive, then you can contact Gmail password recovery expert. The Gmail customer service representative 800 phone number is the right means to obtain the genuine tech support solutions for recovery related issues.

  21. Just take the technical assistance today in your Yahoo mail account vial using Yahoo customer service corporate 1-800 phone number and obtain the impressive solutions within a short duration of time slot. You will not find any technical obstacle in using your Yahoo account on a regular basis.

  22. This comment has been removed by the author.

  23. Yahoo email account is one of the most frequently used email service providers with its exceptional advanced features. In case you are confronting any issue while using an account by yourself, you need to obtain the best tech support via taking Yahoo mail care customer service.

  24. Use the Compose mail in Yahoo mail

    This helps to keep the same email in a conversation with multiple email account holders.You don’t need to write the same email every time. You can use the Cc and Bcc feature of Yahoo mail.You need to quickly consult a certified Yahoo phone number team of Yahoo. This helps to keep the same email in a conversation with multiple email account holders.

  25. Yahoo Support Customer Care Phone Number +1-877-618-6887 for urgent premium services by experts of yahoo , for more info call now on 24*7 helpline number or visit yahoohelpdeskservice.blogspot.com/.../how-yahoo-account-can-be-hacked.html

  26. Great article! Do you think there is a way to set up a style so that the background color changes based on the label applied to a certain message? E.g. having a different background color for messages grouped under label x and a different one for those grouped under label y and so on.
    Thanks in advance!

  27. Find the Caller Id and Photos Syncing Features of Yahoo

    To boost their Yahoo Mail mobile app, Yahoo recently made some changes in their services in which the Yahoo Mail Mobile App will not only be used for sending & receiving emails but also sync your mobile phone’s photos and help you identify unknown incoming calls via cross-referencing the Yahoo technical support numbers present in your inbox. The call history is also gets updated via names. Yahoo introduced “tripod” which will help you search photos by keyword. Basically, Yahoo wants to increase the ease of access to email photos from mobile when you are on the desktop. Both the Apps, iOS and Android got this update recently.

  28. Reset Yahoo Password in Just A Few Minutes

    You can reset your Yahoo password in just a few minutes by providing this information. If you can’t get into your account, contact our dedicated certified Yahoo Technical Helpdesk for prompt assistance.

  29. The only very best option on hand with them is to contact customer support by dialing Yahoo Technical Support telephone Number as professional experts available there can support them very well in changing mail account password in a sufficient way.

  30. How To Prevent Technical Problems In Yahoo Account

    Simply a Yahoo account password is not good enough; you need to use some additional security to avoid any technical problem. You can use Yahoo best ever security system for your Yahoo account. Yahoo Account Key and Two-Step Verification are your solution. You can easily enable any of these to prevent your Yahoo account from any technical glitch. If needed, you can call Yahoo customer support toll-free number for any help.

  31. Recover Yahoo mails account against hacking activities

    It is suggested that Yahoo users need to keep on changing the password of an account from time to time. Changing the Yahoo password frequently helps you to protect against the hacking activities. In case your Yahoo email account has been hacked by an unauthorized person, simply get in touch with a customer care number of Yahoo for fixing the solutions related to Yahoo mails account hacking activities issues. The primary motive of the professional is to lessen your technical Yahoo complexties.

  32. Solve the Yahoo customer support issues

    Get best solution,can dial a Yahoo Phone number : 1-888-297-6323