Left and right arrow keys navigate. Enter jumps to content.

Full example config

Please enable javascript to access the full functionality of this site

Site header

npm install gutter-grid --save

Tag line

A Sass flexbox based grid system that is able to replicate CSS grid-gap in IE11

Toolbar

Preferred system:

It's going to be difficult figuring out what your final config should end up looking like. These are all the config settings and their default values. Copy/paste them into your project and edit it to fit your project needs.

All the config settings and their default values.


// Set a prefix that is applied in front of "grid"
// (eg. "gutter" => .gutter-grid__cell)
$grid-prefix: '';

// Set this to the width at which auto-wrapping is enabled
// Also sets the screen width that triggers outer gutter delays
$grid-page-width: 1200px;

// IE8 can't do transparent borders.
// This defines what the default color for gutters is in IE.
$grid-gutter-ie-fallback: #fff;

// Support for browsers that don't support flexbox (IE 8 and 9)
// is disabled by default
$grid-legacy-support: false;

// Support for browsers that support calc() is enabled by default
$grid-calc-support: true;

// You can alter the available grid gutter sizes here
// Note: the default value = ()
$grid-cell-gutters: (
  // .grid--gutter-20
  20 : 20px,

  // .grid--gutter-10-30
  '10-30' : 10px 30px,

  // .grid--gutter-gutterName
  'gutterName' : 20px,

  // .grid--gutter-mediaQueryGutter
  'mediaQueryGutter' : mq (

    // Default: 50px vertical gutters, 30px horizontal gutters
    (50px 30px),

    // Screen size 800px and below: 30px vertical gutters, 10px horizontal gutters
    (30px 10px) (max, 800px),

    // Screen size 600px and below: 10px gutters both vertically and horizontally
    10px (max, 600px)
  )
);

//Set the points at which columns change widths
$grid-break-points: (

  // 2 column grid
  2: (
    // On a screen <= 600px wide, make it a 1 column grid
    1: 600px,
  ),

  // 3 column grid
  3: (
    // You can use mq-scss syntax if you prefer
    2 : (max, 960px),
    1 : (max, 600px),
  ),

  // 4 column grid
  4: (
    2 : 960px,
    1 : 480px,
  ),

  // 5 column grid
  5: (
    3 : 960px,
    2 : 600px,
    1 : 480px,
  ),

  // 6 column grid
  6: (
    3 : 960px,
    2 : 600px,
    1 : 480px,
  )
);


@import '../node_modules/mq-scss/mq';
//pick to use mixins or classes, it's not advisable to use both
@import '../node_modules/gutter-grid/grid-mixin';
@import '../node_modules/gutter-grid/grid-classes';