
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
nestable-grid
Advanced tools
nestable-grid is a nestable, flexible, fully customisable responsive Sass grid
It is developed and maintained internally at bluegrassdigital, but feel free to contribute!
What sets this grid apart is that the columns are infinitely nestable - and will retain the same size and gutters that they would be if they weren't nested. This allows for complex responsive layouts that always honour the grid design system.
Another feature of the grid is that new rows are not required for every change in row. The columns will just wrap, and since floats are not being used you do not have the problem of hanging floated columns wrapping weirdly.
We can also define exactly what size classes are required at which breakpoints, thereby minimising the final generated CSS output. We don't, for example, generally need classes for cols-xs-1 etc. Usually a handful of sizes creating halves, quarters and thirds is all we need.
npm install nestable-grid
See Full examples
@import 'nestable-grid/main.scss';
// the map you pass to the nestable mixin gets merged into the base grid options,
// so only need to redefine values that you would like to be different from the defaults.
$nestable-options: (
gutter-width: 2%,
breakpoints: (
m: 576px,
l: 768px,
xl: 1024px
),
output-sizes: (
m: (6),
l: (4, 6, 8),
xl: (3, 4, 6, 8, 9)
)
);
@include nestable($nestable-options);
cs - eg. <div class="cs"></div>.cs container. If not, any elements before the columns would have a font-size of zero..cs with overflow set to hidden (negative margins are employed for fixed gutters, similarly to bootstrap).<div class="cs">
<div class="cols-l-6 cols-xl-3"></div>
<div class="cols-l-6 cols-xl-9"></div>
<div class="cols-l-6 cols-xl-9">
<div class="cs">
<div class="cols-xl-3"></div>
<div class="cols-l-6">
<div class="cs">
<div class="cols-xl-3"></div>
<div class="cols-xl-3"></div>
</div>
</div>
<div class="cols-xl-3"></div>
<div class="cols-xl-3"></div>
<div class="cols-xl-3"></div>
</div>
</div>
<div class="cols-l-6 cols-xl-3"></div>
</div>
$nestable-options-base: (
columns: 12, //default to a 12 column grid
gutter-width: 2.5%, //default to 2.5% gutter width. Can be set to static size instead
container-class: 'cs',
column-class: 'cols',
breakpoints: (
m: 576px,
l: 768px,
xl: 1024px
),
output-sizes: (
m: (6),
l: (4, 6, 8),
xl: (3, 4, 6, 8, 9)
)
) !default;
See API docs
Github Flow - branch, submit pull requests
FAQs
A nestable, flexible, fully customisable responsive Sass grid system
We found that nestable-grid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.