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

postcss-alter-color

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-alter-color

A PostCSS plugin to replace one color with another

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

postcss-alter-color

Build Status

A PostCSS plugin to replace one color with another color.

Install

npm install --save postcss-alter-color

Usage

const postcss = require('postcss');
const alterColorPlugin = require('postcss-alter-color');

const config = {
  from: 'darkslategray',
  to: '#556832'
};

postcss()
  .use(alterColorPlugin(config))

Input CSS:

body {
  background: white;
  color: darkslategray;
}
p {
  color: #2f4f4f;
}
.quote {
  border-left: 1px solid rgb(47, 79, 79);
  border-right: solid hsl(180, 25%, 25%) 1px;
}

Output CSS:

body {
  background: white;
  color: #556832;
}
p {
  color: #556832;
}
.quote {
  border-left: 1px solid #556832;
  border-right: solid #556832 1px;
}

License

MIT

Keywords

FAQs

Package last updated on 27 Sep 2019

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