psg-theme-tomato

1.0.3 • Public • Published

# psg-theme-tomato

Theme for the postcss-style-guide plugin

Install

$ npm install psg-theme-tomato

Example

var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var postcss = require('gulp-postcss');
var minifyCSS = require('gulp-clean-css');
var rename = require("gulp-rename");
var sass = require('gulp-sass');
var styleGuide = require('postcss-style-guide');
 
// Transpiling scss
gulp.task('css', () => {
    console.log("Transpiling scss, etc...");
    return gulp.src('./*.scss')
        .pipe(sourcemaps.init())
        .pipe(sass().on('error', sass.logError))
        .pipe(postcss([
            styleGuide({
                project: 'Project name',
                dest: 'styleguide/index.html',
                showCode: true,
                theme: 'tomato' // => Add name of the theme here
            })
        ]))
        .pipe(minifyCSS({compatibility: 'ie8'}))
        .pipe(rename({
          suffix: '.min'
        }))
        .pipe(sourcemaps.write('.'))
        .pipe(gulp.dest('./dist/css/'));
});
 
gulp.task('watch', () => {
    gulp.watch('./*.scss', ['css']);
});
 
gulp.task('default', ['css']);

Theme

Image of psg-theme-tomato

License

MIT © bar

Package Sidebar

Install

npm i psg-theme-tomato

Weekly Downloads

6

Version

1.0.3

License

MIT

Last publish

Collaborators

  • r4lfl4b