DocSpace-buildtools/packages/asc-web-components/theme-provider/README.md
2021-02-24 17:42:09 +03:00

1.0 KiB

ThemeProvider

Custom theme provider based on Theme Provider.

List of themes:

You can change the CSS styles in the theme, and they will be applied to all children components of ThemeProvider

Usage

import { ThemeProvider, Themes } from "app-components";
const newTheme = {...Themes.Base, color: "red"}

<ThemeProvider theme={newTheme}>
  <Box>
    <Text>Base theme</Text>
  </Box>
</ThemeProvider>;

ThemeProvider Properties

Props Type Required Values Default Description
theme object - Base styles Applies a theme to all children components