ThemeProvider

This component will inject the theme in all your components. It allows you also to customize this theme.

Please note that this component should be the first component imported in your project ! Otherwise the style may be broken.

Example

Theme declaration :

Props

Name

Type

Default value

Description

children
required

node

null

The child node.

otherTheme

object

{}

Overload a part of the theme. Will be merged to the actual theme. The overload can be constants, or functions taking the constant part of the theme as parameter.

theme

object

{}

The theme overloading. If not given, the theme will be taken from the context. The overload can be constants, or functions taking the constant part of the theme as parameter.