postcss-hexrgba

2.1.0 • Public • Published

PostCSS HexRGBA

NPM version Downloads Build Status

PostCSS plugin that adds shorthand hex methods to rgba() values.

Part of Rucksack - CSS Superpowers

Input

.foo {
  color: rgba(#0fab53, 0.8)
}

.bar {
  background: linear-gradient(rgba(#fff, .1), rgba(#fff, .2));
}

Output

.foo {
  color: rgba(15,171,83, 0.8)
}

.bar {
  background: linear-gradient(rgba(255,255,255, .1), rgba(255,255,255, .2));
}

Usage

postcss([ require('postcss-hexrgba') ])

See PostCSS docs for examples for your environment.


MIT © Sean King

/postcss-hexrgba/

    Package Sidebar

    Install

    npm i postcss-hexrgba

    Weekly Downloads

    35,399

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    7.4 kB

    Total Files

    5

    Last publish

    Collaborators

    • madeleineostoja