Flex Shrink
Controls the shrinkage of the flex items.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
fs-0flex-shrink: 0;fs-1flex-shrink: 1;fs-2flex-shrink: 2;fs-3flex-shrink: 3;fs-4flex-shrink: 4;fs-5flex-shrink: 5;fs-6flex-shrink: 6;fs-7flex-shrink: 7;fs-8flex-shrink: 8;The items will proportionally shrink to fit the container when there is not enough space.
A
B
C
<div class="d-f g-4 c-white"> <div class="ai-c bg-indigo-8 d-f d-14 f-none jc-c p-4 c-indigo-5">A</div> <div class="ai-c bg-indigo d-f fs-1 h-14 jc-c p-4 w-64 c-white">B</div> <div class="ai-c bg-indigo-8 d-f d-14 f-none jc-c p-4 c-indigo-5">C</div></div>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Responsive design
Target different screen sizes by adding breakpoint prefixes. Styles apply from the specified breakpoint and up.
Target specific viewport sizes with breakpoint prefixes
sm:fs-[value]Small≥640px
md:fs-[value]Medium≥768px
lg:fs-[value]Large≥1024px
xxl:fs-[value]Extra Large≥1536px
Hover state variant
Apply styles conditionally when users hover over an element using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:fs-[value]