3 // Here we generate spacing utility classes for our sizes for all box sides and axis.
4 // These will output to classes like .px-m (Padding on x-axis, medium size) or .mr-l (Margin right, large size)
6 @mixin spacing($prop, $propLetter) {
7 @each $sizeLetter, $size in vars.$spacing {
8 .#{$propLetter}-#{$sizeLetter} {
9 #{$prop}: $size !important;
11 .#{$propLetter}x-#{$sizeLetter} {
12 #{$prop}-inline-start: $size !important;
13 #{$prop}-inline-end: $size !important;
15 .#{$propLetter}y-#{$sizeLetter} {
16 #{$prop}-top: $size !important;
17 #{$prop}-bottom: $size !important;
19 .#{$propLetter}t-#{$sizeLetter} {
20 #{$prop}-top: $size !important;
22 .#{$propLetter}r-#{$sizeLetter} {
23 #{$prop}-inline-end: $size !important;
25 .#{$propLetter}b-#{$sizeLetter} {
26 #{$prop}-bottom: $size !important;
28 .#{$propLetter}l-#{$sizeLetter} {
29 #{$prop}-inline-start: $size !important;
33 @include spacing('margin', 'm');
34 @include spacing('padding', 'p');
36 @each $sizeLetter, $size in vars.$spacing {
38 gap: $size !important;
40 .gap-x-#{$sizeLetter} {
41 column-gap: $size !important;
43 .gap-y-#{$sizeLetter} {
44 row-gap: $size !important;