0.1.1 • Published 5 years ago

@vache/stylish v0.1.1

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

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,
})
0.1.1

5 years ago

0.1.0

5 years ago