Recommended folder structure for a clean Gridy setup.
/assets
/img
/js
/css
style.css
In style.css, define grid variables first to customize the system. Without this, Gridy uses default values.
:root{
--pl:32px;
--pr:32px;
--gp:32px;
--mw:960px;
}
These control:
• --pl / --pr → page padding left/right
• --gp → grid gap
• --mw → max width container
Press Shift + G to toggle grid overlay. Use it to align elements and debug spacing.
Gridy uses a 12-column system. Examples are ordered from 1 column up to full width.
Layout structure is composed of three layers:
.con sets the main container width and page padding,
.grd defines the 12-column grid system,
and .c-* controls how many columns each element occupies.
Use s-* classes to offset elements horizontally.
Use flex helper classes for alignment and distribution.
Utility classes for horizontal text alignment.
Margin and padding utilities follow the baseline rhythm. Spacing classes use consistent vertical increments for layout balance.
Fixed-height image utilities for fast layout composition. Combine .img with height utilities to create consistent image blocks.
Below 900px Gridy switches automatically to 4 columns. All column classes become full width.