Skip to main content

The Theme object

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
Configurability Read-only
Defaultnull
Examples
false#FF5733
false#33FF57
false#3357FF
false#FF33A1
false#A133FF
false#FF33D4
false#33FFD4

borderRadius

The radius of the border.

Type string
Format Plain Text
Configurability Inspector > Appearance > Styles > Border radius
Defaultnull
Examples
false"4px"

canvas

Default background color of the app.

Type string
Format Color
Configurability Read-only
Defaultnull
Examples
false"#ffffff"

danger

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

Type string
Format Color
Configurability Read-only
Defaultnull
Examples
false"#ff0000"

defaultFont

The default font.

Type object
Configurability Read-only
Defaultnull
Object Properties

name

The font family.

Type string
Format Plain Text
Configurability Read-only
Defaultnull
Examples
false"Sohne, -apple-system"

source

(No description available)

Type unknown
Configurability Read-only
Defaultnull


h1Font

The H1 font.

Type object
Configurability Read-only
Defaultnull
Object Properties

fontWeight

The numeric font weight.

Type string
Configurability Read-only
Defaultnull
Examples
false"700"

fontSize

The font size.

Type string
Configurability Read-only
Defaultnull
Examples
false"36px"

Examples
false{
"fontWeight": "700",
"fontSize": "36px"
}

h2Font

The H2 font.

Type object
Configurability Read-only
Defaultnull
Object Properties

fontWeight

The numeric font weight.

Type string
Configurability Read-only
Defaultnull
Examples
false"700"

fontSize

The font size.

Type string
Configurability Read-only
Defaultnull
Examples
false"36px"

Examples
false{
"fontWeight": "700",
"fontSize": "28px"
}

h3Font

The H3 font.

Type object
Configurability Read-only
Defaultnull
Object Properties

fontWeight

The numeric font weight.

Type string
Configurability Read-only
Defaultnull
Examples
false"700"

fontSize

The font size.

Type string
Configurability Read-only
Defaultnull
Examples
false"36px"

Examples
false{
"fontWeight": "700",
"fontSize": "24px"
}

h4Font

The H4 font.

Type object
Configurability Read-only
Defaultnull
Object Properties

fontWeight

The numeric font weight.

Type string
Configurability Read-only
Defaultnull
Examples
false"700"

fontSize

The font size.

Type string
Configurability Read-only
Defaultnull
Examples
false"36px"

Examples
false{
"fontWeight": "700",
"fontSize": "18px"
}

h5Font

The H5 font.

Type object
Configurability Read-only
Defaultnull
Object Properties

fontWeight

The numeric font weight.

Type string
Configurability Read-only
Defaultnull
Examples
false"700"

fontSize

The font size.

Type string
Configurability Read-only
Defaultnull
Examples
false"36px"

Examples
false{
"fontWeight": "700",
"fontSize": "16px"
}

h6Font

The H6 font.

Type object
Configurability Read-only
Defaultnull
Object Properties

fontWeight

The numeric font weight.

Type string
Configurability Read-only
Defaultnull
Examples
false"700"

fontSize

The font size.

Type string
Configurability Read-only
Defaultnull
Examples
false"36px"

Examples
false{
"fontWeight": "700",
"fontSize": "14px"
}

highElevation

High elevation shadow.

Type string
Format CSS
Configurability Read-only
Defaultnull
Examples
false"0 4px 16px 0 rgba(0, 0, 0, 0.12), 0 16px 32px 0 rgba(55, 55, 55, 0.08)"

highlight

Default color to highlight matched text in searches.

Type string
Format Color
Configurability Read-only
Defaultnull
Examples
false"#FF0000"

info

Default color to indicate neutral information.

Type string
Format Color
Configurability Read-only
Defaultnull
Examples
false"#00BFFF"

labelEmphasizedFont

The emphasized label font.

Type object
Configurability Read-only
Defaultnull
Object Properties

fontWeight

The numeric font weight.

Type string
Configurability Read-only
Defaultnull
Examples
false"700"

name

The font family.

Type string
Format Plain Text
Configurability Read-only
Defaultnull
Examples
false"Sohne, -apple-system"

source

(No description available)

Type unknown
Configurability Read-only
Defaultnull


labelFont

The label font.

Type object
Configurability Read-only
Defaultnull
Object Properties

fontWeight

The numeric font weight.

Type string
Configurability Read-only
Defaultnull
Examples
false"700"

name

The font family.

Type string
Format Plain Text
Configurability Read-only
Defaultnull
Examples
false"Sohne, -apple-system"

source

(No description available)

Type unknown
Configurability Read-only
Defaultnull


lowElevation

Low elevation shadow.

Type string
Format CSS
Configurability Read-only
Defaultnull
Examples
false"0 1px 3px rgba(0, 0, 0, 0.2)"

mediumElevation

Medium elevation shadow.

Type string
Format CSS
Configurability Read-only
Defaultnull
Examples
false"0 3px 6px rgba(0, 0, 0, 0.16)"

mode

The theme mode.

Type string
Format Plain Text
Configurability Read-only
Allowed Values
ValueDescription
light

Light mode.

dark

Dark mode.

stretch

Resize the image to the same dimensions as the area.

contain

Scale and clip the image to fit the area while preserving the aspect ratio.

Defaultnull
Examples
falselight

primary

The default accent color.

Type string
Format Color
Configurability Read-only
Defaultnull
Examples
false#FF0000

secondary

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

Type string
Format Color
Configurability Read-only
Defaultnull
Examples
false#FF0000

success

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

Type string
Format Color
Configurability Read-only
Defaultnull
Examples
false#00B74A

surfacePrimary

Default background color for containers and tables.

Type string
Format Color
Configurability Read-only
Defaultnull
Examples
false#FFFFFF

surfaceSecondary

Secondary background color for containers and tables.

Type string
Format Color
Configurability Read-only
Defaultnull
Examples
false#F7F8FA

tertiary

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

Type string
Format Color
Configurability Read-only
Defaultnull
Examples
false#F7F8FA

warning

Default color to indicate warnings.

Type string
Format Color
Configurability Read-only
Defaultnull
Examples
false#FFA500