Skip to content

Commit

Permalink
doc(ThemeProvider): Adding information about auto colors
Browse files Browse the repository at this point in the history
  • Loading branch information
James Friedman committed Aug 29, 2018
1 parent 3378b2f commit 5f9194d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Theme/theme.md
Original file line number Diff line number Diff line change
@@ -56,6 +56,8 @@ import { Theme } from 'rmwc/Theme';
## ThemeProvider
The `ThemeProvider` is an optional component that allows you to specify theme colors and settings for all of its subtree. This is useful to use once at the top of your app, or in parts of your app where the styles or color scheme differ.

You don't have to pass in all options. The `ThemeProvider` will automatically adjust some of the values like `onSurface` white or black text depending on colors contrast ratio.

```jsx render
import { ThemeProvider } from 'rmwc/Theme';

0 comments on commit 5f9194d

Please sign in to comment.