> This page is for Flowkit CSS Framework, version v2 (default).
> For other versions, use one of these documentation indexes:
> - v2 (default): https://developers.webflow.com/flowkit/v2.0.0/llms.txt
> - v1: https://developers.webflow.com/flowkit/v1.0.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Utility Classes

> Utilities are a collection of classes fine-tune layouts and components that render on a website.

All utility classes use descriptive naming that describes exactly what they are doing.

Utilities are a collection of modifier classes that fine-tune layouts and components and keep consistency. You can add a utility class as a combo class to adjust a behavior of the main class or apply it as a main class to define the functionality of an element. For instance, if you want to add a shadow to a card, you can add shadow utility class as a combo class for a card:

## Margins and Padding

Margins and padding are applied to sections, containers, and other elements to define inner spacing or distance between elements.

### Margin

Margin defines the space **outside** of an element.

Margin

Padding

Content

Utility classes use this structure:
margin-`direction`\_`value`

**Margin All**

* Value: `none`, `xxsmall`, `xsmall`, `small`, `medium`, `large`, `xlarge`, `xxlarge`, `auto`

Example:
margin\_xxsmall , margin\_none

**Margin Vertical**

* Direction: `top`, `bottom`
* Value: `none`, `xxsmall`, `xsmall`, `small`, `medium`, `large`, `xlarge`, `xxlarge`, `auto`

Example:
margin-top\_xsmall , margin-bottom\_large

**Margin Horizontal**

* Direction: `left`, `right`, `all`
* Value: `none`, `xxsmall`, `xsmall`, `small`, `medium`, `auto`

Example:
margin-right\_small , margin-left\_auto

### Padding

Padding defines the space **inside** of an element.

Margin

Padding

Content

Utility classes use this structure:
padding-`direction`\_`value`

**Padding Vertical**

* Direction: `top`, `bottom`
* Value: `none`, `xxsmall`, `xsmall`, `small`, `medium`, `large`, `xlarge`, `xxlarge`

Example:
padding-top\_small

**Padding Horizontal**

* Direction: `left`, `right`
* Value: `none`, `xxsmall`, `xsmall`, `small`, `medium`, `large`

Example:
padding-right\_xsmall

**Padding Around**

* Value: `none`, `xxsmall`, `xsmall`, `small`, `medium`, `large`, `xlarge`, `xxlarge`

Example:
padding\_none , padding\_large

### Responsive Spacing

On smaller screens (like **Mobile Landscape**), some margin and padding utility classes will use **smaller spacing variables** than their desktop counterparts.

For example:

margin-top\_xlarge

* 6x on desktop,
* 3x on mobile devices.

This behavior ensures better vertical rhythm and balance on smaller screens without needing to apply breakpoint-specific classes manually.

---

## Display and Overflow

Utilities to control layout visibility and content flow.

| Class                 | Description                       |
| --------------------- | --------------------------------- |
| display\_block        | Forces element to behave as block |
| display\_inline-block | Element behaves like inline-block |
| display\_none         | Hides element from layout         |
| overflow\_clip        | Clips overflow without scroll     |
| overflow\_hidden      | Hides overflow, no scroll         |
| overflow\_visible     | Makes overflow content visible    |
| overflow\_auto        | Scrollbars appear as needed       |
| screen-reader         | Visible to screen readers only    |

---

## Position

Controls element positioning behavior across breakpoints.

<path d="M18 11H19V8.366L21.2811 9.68301L21.7811 8.81699L19.5 7.49999L21.7811 6.18301L21.2811 5.31699L19 6.63399V4H18V6.63395L15.719 5.31699L15.219 6.18301L17.5 7.49999L15.2189 8.81699L15.7189 9.68301L18 8.36604V11Z" fill="currentColor" /><path d="M5.5 6H14V7H5.5C5.22386 7 5 7.22386 5 7.5V17H19V12H20V17L23 17.0273V18.0273H1V17.0273L4 17V7.5C4 6.67157 4.67157 6 5.5 6Z" fill="currentColor" />

**Desktop**

| Class                            | Description                          |
| -------------------------------- | ------------------------------------ |
| position\_relative               | Offsets relative to normal position  |
| position\_absolute               | Removes from flow, absolute position |
| position\_fixed                  | Fixed relative to viewport           |
| position\_fixed is-top           | Fixed to top edge                    |
| position\_fixed is-left          | Fixed to left edge                   |
| position\_fixed is-right         | Fixed to right edge                  |
| position\_sticky                 | Sticks to top on scroll              |
| position\_sticky is-top\_large   | Custom offset sticky                 |
| position\_sticky is-desktop-only | Sticky only on desktop               |
| position\_static                 | Default positioning                  |
| z-index\_1                       | Layer stacking with values 1–5       |

