SublimeColorSchemeConverter
Converts sublime-color-scheme json files into tmTheme plist files.
Install / Use
/learn @dhelonious/SublimeColorSchemeConverterREADME
Sublime Color Scheme Converter
Note: Not all features of the sublime-color-scheme format are supported. See the list of supported features below.
Simple Sublime Text 3 plugin to convert the sublime-color-scheme json format to tmTheme plist format. While the configuration of json files is far more convenient, some plugins rely on a tmTheme-formatted color scheme.
Supported features (see documentation):
- Variables
- 6-digit Hex RGB and 8-digit Hex RGBA
- RGB, RGBA, HSL, and HSLA functional notations
- CSS color names
- alpha() adjuster
- Replace underscore by uppercase letters
- Scopes in hashed syntax highlighting is recognized and converted to lists
The plugin tries to replace all patterns, where any color is recognized. Therefore color(#000000 blend(#ffffff 50%)) is replaced by #000000, since the blend() adjuster syntax is not supported.
Caveats:
The sublime-color-scheme must not contain comments (see json specs).
Example:
theme.sublime-color-scheme:
{
"name": "Test Theme",
"author": "Me",
"variables": {
"white": "#ffffff",
"black": "rgb(0, 0, 0)",
"gray": "#000000aa"
},
"globals": {
"foreground": "var(black)",
"background": "#ffffff",
"invisibles": "color(var(white) alpha(0.2))",
"accent": "hsl(0, 100%, 50%)",
"minimap_border": "color(#000000, alpha(1))"
},
"rules": [
{
"name": "Rule",
"scope": "rule",
"foreground": "var(black)",
"background": "var(white)",
"font_style": "italic"
}
]
}
theme.tmTheme:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Me</string>
<key>name</key>
<string>Test Theme</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>accent</key>
<string>#ff0000</string>
<key>invisibles</key>
<string>#ffffff33</string>
<key>foreground</key>
<string>#000000</string>
<key>background</key>
<string>#ffffff</string>
<key>minimapBorder</key>
<string>#000000ff</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>rule</string>
<key>name</key>
<string>Rule</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#000000</string>
<key>fontStyle</key>
<string>italic</string>
<key>background</key>
<string>#ffffff</string>
</dict>
</dict>
</array>
</dict>
</plist>
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
