fix: use spacing values from design system
This commit is contained in:
parent
a415eb60bb
commit
69e6fb63fb
1 changed files with 11 additions and 11 deletions
|
|
@ -98,27 +98,27 @@ impl From<Density> for Spacing {
|
|||
match value {
|
||||
Density::Compact => Spacing {
|
||||
space_none: 0,
|
||||
space_xxxs: 2,
|
||||
space_xxxs: 4,
|
||||
space_xxs: 4,
|
||||
space_xs: 8,
|
||||
space_s: 12,
|
||||
space_s: 8,
|
||||
space_m: 16,
|
||||
space_l: 24,
|
||||
space_xl: 32,
|
||||
space_xxl: 48,
|
||||
space_xxxl: 72,
|
||||
space_xxxl: 64,
|
||||
},
|
||||
Density::Spacious => Spacing {
|
||||
space_none: 0,
|
||||
space_xxxs: 4,
|
||||
space_xxs: 8,
|
||||
space_none: 4,
|
||||
space_xxxs: 8,
|
||||
space_xxs: 12,
|
||||
space_xs: 16,
|
||||
space_s: 20,
|
||||
space_s: 24,
|
||||
space_m: 32,
|
||||
space_l: 40,
|
||||
space_xl: 56,
|
||||
space_xxl: 72,
|
||||
space_xxxl: 144,
|
||||
space_l: 48,
|
||||
space_xl: 64,
|
||||
space_xxl: 128,
|
||||
space_xxxl: 160,
|
||||
},
|
||||
Density::Standard => Spacing {
|
||||
space_none: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue