Customising Styles
The widget provides props to apply a custom accent color and also a custom font family.
Colors
For consistency sake, Flexy provides just one prop for customising the accent color. If you wish to change the accent color from Flexy's default primary color to your app's theme color, for example #FC72FF
all you have to do is demonstrated below:
However, If you wish to further customise the theme colors, here's a list of all css color variables used by the widget, you can overwrite them in your global css file or a custom css file using the :root
selector.
Font Family
You can pass in a custom css font using the fontFamily
prop as shown below.
Dark/Light Mode
By default, the widget follows system settings for light/dark modes. You can enforce a single mode (light only or dark only) by using the theme
prop as shown below.
Last updated
Was this helpful?