Skip to content

Document row scales #1733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pages/docs/grid-template-rows.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Use the `grid-rows-{n}` utilities to create grids with _n_ equally sized rows.

### Customizing your theme

By default, Tailwind includes `grid-template-row` utilities for creating basic grids with up to 6 equal width rows. You can customize these values by editing `theme.gridTemplateRows` or `theme.extend.gridTemplateRows` in your `tailwind.config.js` file.
By default, Tailwind includes `grid-template-row` utilities for creating basic grids with up to 12 equal width rows. You can customize these values by editing `theme.gridTemplateRows` or `theme.extend.gridTemplateRows` in your `tailwind.config.js` file.

You have direct access to the `grid-template-rows` CSS property here so you can make your custom rows values as generic or as complicated and site-specific as you like.

Expand All @@ -65,8 +65,8 @@ You have direct access to the `grid-template-rows` CSS property here so you can
theme: {
extend: {
gridTemplateRows: {
// Simple 8 row grid
+ '8': 'repeat(8, minmax(0, 1fr))',
// Simple 16 row grid
+ '16': 'repeat(16, minmax(0, 1fr))',

// Complex site-specific row configuration
+ 'layout': '200px minmax(900px, 1fr) 100px',
Expand Down