Flex Shrink
Control how flex items shrink to fit the container.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
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>Responsive Design
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target 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
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:fs-[value]