Grid Fr Auto

GridFrAuto creates a two column grid. The first column is 1fr and the second column is auto. It also takes care of minmax declarations for you.


Fr and Auto

GridFrAuto creates a two column grid with fr and auto.

index.html
<div class="GridFrAuto">
<div> ... </div>
<div> ... </div>
</div>

Fixed-width sidebar

Add a width to the auto grid item to create a fixed-width sidebar.

index.html
<div class="GridFrAuto">
<div> ... </div>
<div class="w-[10rem]"> ... </div>
</div>

Combine with SingleCol to make responsive layouts

By itself, GridFrAuto is not responsive-friendly, but you can combine it with SingleCol on smaller breakpoints to make great responsive layouts.

index.html
<div class="SingleCol md:GridFrAuto">
<div></div>
<div class="md:w-[10rem]"></div>
</div>
Resize to see this work!