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

postcss-color-hex-alpha

Package Overview
Dependencies
1
Maintainers
4
Versions
18
Issues
File Explorer

Advanced tools

postcss-color-hex-alpha

Use 4 & 8 character hex color notation in CSS

    8.0.4latest

Version published
Maintainers
4
Weekly downloads
7,021,190
decreased by-10.22%

Weekly downloads

Readme

Source

PostCSS Color Hex Alpha PostCSS Logo

npm version CSS Standard Status Build Status Discord

PostCSS Color Hex Alpha lets you use 4 & 8 character hex color notation in CSS, following the CSS Color Module specification.

body { background: #9d9c; } /* becomes */ body { background: rgba(153,221,153,0.8); }

Usage

Add PostCSS Color Hex Alpha to your project:

npm install postcss postcss-color-hex-alpha --save-dev

Use it as a PostCSS plugin:

const postcss = require('postcss'); const postcssColorHexAlpha = require('postcss-color-hex-alpha'); postcss([ postcssColorHexAlpha(/* pluginOptions */) ]).process(YOUR_CSS /*, processOptions */);

PostCSS Color Hex Alpha runs in all Node environments, with special instructions for:

NodePostCSS CLIWebpackCreate React AppGulpGrunt

Options

preserve

The preserve option determines whether the original notation is preserved. By default, it is not preserved.

postcssColorHexAlpha({ preserve: true }) body { background: #9d9c; } /* becomes */ body { background: rgba(153,221,153,0.8); background: #9d9c; }

Keywords

FAQs

What is postcss-color-hex-alpha?

Use 4 & 8 character hex color notation in CSS

Is postcss-color-hex-alpha popular?

The npm package postcss-color-hex-alpha receives a total of 6,638,630 weekly downloads. As such, postcss-color-hex-alpha popularity was classified as popular.

Is postcss-color-hex-alpha well maintained?

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

Last updated on 10 Jun 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