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

postcss-color-mod-function

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-color-mod-function

Modify colors using the color-mod() function in CSS

  • 4.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
decreased by-20.67%
Maintainers
3
Weekly downloads
 
Created

What is postcss-color-mod-function?

The postcss-color-mod-function package is a PostCSS plugin that allows you to modify colors using the color-mod() function in your CSS, following the CSS Color Module Level 4 specification. It enables you to apply color adjustments directly within your stylesheets, such as changing brightness, saturation, transparency, and more, without the need for pre-calculated color values.

What are postcss-color-mod-function's main functionalities?

Color Adjustments

Adjust the alpha transparency of a base color variable to 50%.

color: color-mod(var(--base-color) alpha(50%));

Color Blending

Blend the base color with black at a 30% mixture rate.

background-color: color-mod(var(--base-color) blend(black 30%));

Color Tinting and Shading

Apply a 20% tint and a 10% shade to the base color for the border.

border-color: color-mod(var(--base-color) tint(20%) shade(10%));

Other packages similar to postcss-color-mod-function

Keywords

FAQs

Package last updated on 19 Oct 2024

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