How do I edit the Solarized (Light) theme in Subli

2019-01-16 02:07发布

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)?

6条回答
对你真心纯属浪费
2楼-- · 2019-01-16 02:36

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/ (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.

查看更多
神经病院院长
3楼-- · 2019-01-16 02:46

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

查看更多
Melony?
4楼-- · 2019-01-16 02:51

As of May 2018 using Sublime Text 3:

I followed the Overall Steps and Option A. from @davidfrancis with great success to customize the Mariana color scheme.

However, I had to change the file extension from <name>.tmTheme to <name>.sublime-color-scheme. Also, the filename can be anything you want (don't need to keep the default), and it will appear under Preferences > Color Scheme.

查看更多
放我归山
5楼-- · 2019-01-16 02:55

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.

查看更多
时光不老,我们不散
6楼-- · 2019-01-16 02:55

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).
查看更多
爷的心禁止访问
7楼-- · 2019-01-16 02:55

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

查看更多
登录 后发表回答