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

后端 未结 6 1710
慢半拍i
慢半拍i 2020-12-07 09:22

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. Whe

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-07 09:45

    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

提交回复
热议问题