Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

Scrum/postcss-for-variables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostCSS For Plugin

Used in conjunction with the plugin postcss-for

Build Statusnpm versionnpm downloadsnpm

/* 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.

About

PostCSS plugin for plugin postcss-for

Resources

License

Stars

Watchers

Forks

Packages

No packages published