Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-for

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-for

PostCSS plugin that enables SASS-like for loop syntax in your CSS

  • 2.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
130K
increased by2.18%
Maintainers
1
Weekly downloads
 
Created

What is postcss-for?

The postcss-for package is a PostCSS plugin that allows you to use for-loops in your CSS. This can be particularly useful for generating repetitive styles dynamically, reducing the need for manual duplication and making your stylesheets more maintainable.

What are postcss-for's main functionalities?

For-loop in CSS

This feature allows you to use a for-loop syntax in your CSS to generate repetitive styles. In the example, it creates three classes (.item-1, .item-2, .item-3) with widths of 10px, 20px, and 30px respectively. This reduces the need for manually writing repetitive CSS rules.

@for $i from 1 to 3 {
  .item-$i {
    width: $(i) * 10px;
  }
}

Other packages similar to postcss-for

Keywords

FAQs

Package last updated on 27 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc