8 min read

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

NameValueDescription
Default0Fallback foreground color used for script text that does not match any more specific syntax category.
Operator1Color applied to operator tokens such as +, -, *, /, ==, and .. in scripts.
Number2Color applied to numeric literal tokens in scripts.
String3Color applied to string literal tokens, including quoted strings and long-string literals.
Comment4Color applied to comment tokens (single-line -- and block --[[ ]] comments) in scripts.
Keyword5Color applied to Luau reserved keywords such as if, then, else, do, end, return, and while.
Builtin6Color applied to Luau built-in functions and standard library identifiers in scripts.
Method7Color applied to method call identifiers in scripts.
Property8Color applied to property access identifiers (tokens following a . operator) in scripts.
Nil9Color applied to the nil literal token in scripts.
Bool10Foreground color used to highlight boolean literals (true and false) in scripts.
Function11Color applied to the function keyword token in function declarations.
Local12Color applied to the local keyword token in local variable and function declarations.
Self13Color applied to the self identifier token in method bodies.
LuauKeyword14Color applied to Luau-specific type annotation keywords such as type and typeof.
FunctionName15Color applied to the identifier that names a function in its declaration.
TODO16Color applied to TODO markers found inside comments in scripts.
Background17Main background color of the Script Editor canvas.
SelectionText18Foreground color for text within the currently selected range in the Script Editor.
SelectionBackground19Background highlight color for the currently selected text range in the Script Editor.
FindSelectionBackground20Background highlight color applied to text ranges matched by a Find or Replace operation.
MatchingWordBackground21Background highlight color applied to all occurrences of the word under the cursor when word-highlight is active.
Warning22Color used for warning-severity diagnostic markers and underlines in scripts.
Error23Color used for error-severity diagnostic markers and underlines in scripts.
Info24Color used for information-severity diagnostic markers in scripts.
Hint25Color used for hint-severity diagnostic markers in scripts.
Whitespace26Color used to render visible whitespace characters (spaces and tabs) when that display option is enabled.
ActiveLine27Background highlight color applied to the line that currently contains the text cursor.
DebuggerCurrentLine28Background highlight color for the line the debugger is currently paused on.
DebuggerErrorLine29Background highlight color for a line that caused a runtime error during a debugging session.
Ruler30Color of the vertical column ruler line drawn at the configured character-width limit in the Script Editor.
Bracket31Color applied to bracket characters such as (, ), [, ], {, and } in scripts.
Type32Color applied to Luau type name tokens in type annotations and declarations.
MenuPrimaryText33Primary text color for items listed in autocomplete and context-menu popups.
MenuSecondaryText34Secondary text color (for example, type annotations or documentation hints) in autocomplete popups.
MenuSelectedText35Text color of the currently highlighted item in autocomplete and context-menu popups.
MenuBackground36Background color for autocomplete and context-menu popups in the Script Editor.
MenuSelectedBackground37Background color of the currently highlighted item in autocomplete and context-menu popups.
MenuScrollbarBackground38Background color of the scrollbar track inside autocomplete and context-menu popups.
MenuScrollbarHandle39Color of the scrollbar thumb (handle) inside autocomplete and context-menu popups.
MenuBorder40Border color for autocomplete and context-menu popups in the Script Editor.
DocViewCodeBackground41Background color for inline code blocks rendered in the documentation viewer panel within Studio.
AICOOverlayText42Text color for labels displayed in the AI Code Overlay panel.
AICOOverlayButtonBackground43Background color for AI Code Overlay action buttons in their default (idle) state.
AICOOverlayButtonBackgroundHover44Background color for AI Code Overlay action buttons when the pointer hovers over them.
AICOOverlayButtonBackgroundPressed45Background color for AI Code Overlay action buttons while they are being pressed.
IndentationRuler46Color 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.

FieldValue
value0

Operator

Color applied to operator tokens such as +, -, *, /, ==, and .. in scripts.

FieldValue
value1

Number

Color applied to numeric literal tokens in scripts.

FieldValue
value2

String

Color applied to string literal tokens, including quoted strings and long-string literals.

FieldValue
value3

Comment

Color applied to comment tokens (single-line -- and block --[[ ]] comments) in scripts.

FieldValue
value4

Keyword

Color applied to Luau reserved keywords such as if, then, else, do, end, return, and while.

FieldValue
value5

Builtin

Color applied to Luau built-in functions and standard library identifiers in scripts.

FieldValue
value6

Method

Color applied to method call identifiers in scripts.

FieldValue
value7

Property

Color applied to property access identifiers (tokens following a . operator) in scripts.

FieldValue
value8

Nil

Color applied to the nil literal token in scripts.

FieldValue
value9

Bool

Foreground color used to highlight boolean literals (true and false) in scripts.

FieldValue
value10

Function

Color applied to the function keyword token in function declarations.

FieldValue
value11

Local

Color applied to the local keyword token in local variable and function declarations.

FieldValue
value12

Self

Color applied to the self identifier token in method bodies.

FieldValue
value13

LuauKeyword

Color applied to Luau-specific type annotation keywords such as type and typeof.

FieldValue
value14

FunctionName

Color applied to the identifier that names a function in its declaration.

FieldValue
value15

TODO

Color applied to TODO markers found inside comments in scripts.

FieldValue
value16

Background

Main background color of the Script Editor canvas.

FieldValue
value17

SelectionText

Foreground color for text within the currently selected range in the Script Editor.

FieldValue
value18

SelectionBackground

Background highlight color for the currently selected text range in the Script Editor.

FieldValue
value19

FindSelectionBackground

Background highlight color applied to text ranges matched by a Find or Replace operation.

FieldValue
value20

MatchingWordBackground

Background highlight color applied to all occurrences of the word under the cursor when word-highlight is active.

FieldValue
value21

Warning

Color used for warning-severity diagnostic markers and underlines in scripts.

FieldValue
value22

Error

Color used for error-severity diagnostic markers and underlines in scripts.

FieldValue
value23

Info

Color used for information-severity diagnostic markers in scripts.

FieldValue
value24

Hint

Color used for hint-severity diagnostic markers in scripts.

FieldValue
value25

Whitespace

Color used to render visible whitespace characters (spaces and tabs) when that display option is enabled.

FieldValue
value26

ActiveLine

Background highlight color applied to the line that currently contains the text cursor.

FieldValue
value27

DebuggerCurrentLine

Background highlight color for the line the debugger is currently paused on.

FieldValue
value28

DebuggerErrorLine

Background highlight color for a line that caused a runtime error during a debugging session.

FieldValue
value29

Ruler

Color of the vertical column ruler line drawn at the configured character-width limit in the Script Editor.

FieldValue
value30

Bracket

Color applied to bracket characters such as (, ), [, ], {, and } in scripts.

FieldValue
value31

Type

Color applied to Luau type name tokens in type annotations and declarations.

FieldValue
value32

Primary text color for items listed in autocomplete and context-menu popups.

FieldValue
value33

Secondary text color (for example, type annotations or documentation hints) in autocomplete popups.

FieldValue
value34

Text color of the currently highlighted item in autocomplete and context-menu popups.

FieldValue
value35

Background color for autocomplete and context-menu popups in the Script Editor.

FieldValue
value36

Background color of the currently highlighted item in autocomplete and context-menu popups.

FieldValue
value37

Background color of the scrollbar track inside autocomplete and context-menu popups.

FieldValue
value38

Color of the scrollbar thumb (handle) inside autocomplete and context-menu popups.

FieldValue
value39

Border color for autocomplete and context-menu popups in the Script Editor.

FieldValue
value40

DocViewCodeBackground

Background color for inline code blocks rendered in the documentation viewer panel within Studio.

FieldValue
value41

AICOOverlayText

Text color for labels displayed in the AI Code Overlay panel.

FieldValue
value42

AICOOverlayButtonBackground

Background color for AI Code Overlay action buttons in their default (idle) state.

FieldValue
value43

AICOOverlayButtonBackgroundHover

Background color for AI Code Overlay action buttons when the pointer hovers over them.

FieldValue
value44

AICOOverlayButtonBackgroundPressed

Background color for AI Code Overlay action buttons while they are being pressed.

FieldValue
value45

IndentationRuler

Color of the vertical guide lines drawn at each indentation level in the script editor gutter.

FieldValue
value46