the-style
Style of the-components
Installation
$ npm install the-style --save
Usage
'use strict'
import React from 'react'
import { TheStyle } from 'the-style'
// Customize style theme
TheStyle.theme.DOMINANT_COLOR = '#38E'
TheStyle.theme.TEXT_COLOR = '#555'
class ExampleComponent extends React.PureComponent {
render () {
let styles = TheStyle.styles({
body: {
color: '#555',
backgroundColor: 'white'
}
})
return (
<TheStyle id='my-component'
styles={styles}
/>
)
}
}
export default ExampleComponent
Components
TheStyle
Style of the-components
Props
Name | Type | Description | Default |
---|---|---|---|
className |
string | CSS class name | null |
id |
string | DOM Id | null |
prefix |
string | Style selector prefix | null |
type |
string | Script type | null |
Default Themes
Name | Value |
---|
License
This software is released under the MIT License.