ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Skins

by deathaxe ST3

Easily switch theme and color scheme of Sublime Text with only one command.

Labels themes, utilities

Details

Installs

  • Total 10K
  • Win 4K
  • OS X 3K
  • Linux 2K
Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9
Windows 19 13 19 21 21 25 16 22 14 14 21 30 18 19 20 6 16 14 20 12 20 16 20 17 10 19 13 15 17 15 13 9 13 16 16 34 8 22 19 21 19 13 19 12 8 14
OS X 10 10 4 8 6 9 9 11 7 7 13 8 9 9 8 7 8 7 16 9 8 11 7 4 12 8 15 9 8 8 9 18 8 5 18 13 8 9 9 14 13 15 7 7 11 7
Linux 14 5 7 2 10 9 8 5 12 4 7 5 6 10 9 7 8 3 8 11 11 10 11 6 11 6 9 9 5 3 4 7 4 7 12 3 5 12 4 9 13 5 8 8 5 14

Readme

Source
raw.​githubusercontent.​com

Skins

License Package Control

Skins gives users the ability to change their current Sublime Text color scheme and theme with a single command. When a skin is selected, a certain set of settings is applied to Sublime Text. Skins can be provided in theme packages such as Boxy Theme or they can be created by users themselves by saving the current settings to a new User Skin.

screenshot

End Users

General Usage

  1. Open the Command Palette
  2. Type one of the following three commands:
    • UI: Select Skin
    • UI: Save Skin
    • UI: Delete Skin.
Keyboard shortcuts

To quickly open the UI: Select Skin menu use:

  • Ctrl+F12 on Windows / Linux
  • Super+F12 on macOS

Settings

By default the following settings are stored by Save User Skin

  • color_scheme
  • theme
  • font_face
  • font_size

To edit the settings

  1. Open the Command Palette
  2. Type Preferences: Skins Settings

The settings are stored in Packages/User/Skins.sublime-settings.

Example

"skin-template":
{
    // List of settings to load from / save to Preferences.sublime-settings
    "Preferences":
    [
        "color_scheme",
        "theme",
        "font_face",
        "font_size"
    ],
    // List of settings to load from / save to SublimeLinter.sublime-settings
    "SublimeLinter":
    {
        "user":
        [
            "error_color",
            "gutter_theme",
            "warning_color"
        ]
    }
}

Theme Developers

General

Skins parses all *.skins files in all packages. They are expected to store a collection of settings for sublime text and other packages. More than one skins file can exist in a package. The name of the file does not matter, but the names of the skins inside must be unique per package. The quick panel will show these names. The Package providing it is displayed in the second row as a kind of description.

File Format

{
    // skin
    "Boxy Tomorrow (Green)": {
        // Packages/User/Preferences.sublime-settings
        "Preferences": {
            "color_scheme": "Packages/Boxy Theme/schemes/Boxy Tomorrow.tmTheme",
            "theme": "Boxy Tomorrow.sublime-theme",
            "theme_accent_green" : true,
            "theme_accent_orange": null,
            "theme_accent_purple": null
        },
        // Packages/User/SublimeLinter.sublime-settings
        "SublimeLinter": {
            "user": {
                // ...
            }
        }
    },

    // skin
    "Monokai 2": {
        // ...
    },

    // ...
}

Each child node of a skin represents the settings to be written to a Packages/User/*.sublime-settings file. Therefore settings can be provided not only for Sublime Text but for any installed package such as SublimeLinter. A skin must at least contain the Preferneces node with color_scheme and theme settings to be valid but may include any other setting accepted by Sublime Text.

Settings with null value, are deleted in the sublime-settings files.

Commands

Skins exports the following commands to directly interact with all available skins. They can be used to create key bindings or command shortcuts to the most frequent used skins.

Set Skins
"command": "set_skin",
"args": { "package": "Skins", "name": "Monokai" }
Save Skins

The following example will directly save the current look and feel as Preset 01 in the Packages/User/Saved Skins.skins file.

"command": "save_user_skin",
"args": { "name": "Preset 01" }
Delete Skins

The following example will directly delete Preset 01 from the Packages/User/Saved Skins.skins file.

"command": "delete_user_skin",
"args": { "name": "Preset 01" }

Inspired by