How do I edit the Solarized (Light) theme in Sublime Text 3
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.
- Go to Sublime installation folder, find there Packages subfolder.
- Open Color Scheme - Default.sublime-package as a zip archive (I use Total Commander and Ctrl+PgDn keys).
- Find there any scheme you like
*.tmTheme
, copy to HDD and edit with any XML editor. - 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.
Find your theme and edit away..
Source
Jack Barham
Updated on November 15, 2020Comments
-
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 almost 11 yearsThanks 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 almost 11 yearsGlad 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 toPackages/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 almost 11 yearsI see, that makes sense - Thanks
-
henry almost 10 yearsJust 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 over 9 yearsOn 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 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 over 9 yearsThis web service doesn't work and just seems to hang.
-
vsync over 8 yearsseems like the package installer in my sublime (v3) cannot find
PackageResourceViewer
-
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 about 8 yearsTo 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 over 7 yearsI'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 about 7 yearshow 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 theGitGutter
package.. -
davidfrancis about 6 yearsChanging 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.