seed-dash - Sass Configuration Utilities

0.0.2 · abandoned · verified Sun Apr 19

seed-dash is a specialized utility pack designed for the Seed CSS framework, specifically addressing the manipulation of configuration variables within Sass, particularly for lists and maps. It implements a limited set of Underscore/lodash-like methods such as `_get`, `_set`, and `_extend` directly in Sass to facilitate dynamic configuration adjustments. Released at version 0.0.2, the project appears to be unmaintained, with its last known activity several years ago. The project's own documentation recommends `Sass Dash` for a more comprehensive Underscore/lodash-like experience in Sass, indicating that seed-dash is a niche or superseded solution for very specific Seed framework configuration tasks, rather than a general-purpose Sass utility library. It is designed to be integrated into a build pipeline, typically via Node.js tools like Gulp.

Common errors

Warnings

Install

Imports

Quickstart

This example demonstrates how to integrate `seed-dash` into a Gulp-based Sass compilation pipeline, allowing Sass files to import and use its utility functions for configuration.

const gulp = require('gulp');
const sass = require('gulp-sass')(require('sass')); // Using dart-sass
const pack = require('seed-dash');
const path = require('path');

gulp.task('sass', function () {
  return gulp.src('./sass/**/*.scss')
    .pipe(sass({
      includePaths: [
        ...pack, // Includes seed-dash's own paths
        path.join(__dirname, 'node_modules') // Ensure node_modules is also scanned
      ]
    }).on('error', sass.logError))
    .pipe(gulp.dest('./css'));
});

// To run:
// 1. Create a file `sass/main.scss`:
//    `@import "pack/seed-dash/_index";
//    $my-map: (
//      'foo': 'bar',
//      'nested': ('a': 1)
//    );
//    $my-map: _set($my-map, 'nested.b', 2);
//    body { content: _get($my-map, 'nested.b'); }`
// 2. Install dependencies: `npm install gulp gulp-sass sass seed-dash`
// 3. Run: `npx gulp sass`

view raw JSON →