How do I edit the Solarized (Light) theme in Sublime Text 3

63,538

Solution 1

I'd recommend using PackageResourceViewer to open the file. You could make your modifications there, and it would save in the proper location to override the built in files. However, I would recommend copying the contents of the file and creating a custom version in your User folder. That way, you can easily move it around and modify it without worrying about the built in color schemes.

The default color scheme files are located in Color Schemes - Default.sublime-package. In ST2, this was extracted to Packages/Color Scheme - Default. PackageResourceViewer will display these folders (as they would normally appear in the Packages folder in ST2. You could navigate to your color scheme from that.

Solution 2

I have managed to find a solution:

Go to http://tmtheme-editor.herokuapp.com (someone has built a web-based theme editor). Once you have tweaked the colour syntax you can download the themename.tmTheme file. Move that file to /Users/username/Library/Application Support/Sublime Text 3/Packages/ User/ (if you are on a Mac).

Load in the syntax theme from the top menu: Sublime Text > Preferences > Color Scheme > themename.

If you want to tweak you syntax further up can upload the custom theme back in the web-based theme editor and save it out again.

Hope this helps someone else.

Solution 3

Editing is way simpler than advices above.

  1. Go to Sublime installation folder, find there Packages subfolder.
  2. Open Color Scheme - Default.sublime-package as a zip archive (I use Total Commander and Ctrl+PgDn keys).
  3. Find there any scheme you like *.tmTheme, copy to HDD and edit with any XML editor.
  4. Pack modified file back (with Total Commander just copy file to opened archive).

Solution 4

This should be much easier than it is
I used parts of all the other answers to make this work.

Important notes before you begin:
1. I had used this menu item to select a colour scheme: Sublime Text > Preferences > Color Scheme
2. I chose "Monokai.tmTheme"
3. Therefore the file you need containing the colours is: Monokai.tmTheme
4. You will NOT have easy access to that file yet!!

Overall Steps:
The overall steps I found to work are:
1. Get a copy of the Monokai.tmTheme text file
2. Place it in your "/Users/XXX/Library/Application Support/Sublime Text 3/Packages/User" directory
(replace XXX with your username)
3. Again use this menu: Sublime Text > Preferences > Color Scheme
4. Choose the new entry "Monokai - User"
5. Any changes to your Monokai.tmTheme file will immediately be seen by Sublime Text

Getting the Monokai.tmTheme text file :
This is the tricky part.
You have two options

Option A. Use PackageResourceViewer to open the resource:
A1. Tools -> Command Palette
A2. Type "PackageResourceViewer"
A3. Choose "PackageResourceViewer: Open Resource"
A4. Navigate to "Color Scheme - Default"
A5. Navigate to "Monokai.tmTheme"
A6. This will open the contents of the file but it is NOT a real file on your disk! You must copy the contents into a new text document and save it into "/Users/XXX/Library/Application Support/Sublime Text 3/Packages/User/Monokai.tmTheme" as above

Option B. Use the web app to create your .tmTheme file:
B1. Goto http://tmtheme-editor.herokuapp.com
B2. Edit the colours
B3. Download the .tmTheme file
B4. Put it into "/Users/XXX/Library/Application Support/Sublime Text 3/Packages/User/Monokai.tmTheme" as above

Solution 5

Sublime version, OS & OS version independent way:

In Sublime, at the top menu bar goto "Sublime Text 2/3" -> Preferences -> "Browse Packages...". This will open the "Packages" folder correctlin Finder/FileExplorer/Nautilus/... depending on OS/version-of-OS.

enter image description here

Find your theme and edit away.. enter image description here Source

Share:
63,538
Jack Barham
Author by

Jack Barham

Updated on November 15, 2020

Comments

  • Jack Barham
    Jack Barham over 3 years

    I am trying to edit some of the syntax colours in Sublime Text 3. I'm using the Solarized (Light) built in colour scheme but I only want to change a few of the colours. Where is the settings file (on a Mac)?

  • Jack Barham
    Jack Barham almost 11 years
    Thanks for the feedback - I have installed the package control. However, you said "I would recommend copying the contents of the file and creating a custom version in your User folder" Thats the part where I am stuck, I can't find where the original files are located?
  • skuroda
    skuroda almost 11 years
    Glad you found a solution, but I'll explain anyways. The default color scheme files are located in Color Schemes - Default.sublime-package. In ST2, this was extracted to Packages/Color Scheme - Default. PackageResourceViewer will display these folders (as they would normally appear in the Packages folder in ST2. You could navigate to your color scheme from that.
  • Jack Barham
    Jack Barham almost 11 years
    I see, that makes sense - Thanks
  • henry
    henry almost 10 years
    Just to be clear for future readers: in ST3 the path is Sublime Text/Contents/MacOS/Packages/Color Scheme - Default.sublime-package (note it's "Scheme" not "Schemes") but using PackageResourceViewer you don't need to know that - you can just Command Palette -> PackageResourceViewer: Open Resource -> Color Scheme - Default -> [the theme you want to get at].
  • DustByte
    DustByte over 9 years
    On Linux I added the new theme by 1. clicking Preferences->Browse Packages to get to folder "Packages", 2. Creating folder "Colorsublime-Themes" (if not already exists) in "Packages", 3. put the new theme (named *.tmTheme) there. The new theme can now be loaded through the top menu as mentioned above.
  • Ali
    Ali over 9 years
    @skuroda You're my hero. I've been searching for an easy way to change my color scheme the whole day but this plugin works best.
  • Sethen
    Sethen over 9 years
    This web service doesn't work and just seems to hang.
  • vsync
    vsync over 8 years
    seems like the package installer in my sublime (v3) cannot find PackageResourceViewer
  • skuroda
    skuroda over 8 years
    @vsync unsure why it wouldn't be there. It's listed on the package control site. If you're sure you don't have it installed and it isn't listed, you may want to reach out to the package control developer
  • danblaker
    danblaker about 8 years
    To be even more clear to future readers: after you open the theme file with PackageResourceViewer, copy its contents into a new file. Edit that file, then save it as a ".tmTheme" file in the "User" directory within the data directory (docs.sublimetext.info/en/latest/…).
  • jenlampton
    jenlampton over 7 years
    I've located the file Sublime Text/Contents/MacOS/Packages/Color Scheme - Default.sublime-package, but it appears to be compressed, its just a bunch of numbers. Is there another version of this file that can be edited? Or is there some process for decompressing / recompressing in order to make changes? Is that dangerous at all? edit: I was in the wrong place. The correct location is in ~/Library/Application Support/Sublime Text 3 (for OSX) not in ~/Applications. Hope this note helps someone else!
  • SherylHohman
    SherylHohman about 7 years
    how do I find themes that are pre-installed with Sublime 3 ? I only can find themes I added via package control with this method. I like default theme IDLE, and want to add functionality to show colors for the GitGutter package..
  • davidfrancis
    davidfrancis about 6 years
    Changing the files that Sublime Text installs is not a good idea. You can instead place an override version in your "/Users/XXX/Library/Application Support/Sublime Text 3/Packages/User" directory.