package
CSS Variables polyfill
npm install variablesGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 3 packages.
48.4 kB
Includes dependencies.
A pure regexp-replace version of rework-vars. Differences are:
rework or parse the CSS ASTLike rework-vars, it only implements a subset of CSS variables.
var variables = require('variables')Do CSS variables magic.
Parse CSS variables on :root,
storing the variable values in map.
Variable names do not include the leading --s.
Compile a regular expression for matching var(--<name>)s with names given from map.
This regular expression do not match var()s with fallbacks.
Replace variables in css with a variable map.