react-base16-styling
React styling with base16 color scheme support
Inspired by react-themeable, this utility provides flexible theming for your component with base16 theme support.
Install
Usage
createStyling
createStyling
Argument | Signature | Description |
---|---|---|
|
| creates object with default stylings for your component, using provided base16 theme. |
|
| optional parameters, allow to set default |
|
|
|
Styling object values could be: - objects (treated as style definitions) - strings (class names) - functions (they may be provided with additional parameters and should return object { style, className })
getBase16Theme
getBase16Theme
Helper method that returns base16
theme object if themeOrStyling
is base16
theme name or theme object.
invertTheme
invertTheme
Helper method that inverts base16
theme colors, creating light theme out of dark one or vice versa.
Last updated