Skip to content

Commit

Permalink
feat: add grid-flow-dense utility
Browse files Browse the repository at this point in the history
  • Loading branch information
sastan committed Oct 3, 2022
1 parent 3d19288 commit 65ea2f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-kangaroos-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@twind/preset-tailwind': patch
---

add `.grid-flow-dense` utility
1 change: 1 addition & 0 deletions packages/preset-tailwind/src/rules.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@
"grid-rows-layout": ".grid-rows-layout{grid-template-rows:200px minmax(900px, 1fr) 100px}",
"grid-flow-row": ".grid-flow-row{grid-auto-flow:row}",
"grid-flow-col": ".grid-flow-col{grid-auto-flow:column}",
"grid-flow-dense": ".grid-flow-dense{grid-auto-flow:dense}",
"auto-rows-auto": ".auto-rows-auto{grid-auto-rows:auto}",
"auto-rows-min": ".auto-rows-min{grid-auto-rows:min-content}",
"auto-rows-max": ".auto-rows-max{grid-auto-rows:max-content}",
Expand Down
1 change: 1 addition & 0 deletions packages/preset-tailwind/src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ const rules: Rule<TailwindTheme>[] = [

// Grid Auto Flow
['grid-flow-((row|col)(-dense)?)', 'gridAutoFlow', (match) => spacify(columnify(match))],
['grid-flow-(dense)', 'gridAutoFlow'],

// Grid Auto Columns
['auto-cols-', fromTheme('gridAutoColumns')],
Expand Down

0 comments on commit 65ea2f6

Please sign in to comment.