1.0.0 • Published 7 years ago

gulp-ahex v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

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