Tailwind Class Sorter
Sort Tailwind classes and detect conflicting utilities with a winner explanation.
OpenSketch an even grid with sliders and copy the template that produces it.
Drag the column slider between 1 and 6 equal tracks.
Set 1 to 4 rows to see how many cells the grid holds.
Pick a gutter from 0 to 48 px and watch the cells space out.
Copy the .grid CSS or save it as grid.css.
A product listing needs four equal columns with a consistent gutter, and you would rather not type grid-template-columns from memory again. Drag the sliders, check the numbered cells, and paste the rule into your stylesheet.
Three sliders drive the layout: columns from 1 to 6, rows from 1 to 4 and gap from 0 to 48 px. The preview fills the grid with numbered cells so you can count tracks at a glance, and the output is a .grid rule with display: grid, grid-template-columns: repeat(n, 1fr), grid-template-rows: repeat(n, 1fr) and gap. Every track is an equal fraction of the space, which suits card lists, galleries and dashboards with uniform tiles.
A practical tip: grid-template-rows with 1fr only splits height when the container has a defined height. For content-driven lists, delete the rows line and let the browser create rows automatically as items are added. If you need responsive columns, replace the column count with repeat(auto-fill, minmax(220px, 1fr)) by hand. For a one-direction row of items, the flexbox layout generator is simpler, and a CSS masonry columns snippet handles tiles of uneven height.
The rule updates as you drag, and you can download it as grid.css for a starter file.
Keyboard shortcut
Answers for this tool. For site-wide help, open the FAQ hub.
Not with the sliders, since every track is 1fr. Edit the copied rule, for example grid-template-columns: 2fr 1fr 1fr, to give the first column twice the space.
No. The output covers columns, rows and gap only. Named areas are easier to write by hand once the track count is settled.
The browser adds implicit rows below the grid you defined. Their height follows grid-auto-rows, which is auto unless you set it.