Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jantimon/css-variable

Define CSSVariables in JS
https://github.com/jantimon/css-variable

css javascript

Last synced: 16 days ago
JSON representation

Define CSSVariables in JS

Awesome Lists containing this project

README

        

# css-variable

[![npm](https://img.shields.io/npm/v/css-variable)](npmjs.com/package/css-variable) [![e2e test](https://github.com/jantimon/css-variable/actions/workflows/e2e-test.yml/badge.svg)](https://github.com/jantimon/css-variable/actions/workflows/e2e-test.yml) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/css-variable) ![npm type definitions](https://img.shields.io/npm/types/css-variable) ![NPM](https://img.shields.io/npm/l/css-variable)

Tiny ( ~0.3 kb ) treeshakable library to define CSS custom properties (variables) in JS.
Compatible with 👩‍🎤 Emotion / 💅 StyledComponents / Linaria and similar CSS-in-JS solutions.

## Install

```bash
npm i css-variable
```

## Docs

[http://css-variable.js.org](http://css-variable.js.org)

## License

Licensed under MIT
Crafted with <3 [@jantimon](https://twitter.com/jantimon)

Special thanks to [@4alpine](https://twitter.com/4lpine) for donating the package name.