# glamor-color-function

> color() function support for glamor

Latest version **0.0.3** (published 2017-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install glamor-color-function
pnpm add glamor-color-function
yarn add glamor-color-function
bun add glamor-color-function
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-01-21 |
| First published | 2017-01-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Chris Biscardi |
| Maintainers | biscarch |

## Links

- npm: https://www.npmjs.com/package/glamor-color-function
- Repository: https://github.com/ChristopherBiscardi/glamor-color-function
- Homepage: https://github.com/ChristopherBiscardi/glamor-color-function#readme
- Issues: https://github.com/ChristopherBiscardi/glamor-color-function/issues
- npm.io page: https://npm.io/package/glamor-color-function

## Dependencies (1)

- [css-color-function](https://npm.io/package/css-color-function.md) ^1.3.0

## Recent versions

- 0.0.3 (latest) — 2017-01-21
- 0.0.2 — 2017-01-21
- 0.0.1 — 2017-01-21

## README

# glamor-color-function

A port of
[postcss-color-function](https://github.com/postcss/postcss-color-function)
for glamor, using
[css-color-function](https://github.com/ianstormtaylor/css-color-function).

Transform glamor declarations with `color()`:

```javascript
css({
  border: "1px solid pink",
  color: "color(blue blackness(+10%))",
  ":hover": { backgroundColor: "red" }
})
```

into

```css
.css-1bl95om,[data-css-1bl95om]{
  border: 1px solid pink;
  color: rgb(0, 0, 230);
}
.css-1bl95om:hover,[data-css-1bl95om]:hover{
  background-color: red;
}
```

## ECMAScript

You will need polyfills for the following features (which are provided
for you if you are using babel's runtime).

* Object.entries
* "".startsWith()

A non-compiled version can be required at `index.es.js` and is
specified as `jsnext:main`. This version includes the following
language features in addition:

* Destructuring
* Object literal shorthand

---
_Source: https://npm.io/package/glamor-color-function · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
