Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

the-style

the-labo99MITdeprecated2.2.8

move to @the-/ui-style ( https://github.com/the-labo/the/tree/master/packages/ui-style#readme )

Style of the-components

the

readme

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

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.