The Theme object
Information about the current app theme.
Properties
All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
automatic
A list of default colors for automatic assignment to options.
Type | array |
Format | Color |
Array values | string |
Mutability | Read-only |
Examples
borderRadius
The radius of the border.
Type | string | ||||
Format | Plain Text | ||||
Mutability |
|
Examples
Examples
danger
Default color to indicate destructive actions, errors, and negative trends.
Type | string |
Format | Color |
Mutability | Read-only |
Examples
Object Properties
Examples
highlight
Default color to highlight matched text in searches.
Type | string |
Format | Color |
Mutability | Read-only |
Examples
Examples
Object Properties
Object Properties
Examples
Examples
mode
The theme mode.
Type | string | ||||||||||
Format | Plain Text | ||||||||||
Mutability | Read-only | ||||||||||
Allowed Values |
|
Examples
Examples
secondary
Default secondary accent color that is optionally available. Falls back to primary
if not set.
Type | string |
Format | Color |
Mutability | Read-only |
Examples
success
Default color to indicate successful actions, completion, and positive trends.
Type | string |
Format | Color |
Mutability | Read-only |
Examples
surfacePrimary
Default background color for containers and tables.
Type | string |
Format | Color |
Mutability | Read-only |
Examples
surfaceSecondary
Secondary background color for containers and tables.
Type | string |
Format | Color |
Mutability | Read-only |
Examples
tertiary
Default tertiary accent color that is optionally available. Falls back to secondary
if not set.
Type | string |
Format | Color |
Mutability | Read-only |
Examples
Examples
Methods
JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.