iro.js plugin to dynamically update CSS rules whenever the selected color changes
npm install iro-dynamic-css
An iro.js plugin that dynamically updates CSS styles to match the currently selected color
Features | Installation | Usage | Stylesheet API
* Tiny: Just 4kb minified, or less than 1kB minified + gzipped.
* Consistent: Works across all modern browsers, down to IE 9.
* CSS Variables: CSS variables are available in browsers that support them.
``bash`
$ npm install iro-dynamic-css --save
If you are using a module bundler like Webpack or Rollup, import iro-dynamic-css into your project after iro.js:
Using ES6 modules:
`js`
import iro from '@jaames/iro';
import iroDynamicCss from 'iro-dynamic-css';
Using CommonJS modules:
`js`
const iro = require('@jaames/iro');
const iroDynamicCss = require('iro-dynamic-css');
Development version
Uncompressed at around 12kB, with source comments included
Production version
Minified to 4kB
Then add it to the
of your page with a