Skip to content

Commit f0efa85

Browse files
committed
Add grid auto cols/rows to Tailwind config
1 parent 5d009bc commit f0efa85

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/tailwind.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,24 @@ const config = {
122122
highlight: "#FF9F1C",
123123
},
124124
},
125+
extend: {
126+
gridTemplateColumns: {
127+
...Object.fromEntries(
128+
Array.from({ length: 12 }, (_, i) => [
129+
`${i + 1}-auto`,
130+
`repeat(${i + 1}, auto)`,
131+
]),
132+
),
133+
},
134+
gridTemplateRows: {
135+
...Object.fromEntries(
136+
Array.from({ length: 12 }, (_, i) => [
137+
`${i + 1}-auto`,
138+
`repeat(${i + 1}, auto)`,
139+
]),
140+
),
141+
},
142+
},
125143
} satisfies PresetsConfig;
126144

127145
export default config;

0 commit comments

Comments
 (0)