This work is an adaptation from the original Flexbox Grid created by @kristoferjoseph.
Grid based on the flexbox model.
By trying the Flexbox Grid we saw the internal need to a SASS version of it. Thanks to the good work of Kristopher Joseph, we forked his project and sassified it.
This version is a fork of the hugeinc/flexboxgrid-sass project. It has been updated here to use the correct SCSS syntax for division and the now unnecessary browser prefixing has been removed. If you still need browser prefixes for your project, you can still use this library and just run your compiled CSS through PostCSS/autoprefixer to handle it in your build.
# npm
npm add -D @rewdy/flexboxgrid-sass
# yarn
yarn add -D @rewdy/flexboxgrid-sass
# pnpm
pnpm add -D @rewdy/flexboxgrid-sass
# ...you get the idea...
To modify your flexbox-based grid, declare the following variables on your layout .scss
$flexboxgrid-grid-columns: 12;
$flexboxgrid-gutter-width: 1rem;
$flexboxgrid-outer-margin: 1rem;
You can modify, remove or create breakpoints before generate the final CSS.
$flexboxgrid-breakpoints:
sm 48rem,
md 64rem,
lg 80rem,
xlg 90rem,
newbreakpoint 120rem;