Theme Schema
This page documents the theme keys currently parsed by rememberEditorTheme().
How Theme Parsing Works
rememberEditorTheme()starts from a built-in dark or light fallback themethemeContentis parsed in the Compose layer- matching keys override fallback values
- font settings are merged from
EditorFontConfig textStylescan be extended through named style aliases
Color Keys
The following top-level color keys are supported:
backgroundColortextColorcursorColorselectionColorlineNumberColorcurrentLineNumberColorcurrentLineColorguideColorseparatorLineColorsplitLineColorscrollbarTrackColorscrollbarThumbColorscrollbarThumbActiveColorcompositionUnderlineColorinlayHintBackgroundColorinlayHintTextColorfoldPlaceholderBackgroundColorfoldPlaceholderTextColorphantomTextColorinlayHintIconColordiagnosticErrorColordiagnosticWarningColordiagnosticInfoColordiagnosticHintColorlinkedEditingActiveColorlinkedEditingInactiveColorbracketHighlightBorderColorbracketHighlightBackgroundColorgutterBackgroundColor
Text Style Block
The textStyles object lets you define syntax/semantic style aliases.
Supported aliases include:
keywordstringcommentnumberbuiltintypeclassinterfaceenumstructfunctionmethodvariablepropertyparameterconstantfieldnamespacemoduleenum_memberoperatorpunctuationannotationpreprocessor
Minimal Example
json
{
"backgroundColor": "#1B1E24",
"textColor": "#D7DEE9",
"cursorColor": "#8FB8FF",
"phantomTextColor": "#8AA3B5D1",
"textStyles": {
"keyword": {
"color": "#7AA2F7",
"fontStyle": "bold"
},
"comment": {
"color": "#7A8294",
"fontStyle": "italic"
}
}
}Value Format
Color values can be written as:
#RRGGBB#AARRGGBB- signed integer values
Font Style Notes
Inside textStyles, supported font style flags are mapped by parser logic. Typical values are:
bolditalic
What Is Not Theme Schema
Theme content does not replace runtime behavior settings such as:
- wrap mode
- read-only mode
- gutter sticky behavior
- current line render mode
Use EditorSettings for those.