postcss-implicit-var

0.0.1 • Public • Published

PostCSS Implicit Var Build Status

PostCSS plugin that places var() around variable references.

Using either $ or -- to prefix the variable name is supported.

Existing declarations are left alone.

.foo {
    color: $red-lighten-2
    color: --red-lighten-2
}
.foo {
  color: var(--red-lighten-2)
  color: var(--red-lighten-2)
}

Usage

postcss([ require('postcss-implicit-var') ])

See PostCSS docs for examples for your environment.

Package Sidebar

Install

npm i postcss-implicit-var

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

136 kB

Total Files

5

Last publish

Collaborators

  • jhpratt