CSS Variables in JS
Straightforward helper functions to manipulate CSS variables in JS
Usage
This package is available as a UMD, CommonJS and ES module build. This allows you to import the package as you see fit.
To get quickly get started, include the following script tag in your site's HTML file;
The cssVarInJS
variable is now globally available to use.
Alternatively, you can install the package from npm, by running 'npm i css-var-in-js
' and import it in your project;
// or const cssVarInJS =
Contributing
This project is open to and encourages contributions! Feel free to discuss any bug fixes/features in the issues. If you wish to work on this project:
- Fork the project
- Create your feature branch (
git checkout -b new-feature-branch
) - Commit your changes (
git commit -am 'add new feature'
) - Push to the branch (
git push origin new-feature-branch
) - Submit a pull request!