# use-spacing
Spacing scale and box-edge primitives for RustUse UI.
## Purpose
`use-spacing` models named spacing steps, numeric scale values, insets, outsets, gaps, padding, and margin metadata. It does not generate CSS or perform renderer-specific layout.
## Example
```rust
use use_spacing::{Gap, SpacingScale, SpacingStep, SpacingValue};
let scale = SpacingScale::new(4);
let medium = SpacingValue::from_step(SpacingStep::Md);
let gap = Gap::new(medium);
assert_eq!(medium.units(), 3);
assert_eq!(scale.resolve(gap.value()), 12);
```
## Main types
- `SpacingScale`
- `SpacingStep`
- `SpacingValue`
- `Inset`
- `Outset`
- `Gap`
- `Padding`
- `Margin`
## Facade relationship
The `use-ui` facade exposes this crate as `use_ui::spacing` when the `spacing` or `full` feature is enabled.