Usage
Theme configuration#
If you want to use the default theme, you can fully skip this step. But if you want to set your own primitives and overwrite the default theme, you have to wrap your app with a ThemeProvider. For example:
Components#
Now you can use the components:
Custom components with the theme#
To use the theme in your own components, you can use useStyles hook. You can define styles while using theme primitives:
Accessing the theme#
And you can also access the theme object anywhere in the app: