postcss-for-variables

0.0.5 • Public • Published

PostCSS For Plugin

Used in conjunction with the plugin postcss-for

Build Statusnpm versionnpm downloadsnpm

DEPRECATED, use postcss-at-rules-variables

/* Input example */
:root {
    --from: 1;
    --to: 3
}
@for $i from var(--from) to var(--to{
    .icon-$i { ... }
}
/* Output example */
:root {
    --from: 1;
    --to: 3
}
 
.icon-1 { ... }
.icon-2 { ... }
.icon-3 { ... }
 

Usage

Use postcss-for-variables before postcss-for

postcss([ require('postcss-for-variables'), require('postcss-for') ])

See PostCSS docs for examples for your environment.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    1
  • 0.0.4
    0

Package Sidebar

Install

npm i postcss-for-variables

Weekly Downloads

0

Version

0.0.5

License

MIT

Last publish

Collaborators

  • scrum