Skip to content

Commit 662905e

Browse files
authored
Add subgrid utilities (#12298)
* Add subgrid utilities * Update CHANGELOG --------- Co-authored-by: Adam Wathan <[email protected]>
1 parent e13ae7b commit 662905e

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
- Support loading plugins by package / file name ([#12087](https://github.com/tailwindlabs/tailwindcss/pull/12087))
3131
- Increase default values for `grid-rows-*` utilities from 1–6 to 1–12 ([#12180](https://github.com/tailwindlabs/tailwindcss/pull/12180))
3232
- Add `size-*` utilities ([#12287](https://github.com/tailwindlabs/tailwindcss/pull/12287))
33+
- Add utilities for CSS subgrid ([#12298](https://github.com/tailwindlabs/tailwindcss/pull/12298))
3334

3435
### Changed
3536

stubs/config.full.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ module.exports = {
486486
},
487487
gridTemplateColumns: {
488488
none: 'none',
489+
subgrid: 'subgrid',
489490
1: 'repeat(1, minmax(0, 1fr))',
490491
2: 'repeat(2, minmax(0, 1fr))',
491492
3: 'repeat(3, minmax(0, 1fr))',
@@ -501,6 +502,7 @@ module.exports = {
501502
},
502503
gridTemplateRows: {
503504
none: 'none',
505+
subgrid: 'subgrid',
504506
1: 'repeat(1, minmax(0, 1fr))',
505507
2: 'repeat(2, minmax(0, 1fr))',
506508
3: 'repeat(3, minmax(0, 1fr))',

tests/plugins/__snapshots__/gridTemplateColumns.test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,9 @@ exports[`should test the 'gridTemplateColumns' plugin 1`] = `
6161
.grid-cols-none {
6262
grid-template-columns: none;
6363
}
64+
65+
.grid-cols-subgrid {
66+
grid-template-columns: subgrid;
67+
}
6468
"
6569
`;

tests/plugins/__snapshots__/gridTemplateRows.test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,9 @@ exports[`should test the 'gridTemplateRows' plugin 1`] = `
6161
.grid-rows-none {
6262
grid-template-rows: none;
6363
}
64+
65+
.grid-rows-subgrid {
66+
grid-template-rows: subgrid;
67+
}
6468
"
6569
`;

0 commit comments

Comments
 (0)