The Theme object
Information about the current app theme.
Properties
All properties for Theme 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.
borderRadius
The border radius.
canvas
Default background color of the app.
danger
Default color to indicate destructive actions, errors, and negative trends.
defaultFont
The typography token used by most components.
Properties
fontWeight
The font weight.
Values
100 (Thin) | 100 (Thin) |
200 (Extra Light) | 200 (Extra Light) |
300 (Light) | 300 (Light) |
400 (Normal) | 400 (Normal) |
500 (Medium) | 500 (Medium) |
600 (Semi Bold) | 600 (Semi Bold) |
700 (Bold) | 700 (Bold) |
800 (Extra Bold) | 800 (Extra Bold) |
900 (Black) | 900 (Black) |
Properties
fontWeight
The font weight.
Values
100 (Thin) | 100 (Thin) |
200 (Extra Light) | 200 (Extra Light) |
300 (Light) | 300 (Light) |
400 (Normal) | 400 (Normal) |
500 (Medium) | 500 (Medium) |
600 (Semi Bold) | 600 (Semi Bold) |
700 (Bold) | 700 (Bold) |
800 (Extra Bold) | 800 (Extra Bold) |
900 (Black) | 900 (Black) |
Properties
fontWeight
The font weight.
Values
100 (Thin) | 100 (Thin) |
200 (Extra Light) | 200 (Extra Light) |
300 (Light) | 300 (Light) |
400 (Normal) | 400 (Normal) |
500 (Medium) | 500 (Medium) |
600 (Semi Bold) | 600 (Semi Bold) |
700 (Bold) | 700 (Bold) |
800 (Extra Bold) | 800 (Extra Bold) |
900 (Black) | 900 (Black) |
Properties
fontWeight
The font weight.
Values
100 (Thin) | 100 (Thin) |
200 (Extra Light) | 200 (Extra Light) |
300 (Light) | 300 (Light) |
400 (Normal) | 400 (Normal) |
500 (Medium) | 500 (Medium) |
600 (Semi Bold) | 600 (Semi Bold) |
700 (Bold) | 700 (Bold) |
800 (Extra Bold) | 800 (Extra Bold) |
900 (Black) | 900 (Black) |
Properties
fontWeight
The font weight.
Values
100 (Thin) | 100 (Thin) |
200 (Extra Light) | 200 (Extra Light) |
300 (Light) | 300 (Light) |
400 (Normal) | 400 (Normal) |
500 (Medium) | 500 (Medium) |
600 (Semi Bold) | 600 (Semi Bold) |
700 (Bold) | 700 (Bold) |
800 (Extra Bold) | 800 (Extra Bold) |
900 (Black) | 900 (Black) |
Properties
fontWeight
The font weight.
Values
100 (Thin) | 100 (Thin) |
200 (Extra Light) | 200 (Extra Light) |
300 (Light) | 300 (Light) |
400 (Normal) | 400 (Normal) |
500 (Medium) | 500 (Medium) |
600 (Semi Bold) | 600 (Semi Bold) |
700 (Bold) | 700 (Bold) |
800 (Extra Bold) | 800 (Extra Bold) |
900 (Black) | 900 (Black) |
Properties
fontWeight
The font weight.
Values
100 (Thin) | 100 (Thin) |
200 (Extra Light) | 200 (Extra Light) |
300 (Light) | 300 (Light) |
400 (Normal) | 400 (Normal) |
500 (Medium) | 500 (Medium) |
600 (Semi Bold) | 600 (Semi Bold) |
700 (Bold) | 700 (Bold) |
800 (Extra Bold) | 800 (Extra Bold) |
900 (Black) | 900 (Black) |
highlight
Default color to highlight matched text in searches.
info
Default color to indicate neutral information.
labelEmphasizedFont
The typography token used for bolded text in components like Buttons and Input Labels.
Properties
fontWeight
The font weight.
Values
100 (Thin) | 100 (Thin) |
200 (Extra Light) | 200 (Extra Light) |
300 (Light) | 300 (Light) |
400 (Normal) | 400 (Normal) |
500 (Medium) | 500 (Medium) |
600 (Semi Bold) | 600 (Semi Bold) |
700 (Bold) | 700 (Bold) |
800 (Extra Bold) | 800 (Extra Bold) |
900 (Black) | 900 (Black) |
The typography token used for text with medium weight in components like Tags and Tabs.
Properties
fontWeight
The font weight.
Values
100 (Thin) | 100 (Thin) |
200 (Extra Light) | 200 (Extra Light) |
300 (Light) | 300 (Light) |
400 (Normal) | 400 (Normal) |
500 (Medium) | 500 (Medium) |
600 (Semi Bold) | 600 (Semi Bold) |
700 (Bold) | 700 (Bold) |
800 (Extra Bold) | 800 (Extra Bold) |
900 (Black) | 900 (Black) |
primary
The default accent color.
secondary
Default secondary accent color that is optionally available. Falls back to primary
if not set.
success
Default color to indicate successful actions, completion, and positive trends.
surfacePrimary
Default background color for containers and tables.
surfaceSecondary
Secondary background color for inputs and controls.
tertiary
Default tertiary accent color that is optionally available. Falls back to secondary
if not set.
warning
Default color to indicate warnings.
Methods
JavaScript API methods for interacting with Methods. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
setMode
Select the theme mode.