<path d="M9.99658 17L13.9966 17.0273L14.0034 16.0274L10.0034 16L9.99658 17Z" fill="currentColor" /><path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 5C6.67157 5 6 5.67157 6 6.5V17.5C6 18.3284 6.67157 19 7.5 19H16.5C17.3284 19 18 18.3284 18 17.5V6.5C18 5.67157 17.3284 5 16.5 5H7.5ZM7 6.5C7 6.22386 7.22386 6 7.5 6H16.5C16.7761 6 17 6.22386 17 6.5V17.5C17 17.7761 16.7761 18 16.5 18H7.5C7.22386 18 7 17.7761 7 17.5V6.5Z" fill="currentColor" />

**Tablet**

| Class                      | Description                     |
| -------------------------- | ------------------------------- |
| position\_absolute\_tablet | Set position absolute on tablet |
| position\_relative\_tablet | Set position relative on tablet |
| position\_static\_tablet   | Set position static on tablet   |

<path d="M11 17H14V16H11V17Z" fill="currentColor" /><path fill-rule="evenodd" clip-rule="evenodd" d="M17 6.5C17 5.67157 16.3284 5 15.5 5H9.5C8.67157 5 8 5.67157 8 6.5V17.5C8 18.3284 8.67157 19 9.5 19H15.5C16.3284 19 17 18.3284 17 17.5V6.5ZM15.5 6C15.7761 6 16 6.22386 16 6.5V17.5C16 17.7761 15.7761 18 15.5 18H9.5C9.22386 18 9 17.7761 9 17.5V6.5C9 6.22386 9.22386 6 9.5 6L15.5 6Z" fill="currentColor" />

**Mobile**

| Class                    | Description                |
| ------------------------ | -------------------------- |
| position\_sticky\_mobile | Mobile-only sticky support |

---

## Transform

Controls element translation and rotation.

| Class                | Description                          |
| -------------------- | ------------------------------------ |
| move-up\_15percent   | Shifts element upward by 15%         |
| move-up\_50percent   | Shifts element upward by 50%         |
| move-down\_15percent | Shifts element downward by 15%       |
| move-down\_25percent | Shifts element downward by 25%       |
| move-down\_50percent | Shifts element downward by 50%       |
| rotate\_-12deg       | Rotates element left by 12 degrees   |
| rotate\_-4.5deg      | Rotates element left by 4.5 degrees  |
| rotate\_12deg        | Rotates element right by 12 degrees  |
| rotate\_4.5deg       | Rotates element right by 4.5 degrees |

---

## Width

Controls fixed, responsive, and percentage-based width settings.

<path d="M18 11H19V8.366L21.2811 9.68301L21.7811 8.81699L19.5 7.49999L21.7811 6.18301L21.2811 5.31699L19 6.63399V4H18V6.63395L15.719 5.31699L15.219 6.18301L17.5 7.49999L15.2189 8.81699L15.7189 9.68301L18 8.36604V11Z" fill="currentColor" /><path d="M5.5 6H14V7H5.5C5.22386 7 5 7.22386 5 7.5V17H19V12H20V17L23 17.0273V18.0273H1V17.0273L4 17V7.5C4 6.67157 4.67157 6 5.5 6Z" fill="currentColor" />

**Desktop**

| Class             | Description                   |
| ----------------- | ----------------------------- |
| max-width\_xsmall | Restricts max width to xsmall |
| max-width\_small  | Restricts max width to small  |
| max-width\_medium | Restricts max width to medium |
| max-width\_large  | Restricts max width to large  |
| width\_auto       | Width auto based on content   |
| width\_small      | Small fixed width             |
| width\_medium     | Medium fixed width            |
| width\_35percent  | Width set to 35%              |
| width\_40percent  | Width set to 40%              |
| width\_50percent  | Width set to 50%              |
| width\_60percent  | Width set to 60%              |
| width\_100percent | Width set to 100%             |

<path d="M9.99658 17L13.9966 17.0273L14.0034 16.0274L10.0034 16L9.99658 17Z" fill="currentColor" /><path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 5C6.67157 5 6 5.67157 6 6.5V17.5C6 18.3284 6.67157 19 7.5 19H16.5C17.3284 19 18 18.3284 18 17.5V6.5C18 5.67157 17.3284 5 16.5 5H7.5ZM7 6.5C7 6.22386 7.22386 6 7.5 6H16.5C16.7761 6 17 6.22386 17 6.5V17.5C17 17.7761 16.7761 18 16.5 18H7.5C7.22386 18 7 17.7761 7 17.5V6.5Z" fill="currentColor" />

