node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

postcss-hexrgba

PostCSS HexRGBA

NPM version Build Status Dependency Status

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

Part of Rucksack - CSS Superpowers.

.foo {
  color: rgba(#0fab530.8)
}
 
.bar {
  background: linear-gradient(rgba(#fff.1)rgba(#fff.2));
}
.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