Use offset and or variants with safe area utilities
mainThe plugin provides two powerful modifiers to adjust how safe area spacing is applied:
- Offset utilities (
-offset-{value}): Adds a specific Tailwind spacing value on top of the safe area value. For example,pr-safe-offset-4applies right padding equal to the safe area plus the value of4. - Or utilities (
-or-{value}): Applies a minimum value while respecting the safe area. It uses the larger of the safe area or the specified value. For example,pb-safe-or-8applies bottom padding equal to the larger of the safe area or8.
<!-- Offset example: safe area + 4 -->
<div class="pr-safe-offset-4">...</div>
<!-- Or example: max(safe area, 8) -->
<div class="pb-safe-or-8">...</div>