gulp-ahex

1.0.0 • Public • Published

gulp-ahex

Alpha hexadecimal gulp plugin

Installation

npm install -S gulp-ahex

npm

Usage

gulpfile.js

const gulp = require('gulp');
const ahex = require('gulp-ahex');
 
gulp.task('css', function(){
  return gulp.src('./src/style.css')
    .pipe(ahex())
    .pipe(gulp.dest('./dist/'))
});
 
gulp.task('default', [ 'css' ]);

input file src/style.css

body{
  color: #00ff0077;
}

output file dist/style.css

body{
  color: rgba(0, 255, 0, 0.47);
}

Go here for more documentation about writing ahex colors

Package Sidebar

Install

npm i gulp-ahex

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • alexcambose