Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-sass-themes-combiner

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-sass-themes-combiner

Inject files with theme variables into SCSS files and combine output CSS.

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gulp-sass-themes-combiner

NPM

SASS themes injector & combiner.

A plugin for Gulp as extension of gulp-sass.

Inspired by gulp-sass-themes.

Usage

Source files

+-- styles
    +-- _default-colors.scss
    +-- body.scss
    +-- form.scss
    +-- login.scss
    +-- themes
        +-- _white.scss
        +-- _black.scss

Gulpfile

'use strict';

const gulp = require('gulp');
const sass = require('gulp-sass');
const themesCombiner = require('gulp-sass-themes-combiner');

gulp.task("sass", function () {
    var themesCombiner = themesCombiner('./styles/themes/_*.scss');

    return gulp.src(['./styles/**/*.scss'])
      .pipe(themesCombiner.init())
      .pipe(sass.sync().on("error", sass.logError))
      .pipe(themesCombiner.combine('mySite'))
      .pipe(gulp.dest('./dist/styles'));
});

Output

+-- dist
    +-- styles
        +-- mySite.white.css
        +-- mySite.dark.css

Parameters

themes

Type: String | Array<String> Glob pattern to theme files.

options

cwd

Type: String Current working directory for glob pattern.

debug

Type: Boolean Verbose working mode.

ext

Type: String Theme file extension (.scss or .sass, default - .sass).

Keywords

FAQs

Package last updated on 12 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc