Expand description
CSS spacing utilities
Provides type-safe spacing definitions including scales and responsive spacing.
§Examples
use rustyle_css::{Spacing, Length};
// Create spacing values
let padding = Spacing::all(Length::rem(1.0));
let margin = Spacing::vh(Length::rem(0.5), Length::rem(1.0));
let custom = Spacing::custom(
Length::rem(1.0), // top
Length::rem(2.0), // right
Length::rem(1.0), // bottom
Length::rem(2.0), // left
);Re-exports§
pub use crate::tokens::spacing::SpacingTokens as SpacingScale;
Structs§
- Responsive
Spacing - Responsive spacing that adapts to breakpoints