Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ export default withThemes({ light, dark }, light)(ThemableComponent)

#### `ThemeTypes`

`ThemeTypes` are used to define theme's property types. It's simillar to React `PropTypes`, there are 2 avaiable types:
`ThemeTypes` are used to define theme's property types. It's simillar to React `PropTypes`, there are 2 available types:

- `ThemeTypes.className`: Defines a property as a className
- `ThemeTypes.themeOf(ThemableComponent)`: Define a property as a theme of another themeable compoenent
- `ThemeTypes.themeOf(ThemableComponent)`: Define a property as a theme of another themeable component

##### Example:

Expand All @@ -91,7 +91,7 @@ MyComponent.themeTypes = {

### `Component.themes`

The compoenent will expose a `themes` object property with the themes defined as keys. These themes are set by the compoenent but also expose an API to create derivated themes.
The component will expose a `themes` object property with the themes defined as keys. These themes are set by the component but also expose an API to create derivated themes.

#### `add(fragment)`

Expand Down