Utility families

Grid

Columns, rows, placement and gaps of CSS grids.

grid-template-columns

cols:
Class CSS properties
cols: grid-template-columns
  • Keywords: 1 2 3 4 5 6 7 8 9 10 11 12 none
  • Arbitrary values: yes, in brackets
cols:1
.cols\:1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

grid-template-rows

rows:
Class CSS properties
rows: grid-template-rows
  • Keywords: 1 2 3 4 5 6 none
  • Arbitrary values: yes, in brackets
rows:1
.rows\:1 {
  grid-template-rows: repeat(1, minmax(0, 1fr));
}

grid-column

span:
Class CSS properties
span: grid-column
  • Keywords: 1 2 3 4 5 6 7 8 9 10 11 12 full
  • Arbitrary values: yes, in brackets
span:1
.span\:1 {
  grid-column: span 1 / span 1;
}

grid-row

rspan:
Class CSS properties
rspan: grid-row
  • Keywords: 1 2 3 4 5 6 full
  • Arbitrary values: yes, in brackets
rspan:1
.rspan\:1 {
  grid-row: span 1 / span 1;
}

gap-axis

gx: gy:
Class CSS properties
gx: column-gap
gy: row-gap
  • Theme tokens: spacing
  • Arbitrary values: yes, in brackets
gx:8
.gx\:8 {
  column-gap: 2rem;
}
gy:4
.gy\:4 {
  row-gap: 1rem;
}