Skip to content

Seed Spacing - v0.0.3

Choose a tag to compare

@ItsJonQ ItsJonQ released this 04 Jul 22:14
· 70 commits to master since this release

Changes

This update adds a spacing utility function that can be used in your .scss code.

spacing($size)

Type: string or number | Default: 0

Accepts keys defined in the $seed-spacing-sizes sass map.

Usage:
// Input
body {
  margin: spacing(3);
}

// Output
body {
  margin: 12px;
}

The benefit of using this function throughout your codebase is to help ensure consistent usage of spacing.