SDK theming
Learn about components and wrappers on the Monite React SDK.
Overview
All Monite components use the default component styling by default. However, there may be scenarios where you want to customize this default styling to match the look and feel of your website’s design or brand identity.
While the fundamental layouts of these Monite components are immutable, you can customize other component properties, such as colors, fonts, borders, etc.
Theming mechanism
To customize the components, pass your custom theme object to the React SDK using the theme
prop on the MoniteProvider
. The following snippet shows an example theme object with all possible options using default values:
Here is a description of all the possible options for the defaultTheme
object, which allows you to customize the visual style of Monite UI components:
General
colors
Color palette used throughout the UI.
typography
Controls the font styling across the app.
Typography Variants
Each variant is an object with the following fields: fontSize
, fontWeight
, lineHeight
.