An open API service indexing awesome lists of open source software.

https://github.com/afeiship/next-rgba

Rgba function like sass.
https://github.com/afeiship/next-rgba

color components next rgb rgba sass styled

Last synced: about 2 months ago
JSON representation

Rgba function like sass.

Awesome Lists containing this project

README

          

# next-rgba
> Rgba function like sass.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-rgba
```

## usage
```js
import '@jswork/next-rgba';

nx.rgba('red'); //'rgba(255,0,0,1)'
nx.rgba('#000', 0.1); //'rgba(0,0,0,0.1)'
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-rgba/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-rgba
[version-url]: https://npmjs.org/package/@jswork/next-rgba

[license-image]: https://img.shields.io/npm/l/@jswork/next-rgba
[license-url]: https://github.com/afeiship/next-rgba/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-rgba
[size-url]: https://github.com/afeiship/next-rgba/blob/master/dist/next-rgba.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-rgba
[download-url]: https://www.npmjs.com/package/@jswork/next-rgba