This package has been deprecated

Author message:

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

the-style

2.2.8 • Public • Published

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.

Links

Readme

Keywords

Package Sidebar

Install

npm i the-style

Weekly Downloads

10

Version

2.2.8

License

MIT

Unpacked Size

35.6 kB

Total Files

19

Last publish

Collaborators

  • okunishinishi