Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jantimon/css-variable
- Owner: jantimon
- License: mit
- Created: 2021-09-08T10:47:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-03T19:35:04.000Z (8 months ago)
- Last Synced: 2024-04-14T00:46:28.996Z (7 months ago)
- Topics: css, javascript
- Language: JavaScript
- Homepage: https://css-variable.js.org
- Size: 4.44 MB
- Stars: 86
- Watchers: 7
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: license
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.