Skip to main content

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

string[]

A list of default colors for automatic assignment to options.


canvas

string

Default background color of the app.


danger

string

Default color to indicate destructive actions, errors, and negative trends.


highlight

string

Default color to highlight matched text in searches.


info

string

Default color to indicate neutral information.


primary

string

The default accent color.


secondary

string

Default secondary accent color that is optionally available. Falls back to primary if not set.


success

string

Default color to indicate successful actions, completion, and positive trends.


surfacePrimary

string

Default background color for containers and tables.


tertiary

string

Default tertiary accent color that is optionally available. Falls back to secondary if not set.


warning

string

Default color to indicate warnings.