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: 3 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-03T19:35:04.000Z (12 months ago)
- Last Synced: 2024-04-14T00:46:28.996Z (10 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
[](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.