Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
postcss-button
Advanced tools
francoisromain.github.io/postcss-button
A PostCSS plugin to create buttons.
Install the npm module:
$ npm install postcss-button --save-dev
Require the PostCSS plugin:
postcss([ require('postcss-button') ])
See PostCSS docs to setup with Gulp, Grunt, Webpack, npm scripts…
The default settings can be overrided with an atrule:
@button [name] {
color: grey;
background-color: white;
color-active: white;
background-color-active: grey;
border-width: 0;
border-style: none;
border-color: grey;
border-color-active: black;
class-active: active;
class-disabled: disabled;
}
There are two ways of declaring a button:
@button [name] {
color: grey;
background-color: white;
color-active: white;
background-color-active: grey;
border-width: 0;
border-style: none;
border-color: grey;
border-color-active: grey;
class-active: active;
class-disabled: disabled;
}
.my-button {
button: [name]
}
.my-button {
button-color: [color] [background-color] [color-active] [background-color-active];
button-border: [width] [border-color] [border-color-active];
button-classes: [active] [disabled];
}
Missing declarations will use the default settings.
FAQs
A PostCSS plugin to create buttons.
The npm package postcss-button receives a total of 31 weekly downloads. As such, postcss-button popularity was classified as not popular.
We found that postcss-button 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
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.