| 开发者 | mijstrebor |
|---|---|
| 更新时间 | 2026年8月26日 07:01 |
| 捐献地址: | 去捐款 |
| PHP版本: | 8.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
clamp() functions. Create consistent, scalable margins, padding, and gaps that adapt beautifully from mobile to desktop.
Why Fluid Space Forge?
clamp() functions for fluid spacing across all device sizespx and rem units.space-m-lg { margin: clamp(0.75rem, calc(0.7rem + 0.2vw), 1rem); }
.space-p-md { padding: clamp(0.6rem, calc(0.55rem + 0.18vw), 0.75rem); }
.space-g-sm { gap: clamp(0.4rem, calc(0.35rem + 0.15vw), 0.5rem); }
CSS Custom Properties
Create reusable CSS variables:
:root { --space-lg: clamp(0.75rem, calc(0.7rem + 0.2vw), 1rem); --space-md: clamp(0.6rem, calc(0.55rem + 0.18vw), 0.75rem); }
Tailwind-style Utilities
Generate complete utility class sets:
.mt-lg { margin-top: clamp(...); }
.px-md { padding-left: clamp(...); padding-right: clamp(...); }
.gap-y-sm { row-gap: clamp(...); }
Key Features
clamp() is supported in all modern browsers:
The clamp() CSS function calculates a value between a minimum and maximum, with a preferred value that scales fluidly. It's perfect for responsive spacing that adapts smoothly across all screen sizes.
No! While Fluid Space Forge works beautifully alongside Fluid Font Forge, they are independent plugins. Each can be used separately or together for a complete fluid design system.
Yes! Fluid Space Forge generates standard CSS that works with any WordPress theme, page builder, or block editor.
.space-m-lg)--space-lg).mt-lg, .px-md)Absolutely! You can add unlimited spacing sizes, edit their names, delete sizes, and drag-and-drop to reorder them. The plugin comes with 6 default sizes (xs, sm, md, lg, xl, xxl) that you can customize or replace.
Yes! You can switch between px and rem units at any time. The plugin recalculates all values when you switch units.
The clamp() function is supported in modern browsers (Chrome 79+, Firefox 75+, Safari 13.1+, Edge 79+). For older browser support, you may need to provide fallback values.
Yes! Each tab has a "Reset" button that restores the original 6 default sizes. Your custom settings are also preserved and can be restored.
Yes! The plugin includes autosave functionality that saves your changes every 10 seconds. You can also manually save at any time using the Save button.