fix: use spacing values from design system

This commit is contained in:
Vukašin Vojinović 2024-09-17 23:25:01 +02:00 committed by Ashley Wulber
parent a415eb60bb
commit 69e6fb63fb

View file

@ -98,27 +98,27 @@ impl From<Density> for Spacing {
match value { match value {
Density::Compact => Spacing { Density::Compact => Spacing {
space_none: 0, space_none: 0,
space_xxxs: 2, space_xxxs: 4,
space_xxs: 4, space_xxs: 4,
space_xs: 8, space_xs: 8,
space_s: 12, space_s: 8,
space_m: 16, space_m: 16,
space_l: 24, space_l: 24,
space_xl: 32, space_xl: 32,
space_xxl: 48, space_xxl: 48,
space_xxxl: 72, space_xxxl: 64,
}, },
Density::Spacious => Spacing { Density::Spacious => Spacing {
space_none: 0, space_none: 4,
space_xxxs: 4, space_xxxs: 8,
space_xxs: 8, space_xxs: 12,
space_xs: 16, space_xs: 16,
space_s: 20, space_s: 24,
space_m: 32, space_m: 32,
space_l: 40, space_l: 48,
space_xl: 56, space_xl: 64,
space_xxl: 72, space_xxl: 128,
space_xxxl: 144, space_xxxl: 160,
}, },
Density::Standard => Spacing { Density::Standard => Spacing {
space_none: 0, space_none: 0,