**Tablet**

| Class                     | Description                   |
| ------------------------- | ----------------------------- |
| width\_50percent\_tablet  | Sets width to 50% on tablets  |
| width\_60percent\_tablet  | Sets width to 60% on tablets  |
| width\_100percent\_tablet | Sets width to 100% on tablets |

<path d="M11 17H14V16H11V17Z" fill="currentColor" /><path fill-rule="evenodd" clip-rule="evenodd" d="M17 6.5C17 5.67157 16.3284 5 15.5 5H9.5C8.67157 5 8 5.67157 8 6.5V17.5C8 18.3284 8.67157 19 9.5 19H15.5C16.3284 19 17 18.3284 17 17.5V6.5ZM15.5 6C15.7761 6 16 6.22386 16 6.5V17.5C16 17.7761 15.7761 18 15.5 18H9.5C9.22386 18 9 17.7761 9 17.5V6.5C9 6.22386 9.22386 6 9.5 6L15.5 6Z" fill="currentColor" />

**Mobile Landscape**

| Class                       | Description        |
| --------------------------- | ------------------ |
| width\_70percent\_mobile-l  | Sets width to 70%  |
| width\_80percent\_mobile-l  | Sets width to 80%  |
| width\_100percent\_mobile-l | Sets width to 100% |

<path d="M11 17H14V16H11V17Z" fill="currentColor" /><path fill-rule="evenodd" clip-rule="evenodd" d="M17 6.5C17 5.67157 16.3284 5 15.5 5H9.5C8.67157 5 8 5.67157 8 6.5V17.5C8 18.3284 8.67157 19 9.5 19H15.5C16.3284 19 17 18.3284 17 17.5V6.5ZM15.5 6C15.7761 6 16 6.22386 16 6.5V17.5C16 17.7761 15.7761 18 15.5 18H9.5C9.22386 18 9 17.7761 9 17.5V6.5C9 6.22386 9.22386 6 9.5 6L15.5 6Z" fill="currentColor" />

**Mobile Portrait**

| Class                     | Description        |
| ------------------------- | ------------------ |
| width\_100percent\_mobile | Sets width to 100% |

---

## Height

Controls element height and minimum height behavior across breakpoints.

<path d="M18 11H19V8.366L21.2811 9.68301L21.7811 8.81699L19.5 7.49999L21.7811 6.18301L21.2811 5.31699L19 6.63399V4H18V6.63395L15.719 5.31699L15.219 6.18301L17.5 7.49999L15.2189 8.81699L15.7189 9.68301L18 8.36604V11Z" fill="currentColor" /><path d="M5.5 6H14V7H5.5C5.22386 7 5 7.22386 5 7.5V17H19V12H20V17L23 17.0273V18.0273H1V17.0273L4 17V7.5C4 6.67157 4.67157 6 5.5 6Z" fill="currentColor" />

**Desktop**

| Class                  | Description                          |
| ---------------------- | ------------------------------------ |
| height\_100percent     | Full height of parent                |
| height\_100dvh         | Full dynamic viewport height         |
| min-height\_100percent | Minimum height 100%                  |
| min-height\_100dvh     | Minimum height 100% dynamic viewport |
| height\_50vh           | 50% of viewport height               |
| height\_100vh          | 100% of viewport height              |

<path d="M9.99658 17L13.9966 17.0273L14.0034 16.0274L10.0034 16L9.99658 17Z" fill="currentColor" /><path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 5C6.67157 5 6 5.67157 6 6.5V17.5C6 18.3284 6.67157 19 7.5 19H16.5C17.3284 19 18 18.3284 18 17.5V6.5C18 5.67157 17.3284 5 16.5 5H7.5ZM7 6.5C7 6.22386 7.22386 6 7.5 6H16.5C16.7761 6 17 6.22386 17 6.5V17.5C17 17.7761 16.7761 18 16.5 18H7.5C7.22386 18 7 17.7761 7 17.5V6.5Z" fill="currentColor" />

**Tablet**

| Class                    | Description                     |
| ------------------------ | ------------------------------- |
| height\_auto\_tablet     | Sets height auto on tablets     |
| min-height\_auto\_tablet | Sets min-height auto on tablets |

