Themes
Syncline Editor ships with 6 polished built-in themes and a full API for registering and switching your own.
Built-in Themes
VR Dark
Deep charcoal background with violet accents — the default Syncline theme.
VS Code Dark+
Matches Visual Studio Code's shipped Dark+ colour theme exactly.
Monokai
The iconic bright palette from Sublime Text.
Dracula
Dark theme with a purple palette — a fan favourite.
GitHub Light
GitHub's official light theme as used on github.com code views.
Solarized Light
Ethan Schoonover's classic low-contrast light palette.
Switching Themes
Use editor.setTheme(id) to switch at any time. The change applies instantly — no flicker, no repaint loop:
Custom Themes
Define a ThemeDefinition object and register it once with editor.registerTheme(). The theme is then available by its id across all editor instances:
Token Colour Overrides
For lightweight adjustments — changing a handful of colours without writing a full theme — pass a tokenColors map:
TokenColors Keys
| Key | Description |
|---|---|
keyword | Language keywords — if, return, const… |
string | String and template literals. |
number | Numeric literals. |
comment | Line and block comments. |
function | Function and method identifiers. |
type | Type names, interfaces, classes. |
variable | Variable identifiers. |
operator | Operators and punctuation. |
property | Object property accesses. |
tag | HTML/JSX tag names. |
attribute | HTML/JSX attribute names. |
namespace | Module / namespace identifiers. |
decorator | Decorator expressions. |
constant | Compile-time constant identifiers. |
© 2026 Syncline Editor. All rights reserved.