blank.css ‣ space
blank.css space utilities for consistent layouts
configure
Like all of blank.css, the spacing utilites are completely configurable using custom properties and custom media queries, like so:
@);@);@);@);@);
install
npm i -D blank-css-space
use
now you have these classes at your disposal, where
identifier | available |
---|---|
{type} |
mg or pd |
{Side} |
T or B or L or R or H or V |
{size} |
n or xs or sm or md or lg |
for example, if I wanted a small amount of padding on all sides, but large horizontal margins, I'd do this:
My item
If I wanted the small padding to change to large when I hit the md
breakpoint, I'd do:
My item
Mix and match in whichever way you choose.