
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
postcss-generate-preset
Advanced tools
PostCSS plugin that allows quick generation of rules. Useful for quickly creating repetitive utilities.
$ npm install postcss-generate-preset
input.css
@generate-preset .u-mp margin padding 0 10px;
@generate-preset .u-mt margin-top 10px 20px;
output.css
.u-mp0 {
margin: 0;
padding: 0;
}
.u-mp10 {
margin: 10px;
padding: 10px;
}
.u-mt10 {
margin-top: 10px;
}
.u-mt20 {
margin-top: 20px;
}
var presets = require('postcss-generate-preset');
postcss([ presets() ])
useImportant (default: false)When set to true all declarations will use !important. Often useful when utility classes need to override component styles
zeroValue (default): false)The default is to add zero to a selector. In some cases it might be desirable to display it differently
presets({ zeroValue: 'Z' });
@generate-preset .u-m margin 0;
/* becomes */
.u-mZ {
margin: 0;
}
See PostCSS docs for examples for your environment.
FAQs
PostCSS plugin that allows quick generation of similar rules
We found that postcss-generate-preset demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.