Sizing Utilities
Width, height, min/max constraints, viewport sizes, object-fit and object-position.
Fractional Widths
w-full (100%)
w-1-2 (50%)
w-1-3 (33.33%)
w-2-3 (66.66%)
w-1-4 (25%)
w-3-4 (75%)
Percentage Widths
w-25 (25%)
w-50 (50%)
w-75 (75%)
w-100 (100%)
Fixed Pixel Widths
.lp-wf-{n} where n is scale units (1=0.25rem).
wf-16 (4rem)
wf-24 (6rem)
wf-32 (8rem)
wf-48 (12rem)
wf-64 (16rem)
Max-Width Scale
max-w-xs (20rem)
max-w-sm (24rem)
max-w-md (28rem)
max-w-lg (32rem)
max-w-xl (36rem)
max-w-2xl (42rem)
Heights
hf-8
hf-12
hf-16
hf-24
Viewport Units
Use .lp-vh-{25|50|75|100} for viewport heights.
vh-25 (25% of viewport height)
Object Fit
Controls how an <img> fits its container.
object-cover
object-contain
object-fill
CSS Reference
| Class | Description |
|---|---|
.lp-w-{25|50|75|100|auto} | Percentage widths |
.lp-w-{full|1-2|1-3|2-3|1-4|3-4|1-5..4-5|1-6|5-6} | Fractional widths |
.lp-wf-{0..96} | Fixed pixel widths (scale units) |
.lp-h-{25|50|75|100|full|auto} | Percentage heights |
.lp-hf-{0..96} | Fixed pixel heights |
.lp-max-w-{xs..7xl} | Max-width scale (20rem → 80rem) |
.lp-max-w-none | Remove max-width |
.lp-min-w-0 / .lp-min-w-full | Min-width |
.lp-vh-{25|50|75|100} | Viewport height |
.lp-vw-100 | Viewport width |
.lp-min-h-screen / .lp-max-h-screen | Screen-height min/max |
.lp-object-{contain|cover|fill|none|scale-down} | Object fit |
.lp-object-{top|right|bottom|left|center|...} | Object position |