Overview
Fluid scaling means sizes change smoothly as the viewport changes. In the Skelementor bundle, many utilities resolve toclamp() expressions so sizes stay proportional across screen widths without you adding extra class layers for “mobile vs desktop” on those properties.
How clamp() works
clamp(min, preferred, max) picks a live value between a floor and a ceiling:
- min — the smallest the browser may use.
- preferred — usually a
calc()that blends rem with viewport units (vw), so the value inches up or down as the viewport grows or shrinks. - max — the largest the browser may use.
[min, max], so you get smooth scaling with hard limits at both ends. That is the usual pattern behind fluid typography and fluid spacing in the bundled CSS.
Why fluid scaling matters
- Readable proportions — type and spacing do not stay stuck at one pixel size; they track the viewport so small screens do not feel oversized and large screens do not feel pinched.
- One name, responsive behavior — you keep using the same utility (for example
text-lgorp-4) instead of juggling separate fixed values per breakpoint for those families. - Aligned with the framework — fluid behavior is built into the listed families below; you do not need a parallel naming scheme for “responsive” versions of those utilities.
skelementor-utilities.css from the plugin package; treat that file as the exact source if you need to inspect a rule.
Families that use fluid scaling
These class families ship with fluid /clamp()-style values in the bundle (names mirror how you use them in markup):
| Family | What it controls | Where to read more |
|---|---|---|
text-* | Font size | Font size |
m-*, mx-*, my-*, mt-*, mb-*, ml-*, mr-* | Margin | Margin |
p-*, px-*, py-*, pt-*, pb-* | Padding | Padding |
gap-*, gap-x-*, gap-y-* | Flex (and grid) gap | Gap |
max-w-* | Max width | Max width |
border-* (width) | Border width (via variables such as var(--border-*)) | Border width |
What is not fluid here
leading-* uses fixed pixel line-height in the bundle, not clamp() — see Line height. Many other helpers (font weights, colors, most layout keywords, component presets, and more) are also intentionally fixed. When you need a structural change at a width threshold (for example flex-col → flex-row), use --on-* suffixes on the supported utilities — Breakpoints.
Custom utilities
You can author fluid scaling in your own CSS that Skelementor imports:clamp(), min(), max(), and calc() are valid in custom utilities when you need a one-off curve or spacing ramp. See Custom CSS for supported value formats and the import workflow.
Related
Font size
Bundled
text-* scale and clamp() definitionsMargin
m-* and directional margin utilitiesPadding
p-* and directional padding utilitiesGap
gap-*, gap-x-*, and gap-y-*Max width
max-w-* capsBorder width
border-* widths and var(--border-*)Breakpoints
--on-* suffixes for structural utilitiesCustom CSS
Writing and importing utilities with fluid scaling

