@seedcss/seed-card

1.0.1 • Public • Published

seed-card

npm version

Card component pack for Seed

Install

npm install @seedcss/seed-card --save

Documentation

Check out our documentation of this pack.

Basic Usage

SCSS

This seed pack needs to be imported into your sass pipeline. Below is an example using Gulp:

const gulp = require("gulp");
const sass = require("gulp-sass");
const pathfinder = require("sass-pathfinder");
const pack = require("@seedcss/seed-card");

gulp.task("sass", function() {
  return gulp
    .src("./sass/**/*.scss")
    .pipe(
      sass({
        includePaths: pathfinder(
          // Other includePaths...
          pack
        )
      })
    )
    .pipe(gulp.dest("./css"));
});

Once that is setup, simply @import seed-card as needed in your .scss file:

// Packs
@import "pack/seed-card/_index";

Options

The following variables can be found in _config.scss

// Card :: Config

// Dependencies
@import "pack/seed-border/config";

// Namespaces
$seed-card-namespace: c-card !default;
$seed-card-block-namespace: #{$seed-card-namespace}__block !default;

// Config: Card
$seed-card-background-color: #fff !default;
$seed-card-border: $seed-border !default;
$seed-card-border-radius: 4px !default;
// Config: Card block
$seed-card-block-sizes: (
  md: 20px 20px,
  sm: 12px 20px,
  xs: 8px 20px,
) !default;

Package Sidebar

Install

npm i @seedcss/seed-card

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

11.5 kB

Total Files

16

Last publish

Collaborators

  • helpscout
  • mecarter