styled-hsla-helper

1.0.1 • Public • Published

styled-hsla-helper

change hsla color for styled-component

Install

npm install --save styled-hsla-helper 

Usage

const hslaChanger = require('styled-hsla-helper ')
 
hslaChanger(`hsla(0, 0%, 0%, 1)`, .8)
// => hsla(0, 0%, 0%, 0.8)

API

changer(color: string, percentage: float) -> changedColor: string

License

MIT © Song Wang

Package Sidebar

Install

npm i styled-hsla-helper

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • songwang