@seedcss/seed-link

1.0.1 • Public • Published

seed-link

npm version

Link component pack for Seed

Install

npm install @seedcss/seed-link --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-link");

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-link as needed in your .scss file:

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

Options

The following variables can be found in _config.scss

// Link :: Config

@import "pack/seed-color-scheme/__index";

// Namespaces
$seed-link-namespace: "c-link" !default;

// Config
$seed-link-include-a-selector: true !default;

// Colors
$seed-link-color: _color(link, base) !default;
$seed-link-color-hover: _color(link, hover) !default;
$seed-link-color-active: _color(link, active) !default;

// Outline
$seed-link-focus-outline: 5px auto -webkit-focus-ring-color !default;
$seed-link-focus-outline-offset: -2px !default;

// Transition
$seed-link-transition: none !default;

Package Sidebar

Install

npm i @seedcss/seed-link

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

9.8 kB

Total Files

13

Last publish

Collaborators

  • helpscout
  • mecarter