0.1.1 • Published 5 years ago
@vache/stylish v0.1.1
Stylish
Installation
yarn add @vache/stylish
import stylish from '@vache/stylish'
Usage
Register stylesheet
const styles = stylish({
primary: {
color: 'blue',
':hover': 'lightblue',
},
danger: {
color: 'red',
},
})
Generate classname
1. Use array params
const className = styles('primary')
2. Use Object params
const className = styles.parse({
primary: true,
})