Why?

The way we talk about the grid in our teams, should be the same way we code the grid. Forget xs-col-5 or IbBox W(1/3) or whatever is in fashion, let’s use the same speak we do with people, with our machines.

This grid is a bit different though, in that it seeks to allow contents to decide their own size by default. Most grids are explicit about widths, and the content must block level fill the space. With RAGrid, you distribute and align the items which manage their own size.

tldr;

Docs

Instead of writing lengthy docs, please find the RAGrid API/answers by inspecting the code in the examples below. Getting RAGrid into your project? IMHO, I’d say copy and paste the CSS into your project, good for you to know, and it’s very digestable. BUT, I did publish it to NPM so you can manage it like you do your other CSS dependencies:

npm i ragrid -D || yarn add ragrid

It’s very simple. So much so, that it might be good to quicky spell out the things you won’t find in RAGrid:

Columns

Out of the box

Self sized, aligned top left, & rag by default

Distribution

Perfect spacing amongst variable sized children, forget about gutters

Alignment

Top, right, bottom, left, center; it’s all available

Baseline

Hey what, this isn’t in the align panel
Mind
Is
Blown
!

Order

Reverse the children

Combo

Distributed edge to edge, vertically aligned center, and reversed!

Equal Width

Resize to watch these stretch to fit the space, so cool

Equal Height

Glorious

Rows

Switch to rows anytime

Rag by default like columns

Align Center

No stupid math offsets to get this beauty

Align Right

Still no stupid offsets, simple alignment

Combo

Distributed edge to edge, vertically aligned center, and reversed!

Full Width

Classic

Grids

Intrinsic Sizing

Children, by default in this grid, have their own size

Extrinsic Sizing (1/5)

But the children can be told a size, similar to most grids

Extra

Notorious Vertical Center

grid horizontally-aligned=‘center’ vertically-aligned=‘center’

Change my text value, watch me stay centered!

Navbar

Bread and butter layout right here, bust out all styles easy