Flex Shrink
Controls the shrinkage of the flex items.
Utility | Properties |
---|---|
Error: 429 |
This example sets the flex-shrink property to 1. The fs-1 utility allows the item to shrink if necessary, proportionally to other items with the same property, when there is not enough space in the container.
A
B
C
<div class="d-f g-4 rad-1 tc-white" id="area"> <div class="ai-c bg-indigo-8 d-f d-14 f-none jc-c p-4 rad-1">A</div> <div class="ai-c bg-indigo d-f fs-1 h-14 jc-c p-4 rad-1 w-64">B</div> <div class="ai-c bg-indigo-8 d-f d-14 f-none jc-c p-4 rad-1">C</div></div>
Conditional styles
Learn how to override existing utilities based on the userโs screen size or other factors, such as hover states.
Media modifier
You can combine responsive breakpoints like sm:-*
,md:-*
, lg:-*
, and xxl:-*
allows targeting specific utilities in different viewports.
<div class="fs-1 md:fs-2 ..."></div>
Hover modifier
Alternatively, you can apply :hover
by using h:-*
utility to override elements and change their values when hovering over them.
<div class="fs-1 h:fs-2 ..."></div>