For a complete inventory of available variables, see theme variables.Documentation Index
Fetch the complete documentation index at: https://gusto-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Theming is the recommended approach for customizing your UI. For advanced customization, however, where theming is insufficient to completely match your application UI, you can explore usage of component adapters which allow you to completely supply your own components.
Setting up styles
Before configuring theming, you must import the SDK styles:GustoProvider.
Theme variables
A theme is a collection of variables that determine how the SDK UI components will look. There are theme variables available for colors, typography, shadows, and more. The React SDK ships with a basic default theme as a starting point, but it is expected that developers will override theme variables to make the React SDK fit seamlessly into their application. See theme variables for a complete list of available variables.Setting a Theme
You can set your theme by passing variables to thetheme prop of the GustoProvider component.
Accessibility
Having sufficient color contrast is important to ensure your UI is accessible to all users. To meet color contrast requirements, you must ensure sufficient contrast between each background color and its corresponding content color. For example, consider the body color variables:colorBodyContent and colorBodySubContent colors will be displayed on top of both colorBody and colorBodyAccent backgrounds. You must ensure sufficient color contrast between:
colorBodyandcolorBodyContent/colorBodySubContentcolorBodyAccentandcolorBodyContent/colorBodySubContent
colorPrimary/colorPrimaryAccent and colorPrimaryContent). All color variables follow this naming pattern, and the same contrast requirements apply to each color group.
Theming Theme Variables