https://github.com/jantimon/css-variable
Define CSSVariables in JS
https://github.com/jantimon/css-variable
css javascript
Last synced: about 1 year 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 (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-04T16:40:38.000Z (over 1 year ago)
- Last Synced: 2025-04-09T20:09:12.724Z (about 1 year ago)
- Topics: css, javascript
- Language: JavaScript
- Homepage: https://css-variable.js.org
- Size: 4.5 MB
- Stars: 90
- Watchers: 7
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: license
Awesome Lists containing this project
README
# css-variable
[](npmjs.com/package/css-variable) [](https://github.com/jantimon/css-variable/actions/workflows/e2e-test.yml)   
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.