jg4kog
7.127K
· May 2013 ·

Change tab color in Sublime Text 2

I like Sublime Text 2. It’s lightweight, fast, pretty and does a lot for you. But it doesn’t show clearly which tab is actively selected. It’s darker than the rest and the outlines aren’t that visible. Here's how you change this.

This is the default look:
Picture
This is what we’ll get after applying the changes described below:
Picture
My colleague Tom Greuter sent me this tip, so kudos to him!
So here’s what you do:

  1. Inside of Sublime Text go to Preferences > Browse packages.
  2. Navigate to the User folder.
  3. There you create a file called Default.sublime-theme
  4. Open that file in Sublime Text and copy and paste the following JSON object:

[{"class": "tab_control", "attributes": ["selected", "file_medium_dark"],"tint_modifier": [255, 255, 255, 80]}]

And bazinga, there’s you freshly colored tab. No need to restart.

Alternatively, you could also install another theme, like the Soda theme:
https://github.com/buymeasoda/soda-theme/

Sign in or sign up to add your response.

2 Responses

24165
Karl face fromjj normal

Thank you!!! Love this.

9 months ago ·
26347
None

Thanks :) This only works for some themes, but it does not work for themes with a dark background. I have created three themes, from Eiffel (EiffelRed #ffaaaa, EiffelBlue #aaaaff, EiffelGreen #aaffaa), using different themes for different folders. I need exactly these colors. And with such bright colors, there seems to be no effect at all with your method. Is there another way? Sincerely, Thomas.

6 months ago ·
Featured Programming Job

Java Software Developer
·
St. Louis, MO
·
Full Time
Search all programming jobs