Utility families
Grid
Columns, rows, placement and gaps of CSS grids.
grid-template-columns
cols:| Class | CSS properties |
|---|---|
cols: |
grid-template-columns |
-
Keywords:
123456789101112none - 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:
123456none - 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:
123456789101112full - 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:
123456full - 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;
}