Created
November 8, 2018 17:26
-
-
Save seejamescode/36a4cb9422b6ba4a64985dcf701a0621 to your computer and use it in GitHub Desktop.
How to Use Grid Wiz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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