🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

postcss-color-mod-function

Package Overview
Dependencies
Maintainers
1
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

2.4.1
Source
npm
Version published
Weekly downloads
1.7M
-25.91%
Maintainers
1
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

postcss

FAQs

Package last updated on 21 Feb 2018

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