Skip to content

Instantly share code, notes, and snippets.

@seejamescode
Created November 8, 2018 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seejamescode/36a4cb9422b6ba4a64985dcf701a0621 to your computer and use it in GitHub Desktop.
Save seejamescode/36a4cb9422b6ba4a64985dcf701a0621 to your computer and use it in GitHub Desktop.
How to Use Grid Wiz
// Check out https://grid-wiz.now.sh for more info
const gridWiz = require("grid-wiz");
var yourGridCSS = gridWiz({
prefix: "bx--", // Prefix for all CSS class names. Can be empty.
support: "displayGrid", // `displayFlex`, `cssVariables`, or `displayGrid`
maxWidth: 1584, // Max-width of entire grid in pixels. Optional.
progressive: false, // Include all browser support fallbacks older than selected support
subgrid: true, // Embedded grids and rows know the remaining amount of columns available.
breakpoints: [
{
name: "sm", // Class name prefix fot the breakpoint.
size: 0, // Starting screen width in pixels of the breakpoint.
columns: 4, // Amount of columns available.
gutter: 32, // Space between content of adjacent columns in pixels.
margin: 0 // Space on outside of entire grid in pixels.
},
{
name: "md",
size: 672,
columns: 8,
gutter: 32,
margin: 16
},
{
name: "lg",
size: 1056,
columns: 16,
gutter: 32,
margin: 16
}
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment