Skip to content
Get ready for the next version of Yumma CSS, which is going to be amazing!

Flex

Controls how Flex elements grow and shrink.

Class Property

f-1

flex: 1 1 0%;

f-2

flex: 2 2 0%;

f-3

flex: 3 3 0%;

f-4

flex: 4 4 0%;

f-5

flex: 5 5 0%;

f-6

flex: 6 6 0%;

f-7

flex: 7 7 0%;

f-8

flex: 8 8 0%;

f-auto

flex: 1 1 auto;

f-none

flex: none;

Use the f-none utility to prevent an item from growing or shrinking, keeping it at its default size. Pair it with f-1 to show how flex-grow works when items share space, and f-auto to demonstrate flexible sizing with auto.

A
B
C
<div class="stripes tc-white">
<div class="d-f g-4 h-24 w-full">
<div class="ai-c bg-d-indigo-4 d-f f-none jc-c p-4 rad-2">A</div>
<div class="ai-c bg-indigo d-f f-1 jc-c p-4 rad-2">B</div>
<div class="ai-c bg-d-indigo-4 d-f f-auto jc-c p-4 rad-2">C</div>
</div>
</div>

Using responsive modifiers

Using responsive breakpoints like sm:f-*, md:f-*, lg:f-*, and xxl:f-* allows targeting specific utilities in different viewports.

<div class="f-1 md:f-2 ..."></div>

Using hover modifiers

Using :hover modifiers such as h:f-* allows you to override elements and change their values when hovering over them.

<div class="f-1 h:f-2 ..."></div>