A small selection of low-level styles that help provide a foundation for your CSS code base. This pack provide additional niceties beyond a traditonal CSS normalizer or reset.


npm install seed-base --save



It is recommended that seed-base be imported as near to the top of your SCSS as possible, but placed after your reset styles.

// Reset
@import "pack/seed-reset/_index";
// Base
@import "pack/seed-base/_index";

// Everything else
@import "./components/alert";
@import "./components/button";
// etc…


This pack targets and adjusts the following selectors:

Elements Adjustments
h1-h6 Normalizes color, font-family, font-size, and line-height. Adds bottom margin.
img Makes images responsive by default, with a max-width of 100%.
small Sets the font-size to 80% and normalizes font-weight.
mark Adds background-color and slight padding.
code Adjusts font-sizing and adds slight background-color.
kbd Adjusts font-sizing and adds slight background-color.
pre Adjusts font-sizing and font color.


Below are the default Sass configuration variables for seed-base. The variables can be found in the pack’s _config.scss file.

// Config: Type
$seed-base-margin-bottom: 16px !default;

// Config: Headings
$seed-base-heading-color: inherit !default;
$seed-base-heading-font-family: inherit !default;
$seed-base-heading-font-weight: 500 !default;
$seed-base-heading-line-height: 1.1 !default;
$seed-base-heading-margin-bottom: 8px !default;
$seed-base-heading-margin-top: 0 !default;

// Config: Small
$seed-base-small-font-size: 80% !default;
$seed-base-small-font-weight: normal !default;

// Config: Mark
$seed-base-mark-background-color: #fcf8e3 !default;
$seed-base-mark-padding: 0.2em !default;

// Config: Code
$seed-base-code-background-color: rgba(black, 0.08) !default;
$seed-base-code-border-radius: 3px !default;
$seed-base-code-color: #000 !default;
$seed-base-code-font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
$seed-base-code-font-size: 85% !default;
$seed-base-code-padding: 0.16em 0.4em !default;

// Config: Pre
$seed-base-pre-color: #373a3c !default;