0.0.1 • Published 6 years ago

postcss-implicit-var v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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.