---

## Border Radius

Controls element corner roundness using utility classes.

### Component Specific

These are helpful when you need to customize or reset corners without affecting the base component class.

* radius\_card
* radius\_button

### Size Specific

Use the radius\_`size` format to control element corner roundness.
The `size` follows t-shirt sizing convention: `small`, `medium`, `large`, `xlarge`, `round`

Example: radius\_large

### Side-specific

These utilities give you full control when working with overlapping sections, containers with flush corners, or when selectively removing roundness.

* radius\_all-0
* radius\_top-0
* radius\_right-0
* radius\_bottom-0
* radius\_left-0

---

## Mask

Use utility mask classes mask\_`direction` to apply directional fades to images or elements.
These are commonly paired with overlay and Image

Apply one of the following as a combo class:

* mask\_top
* mask\_bottom
* mask\_left
* mask\_right
* mask\_fade-horizontal
* mask\_fade-vertical

Example:

image mask\_bottom

<rect width="1280" height="800" fill="#F0F0F0" />

<path fill-rule="evenodd" clip-rule="evenodd" d="M529.954 336.456C529.954 326.991 537.627 319.318 547.092 319.318C556.557 319.318 564.23 326.991 564.23 336.456C564.23 345.92 556.557 353.593 547.092 353.593C537.627 353.593 529.954 345.92 529.954 336.456ZM547.092 313.46C534.392 313.46 524.096 323.755 524.096 336.456C524.096 349.156 534.392 359.451 547.092 359.451C559.792 359.451 570.087 349.156 570.087 336.456C570.087 323.755 559.792 313.46 547.092 313.46ZM611.751 366.971C612.653 366.971 613.504 367.386 614.059 368.097L659.813 426.672L685.27 394.827C685.826 394.131 686.668 393.727 687.558 393.727C688.448 393.727 689.29 394.131 689.846 394.827L759.359 481.782C760.062 482.662 760.198 483.866 759.711 484.88C759.223 485.895 758.197 486.54 757.071 486.54H700.936C700.875 486.54 700.814 486.538 700.754 486.534C700.694 486.538 700.634 486.54 700.573 486.54H522.929C521.809 486.54 520.787 485.902 520.297 484.895C519.806 483.889 519.931 482.691 520.621 481.808L609.443 368.097C609.998 367.386 610.849 366.971 611.751 366.971ZM702.002 480.682L663.52 431.417L687.558 401.346L750.98 480.682H702.002ZM611.751 374.658L528.933 480.682H694.569L611.751 374.658Z" fill="#ABABAB" />

---

## Overlay

Overlay classes are used to create translucent layers above content. They're commonly used to improve readability on background images or to emphasize text.

| Class                | Description                              |
| -------------------- | ---------------------------------------- |
| overlay              | Adds a dark semi-transparent background  |
| overlay is-inverse   | Adds a light semi-transparent background |
| overlay\_opacity-low | Adds a low opacity overlay               |

**Link Overlay**

| Class        | Description                                                                  |
| ------------ | ---------------------------------------------------------------------------- |
| link-overlay | Expands a link to cover its entire container (use inside position: relative) |

**Overlay with Mask**

Combine overlay with directional mask utility classes to create faded on a side images or faded overlays.

Example:

* overlay mask\_top
* overlay mask\_left

---

## Drop Shadow

Add subtle or strong depth to elements using drop shadow utility classes.

* shadow\_xxsmall
* shadow\_xsmall
* shadow\_small
* shadow\_medium
* shadow\_large
* shadow\_xlarge
* shadow\_xxlarge

---

## Typography

These utility classes allow you to control alignment and color of text elements globally or responsively.

### Text Color

These utility classes are used to apply specific text colors to an element.

* text-color\_primary
* text-color\_secondary
* text-color\_inverse
* text-color\_inverse-secondary
* text-color\_accent-primary
* text-color\_accent-secondary
* text-color\_accent-tertiary
* text-color\_accent-on-inverse
* text-color\_accent-on-primary
* text-color\_on-accent-primary
* text-color\_on-accent-secondary
* text-color\_on-overlay

### Text Alignment

Text alignment utilities let you override the default left-aligned behavior.

* text-align\_left
* text-align\_center
* text-align\_right

Responsive modifiers:

* text-align\_center\_tablet
* text-align\_center\_mobile-l
* text-align\_center\_mobile

---

## Misc

| Class        | Description             |
| ------------ | ----------------------- |
| events\_none | Disables pointer events |
| events\_auto | Enables pointer events  |