Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

postcss-minify-gradients

Package Overview
Dependencies
3
Maintainers
7
Versions
40
Issues
File Explorer

Advanced tools

postcss-minify-gradients

Minify gradient parameters with PostCSS.

    5.1.1latest

Version published
Maintainers
7
Weekly downloads
8,562,520
decreased by-21.43%

Weekly downloads

Readme

Source

postcss-minify-gradients

Minify gradient parameters with PostCSS.

Install

With npm do:

npm install postcss-minify-gradients

Example

Where possible, this module will minify gradient parameters. It can convert linear gradient directional syntax to angles, remove the unnecessary 0% and 100% start and end values, and minimise color stops that use the same length values (the browser will adjust the value automatically).

Input

h1 { background: linear-gradient(to bottom, #ffe500 0%, #ffe500 50%, #121 50%, #121 100%) }

Output

h1 { background: linear-gradient(180deg, #ffe500, #ffe500 50%, #121 0, #121) }

Usage

See the PostCSS documentation for examples for your environment.

Contributors

See CONTRIBUTORS.md.

License

MIT © Ben Briggs

Keywords

FAQs

What is postcss-minify-gradients?

Minify gradient parameters with PostCSS.

Is postcss-minify-gradients popular?

The npm package postcss-minify-gradients receives a total of 7,134,381 weekly downloads. As such, postcss-minify-gradients popularity was classified as popular.

Is postcss-minify-gradients well maintained?

We found that postcss-minify-gradients demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 7 open source maintainers collaborating on the project.

Last updated on 21 Mar 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc