Create and use a custom theme
Adding a theme to an application with CSS variables is the fastest way to style your components. You can use the default theme or a custom theme.
To create and use a custom theme:
-
In your React project, open your
applicationcomponent. -
In the component, create a default theme object as shown in the following code block, and fix import statements.
-
To create a custom theme, add CSS variables as shown in the following:
-
In your
applicationcomponent, in the return statement, to thedivwrapper ofWidgetsProvider, set the value to style as shown in following:
If you have suggestions for improving this article, let us know!