Not Particularly Meaningful
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

postcss-evokit

1.0.0 • Public • Published

Postcss-evokit

Набор плагинов для postcss расширяющие возможности css:


Before

$block-theme-enable: true;
$block-theme-default: black;
$block-theme-list: redgreenblue;
$block-element-padding: 2px;
 
 
.block {
  background-color: $block-theme-default;
 
  &__element {
    padding: resolve($block-element-padding * 3);
  }
}
 
@if $block-theme-enable {
  @each $value in ($block-theme-list{
    .block_theme_$(value{
      background-color: $value;
    }
  }
}

After

.block {
    background-color: black;
}
 
.block__element {
    padding: 6px;
}
 
.block_theme_red {
    background-color: red;
}
 
.block_theme_green {
    background-color: green;
}
 
.block_theme_blue {
    background-color: blue;
}
 

Install

npm i postcss-evokit

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar