2.2.8 • Published 5 years ago
the-style v2.2.8
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.
Links
2.2.8
5 years ago
2.2.7
5 years ago
2.2.6
5 years ago
2.2.5
5 years ago
2.2.4
5 years ago
2.2.3
5 years ago
2.2.2
6 years ago
2.2.1
6 years ago
2.2.0
6 years ago
2.1.13
6 years ago
2.1.11
6 years ago
2.1.10
6 years ago
2.1.8
6 years ago
2.1.7
6 years ago
2.1.6
6 years ago
2.1.5
6 years ago
2.1.4
6 years ago
2.1.3
6 years ago
2.1.2
6 years ago
2.1.1
6 years ago
2.1.0
6 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.3.0
7 years ago
1.2.5
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.7
7 years ago
1.1.6
7 years ago
1.1.5
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago