Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to edit Sublime Text 3 Soda Theme

I installed the Soda Theme on Sublime Text 3 on OSX and I was wondering where are the actual files and folder to the theme that way I could look at the theme file and make my own edits to it, along with I would like to adjust a few of the images used in the theme.

On the Git documents it says if you are to manually install Soda on Sublime you place the soda folder in the package directory, although when I install Soda via Control Package I don't see the Soda theme in package directory.

like image 667
Greenhoe Avatar asked Dec 25 '13 02:12

Greenhoe


People also ask

How do I customize my theme in Sublime Text 3?

Sublime Text 3 has a number of pre-installed themes that can be enabled by clicking on “Preferences” in the top bar, then clicking “Color Scheme”. Click on “Preferences” in the top bar, then click “Color Scheme”. Next, a box will appear at the top of the window, with a few options.

How do I customize my sublime color scheme?

To create a user-specific customization of a color scheme, create a new file with the same filename as the color scheme, but save it in the Packages/User/ directory. For example, to customize the default Monokai color scheme, create a file named Packages/User/Monokai. sublime-color-scheme.

How do I create my own sublime theme?

tmTheme file in there. Trigger the Command Palette by pressing Ctrl+Shift+P (on Windows) or Command+Shift+P (on Mac) and search for UI. Your top 2 results should be UI: Select Theme and UI: Select Color Scheme. Choose UI: Select Color Scheme and you should be able to find your custom theme as one of the options.


2 Answers

Unless explicitly designated to not use it, most packages for Sublime Text 3 use the .sublime-package format (essentially a zip file). These packages are stored one directory up from the Packages folder, in Installed Packages. If you want to work with them, I highly recommend getting the PackageResourceViewer plugin by @skuroda. Install it via Package Control.

Once installed, open the command palette with P and type prv to get the PackageResourceViewer options. Choose Extract Package, navigate down to Theme - Soda, hit Enter, and you're all set - the directory Packages/Theme - Soda should now exist with all the files from the Github repo in it. The .sublime-theme files will probably be the ones you're most interested in for now.

Have fun!

like image 126
MattDMo Avatar answered Oct 21 '22 09:10

MattDMo


This answer is similar to the accepted solution, but with little more steps if it is not working out of the box. This might help someone if they are stuck with an issue which I have described in one of the below steps.

  1. install PackageResourceViewer using Package Control

  2. Go to Preferences->Package Settings->PackageResourceViewer->Setting-User. copy paste the following 3 lines,save and close it.

    {
    "single_command": false
    }
    
  3. press Ctrl+shift+p to open Package Control and select PackageResourceViewer: Edit Package Resource from the list. Find the package you want to edit and click on it. In my case, I want to edit a theme which is installed via ColorSublime Package, So I selected that theme.

  4. Now you will see that the selected package file opened in the sublime editor itself. Edit it as you want and save it and close it. The changes should reflect in sublime editor. In my case, since I changed the theme I need reload it. So I continued with the following steps too.
  5. go to view menu select 'Show Console' and run following command to reset the theme.

    view.settings().erase("color_scheme")
    
  6. open Preferences->Settings and delete the "color_scheme" attribute and its value from the settings file and close it. Again select the color theme from Preferences->Color scheme. Now you should able to see the changes reflected which you made in the theme package.

Hope this helps!

like image 36
Elangovan Manickam Avatar answered Oct 21 '22 10:10

Elangovan Manickam