The Flows Styles API
Customize the look and feel of Flows to match the design of your site.
Flow supports visual customization, which allows you to match the design of your site with the styling option. The layout of each flow stays consistent, but you can modify colors, buttons, borders, padding, and more.
Style configurations
Theme
The light
and dark
theme allow you to control the general apperance of elements of flows that you cannot configure individually, such as the color of the Dots logo or the datepicker icon, defaults to light
.
Variables
Variables such as backgroundColor
and primaryInputColor
work like CSS variables and allow you to customize the looks of flow components individually.
Variable | Description |
---|---|
backgroundColor | The background color of the flow |
primaryTextColor | The color of texts used in titles and labels |
secondaryTextColor | The color of secondary texts used in sublabels in buttons |
tertiaryTextColor | The color of tertiary texts such as the default payout method indicator or the Visit dashboard link at the bottom of the flow page |
primaryColor | The primary color of the flow theme, such as button hovers or highlights |
tabBackgroundColor | The background color of the rail tab |
tabHoverBackgroundColor | The background color of the rail tab when the cursor hovers over it |
tabBorderColor | The border color of the rail tab |
tabHoverBorderColor | The border color of the rail tab when the cursor hovers over it |
buttonBackgroundColor | The background color of action buttons located at the bottom of each flow page |
buttonTextColor | The text color of action buttons located at the bottom of each flow page |
buttonHoverTextColor | The text color of action buttons when the cursor hovers over it |
buttonHoverBackgroundColor | The background color of action button when the cursor hovers over it |
buttonDisabledBackgroundColor | The background color of action buttons when they are disabled |
buttonDisabledTextColor | The text color of action buttons when they are disabled |
inputBackgroundColor | The background color of inputs such as checkboxes or textfields |
inputBorderColor | The border color of inputs |
inputPlaceholderColor | The placeholder color of inputs |
borderRadius | The border radius of the buttons, tabs, icons, and inputs |
Implementation
To apply the styling to your flow, first stringify the configurations, then URL encode it and add it as a query parameter ?styles={url_encoded_config}
to the flow link
Example Flow Styling
This example customize the flow styles with the following configurations: