1.2.2 • Published 6 months ago

postcss-for-css-vars v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

PostCSS For Var Plugin

PostCSS plugin that enables @for loop syntax in your CSS with var.

Usage

postcss([ require('postcss-for-css-vars') ])
@for --i from 1 to 3 {
    .col-var(--i) { width: var(--i)px; }
}
.col-1 {
    width: 1px
}
.col-2 {
    width: 2px
}
.col-3 {
    width: 3px
}

This plugin must be set after postcss-nested and before postcss-css-variables/postcss-custom-properties.

See PostCSS docs for examples for your environment.

1.2.0

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago