2.2.8 • Published 5 years ago

the-style v2.2.8

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

the-style

Build Status npm Version JS Standard

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

NameTypeDescriptionDefault
classNamestringCSS class namenull
idstringDOM Idnull
prefixstringStyle selector prefixnull
typestringScript typenull

Default Themes

NameValue

License

This software is released under the MIT License.

Links