Skip to content

PostCSS plugin that lets everyone know how important your CSS is

License

Notifications You must be signed in to change notification settings

conceptualitis/mahogany

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mahogany

Don't let one bad apple spoil the bunch. Make them all bad apples.

This is a PostCSS plugin that appends !important to every declaration in your CSS.

I'm very important

Install

npm install --sav-dev mahogany

Use it with Gulp

var postcss = require('gulp-postcss');
var gulp = require('gulp');
var mahogany = require('mahogany');

gulp.task('css', function () {
    return gulp.src('./src/*.css')
        .pipe(postcss([mahogany()]))
        .pipe(gulp.dest('./dest'));
});

Examples

a {
  color: red;
}

Becomes:

a {
  color: red !important;
}

And

b {
  font-weight: 100;
  color: blue;
}

Becomes:

b {
  font-weight: 100 !important;
  color: blue !important;
}

About

PostCSS plugin that lets everyone know how important your CSS is

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published