Sass and Less mixins to enable CSS --var: calc(inherit(--var) + 1);
npm install css-inherit-fn
css
--var: calc(inherit(--var, 0) + 1);
`
Less and Sass buildInherit()` mixins compile to vanilla CSS.Read the documentation here:
https://propjockey.github.io/css-inherit-fn/
Or skip the docs and go hands on in the live playground demos:
https://propjockey.github.io/css-inherit-fn/#live-examples