Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
StudioScriptEditorColorCategories
Identifies visual element categories whose colors can be customized in the Roblox Studio Script Editor theme system. Each value is a distinct syntactic or UI region in the editor.
Items
| Name | Value | Description |
|---|---|---|
| Default | 0 | Fallback foreground color used for script text that does not match any more specific syntax category. |
| Operator | 1 | Color applied to operator tokens such as +, -, *, /, ==, and .. in scripts. |
| Number | 2 | Color applied to numeric literal tokens in scripts. |
| String | 3 | Color applied to string literal tokens, including quoted strings and long-string literals. |
| Comment | 4 | Color applied to comment tokens (single-line -- and block --[[ ]] comments) in scripts. |
| Keyword | 5 | Color applied to Luau reserved keywords such as if, then, else, do, end, return, and while. |
| Builtin | 6 | Color applied to Luau built-in functions and standard library identifiers in scripts. |
| Method | 7 | Color applied to method call identifiers in scripts. |
| Property | 8 | Color applied to property access identifiers (tokens following a . operator) in scripts. |
| Nil | 9 | Color applied to the nil literal token in scripts. |
| Bool | 10 | Foreground color used to highlight boolean literals (true and false) in scripts. |
| Function | 11 | Color applied to the function keyword token in function declarations. |
| Local | 12 | Color applied to the local keyword token in local variable and function declarations. |
| Self | 13 | Color applied to the self identifier token in method bodies. |
| LuauKeyword | 14 | Color applied to Luau-specific type annotation keywords such as type and typeof. |
| FunctionName | 15 | Color applied to the identifier that names a function in its declaration. |
| TODO | 16 | Color applied to TODO markers found inside comments in scripts. |
| Background | 17 | Main background color of the Script Editor canvas. |
| SelectionText | 18 | Foreground color for text within the currently selected range in the Script Editor. |
| SelectionBackground | 19 | Background highlight color for the currently selected text range in the Script Editor. |
| FindSelectionBackground | 20 | Background highlight color applied to text ranges matched by a Find or Replace operation. |
| MatchingWordBackground | 21 | Background highlight color applied to all occurrences of the word under the cursor when word-highlight is active. |
| Warning | 22 | Color used for warning-severity diagnostic markers and underlines in scripts. |
| Error | 23 | Color used for error-severity diagnostic markers and underlines in scripts. |
| Info | 24 | Color used for information-severity diagnostic markers in scripts. |
| Hint | 25 | Color used for hint-severity diagnostic markers in scripts. |
| Whitespace | 26 | Color used to render visible whitespace characters (spaces and tabs) when that display option is enabled. |
| ActiveLine | 27 | Background highlight color applied to the line that currently contains the text cursor. |
| DebuggerCurrentLine | 28 | Background highlight color for the line the debugger is currently paused on. |
| DebuggerErrorLine | 29 | Background highlight color for a line that caused a runtime error during a debugging session. |
| Ruler | 30 | Color of the vertical column ruler line drawn at the configured character-width limit in the Script Editor. |
| Bracket | 31 | Color applied to bracket characters such as (, ), [, ], {, and } in scripts. |
| Type | 32 | Color applied to Luau type name tokens in type annotations and declarations. |
| MenuPrimaryText | 33 | Primary text color for items listed in autocomplete and context-menu popups. |
| MenuSecondaryText | 34 | Secondary text color (for example, type annotations or documentation hints) in autocomplete popups. |
| MenuSelectedText | 35 | Text color of the currently highlighted item in autocomplete and context-menu popups. |
| MenuBackground | 36 | Background color for autocomplete and context-menu popups in the Script Editor. |
| MenuSelectedBackground | 37 | Background color of the currently highlighted item in autocomplete and context-menu popups. |
| MenuScrollbarBackground | 38 | Background color of the scrollbar track inside autocomplete and context-menu popups. |
| MenuScrollbarHandle | 39 | Color of the scrollbar thumb (handle) inside autocomplete and context-menu popups. |
| MenuBorder | 40 | Border color for autocomplete and context-menu popups in the Script Editor. |
| DocViewCodeBackground | 41 | Background color for inline code blocks rendered in the documentation viewer panel within Studio. |
| AICOOverlayText | 42 | Text color for labels displayed in the AI Code Overlay panel. |
| AICOOverlayButtonBackground | 43 | Background color for AI Code Overlay action buttons in their default (idle) state. |
| AICOOverlayButtonBackgroundHover | 44 | Background color for AI Code Overlay action buttons when the pointer hovers over them. |
| AICOOverlayButtonBackgroundPressed | 45 | Background color for AI Code Overlay action buttons while they are being pressed. |
| IndentationRuler | 46 | Color of the vertical guide lines drawn at each indentation level in the script editor gutter. |
Default
Fallback foreground color used for script text that does not match any more specific syntax category.
| Field | Value |
|---|---|
| value | 0 |
Operator
Color applied to operator tokens such as +, -, *, /, ==, and .. in scripts.
| Field | Value |
|---|---|
| value | 1 |
Number
Color applied to numeric literal tokens in scripts.
| Field | Value |
|---|---|
| value | 2 |
String
Color applied to string literal tokens, including quoted strings and long-string literals.
| Field | Value |
|---|---|
| value | 3 |
Comment
Color applied to comment tokens (single-line -- and block --[[ ]] comments) in scripts.
| Field | Value |
|---|---|
| value | 4 |
Keyword
Color applied to Luau reserved keywords such as if, then, else, do, end, return, and while.
| Field | Value |
|---|---|
| value | 5 |
Builtin
Color applied to Luau built-in functions and standard library identifiers in scripts.
| Field | Value |
|---|---|
| value | 6 |
Method
Color applied to method call identifiers in scripts.
| Field | Value |
|---|---|
| value | 7 |
Property
Color applied to property access identifiers (tokens following a . operator) in scripts.
| Field | Value |
|---|---|
| value | 8 |
Nil
Color applied to the nil literal token in scripts.
| Field | Value |
|---|---|
| value | 9 |
Bool
Foreground color used to highlight boolean literals (true and false) in scripts.
| Field | Value |
|---|---|
| value | 10 |
Function
Color applied to the function keyword token in function declarations.
| Field | Value |
|---|---|
| value | 11 |
Local
Color applied to the local keyword token in local variable and function declarations.
| Field | Value |
|---|---|
| value | 12 |
Self
Color applied to the self identifier token in method bodies.
| Field | Value |
|---|---|
| value | 13 |
LuauKeyword
Color applied to Luau-specific type annotation keywords such as type and typeof.
| Field | Value |
|---|---|
| value | 14 |
FunctionName
Color applied to the identifier that names a function in its declaration.
| Field | Value |
|---|---|
| value | 15 |
TODO
Color applied to TODO markers found inside comments in scripts.
| Field | Value |
|---|---|
| value | 16 |
Background
Main background color of the Script Editor canvas.
| Field | Value |
|---|---|
| value | 17 |
SelectionText
Foreground color for text within the currently selected range in the Script Editor.
| Field | Value |
|---|---|
| value | 18 |
SelectionBackground
Background highlight color for the currently selected text range in the Script Editor.
| Field | Value |
|---|---|
| value | 19 |
FindSelectionBackground
Background highlight color applied to text ranges matched by a Find or Replace operation.
| Field | Value |
|---|---|
| value | 20 |
MatchingWordBackground
Background highlight color applied to all occurrences of the word under the cursor when word-highlight is active.
| Field | Value |
|---|---|
| value | 21 |
Warning
Color used for warning-severity diagnostic markers and underlines in scripts.
| Field | Value |
|---|---|
| value | 22 |
Error
Color used for error-severity diagnostic markers and underlines in scripts.
| Field | Value |
|---|---|
| value | 23 |
Info
Color used for information-severity diagnostic markers in scripts.
| Field | Value |
|---|---|
| value | 24 |
Hint
Color used for hint-severity diagnostic markers in scripts.
| Field | Value |
|---|---|
| value | 25 |
Whitespace
Color used to render visible whitespace characters (spaces and tabs) when that display option is enabled.
| Field | Value |
|---|---|
| value | 26 |
ActiveLine
Background highlight color applied to the line that currently contains the text cursor.
| Field | Value |
|---|---|
| value | 27 |
DebuggerCurrentLine
Background highlight color for the line the debugger is currently paused on.
| Field | Value |
|---|---|
| value | 28 |
DebuggerErrorLine
Background highlight color for a line that caused a runtime error during a debugging session.
| Field | Value |
|---|---|
| value | 29 |
Ruler
Color of the vertical column ruler line drawn at the configured character-width limit in the Script Editor.
| Field | Value |
|---|---|
| value | 30 |
Bracket
Color applied to bracket characters such as (, ), [, ], {, and } in scripts.
| Field | Value |
|---|---|
| value | 31 |
Type
Color applied to Luau type name tokens in type annotations and declarations.
| Field | Value |
|---|---|
| value | 32 |
MenuPrimaryText
Primary text color for items listed in autocomplete and context-menu popups.
| Field | Value |
|---|---|
| value | 33 |
MenuSecondaryText
Secondary text color (for example, type annotations or documentation hints) in autocomplete popups.
| Field | Value |
|---|---|
| value | 34 |
MenuSelectedText
Text color of the currently highlighted item in autocomplete and context-menu popups.
| Field | Value |
|---|---|
| value | 35 |
MenuBackground
Background color for autocomplete and context-menu popups in the Script Editor.
| Field | Value |
|---|---|
| value | 36 |
MenuSelectedBackground
Background color of the currently highlighted item in autocomplete and context-menu popups.
| Field | Value |
|---|---|
| value | 37 |
MenuScrollbarBackground
Background color of the scrollbar track inside autocomplete and context-menu popups.
| Field | Value |
|---|---|
| value | 38 |
MenuScrollbarHandle
Color of the scrollbar thumb (handle) inside autocomplete and context-menu popups.
| Field | Value |
|---|---|
| value | 39 |
MenuBorder
Border color for autocomplete and context-menu popups in the Script Editor.
| Field | Value |
|---|---|
| value | 40 |
DocViewCodeBackground
Background color for inline code blocks rendered in the documentation viewer panel within Studio.
| Field | Value |
|---|---|
| value | 41 |
AICOOverlayText
Text color for labels displayed in the AI Code Overlay panel.
| Field | Value |
|---|---|
| value | 42 |
AICOOverlayButtonBackground
Background color for AI Code Overlay action buttons in their default (idle) state.
| Field | Value |
|---|---|
| value | 43 |
AICOOverlayButtonBackgroundHover
Background color for AI Code Overlay action buttons when the pointer hovers over them.
| Field | Value |
|---|---|
| value | 44 |
AICOOverlayButtonBackgroundPressed
Background color for AI Code Overlay action buttons while they are being pressed.
| Field | Value |
|---|---|
| value | 45 |
IndentationRuler
Color of the vertical guide lines drawn at each indentation level in the script editor gutter.
| Field | Value |
|---|---|
| value | 46 |