Skip to main content
Version: 4.x.x (latest)

$space

Props with scale option

PropScale
m or margintheme.spacings
mt or marginToptheme.spacings
mb or marginBottomtheme.spacings
mr or marginRighttheme.spacings
ml or marginLefttheme.spacings
mx or marginXtheme.spacings
my or marginYtheme.spacings
p or paddingtheme.spacings
pt or paddingToptheme.spacings
pb or paddingBottomtheme.spacings
pr or paddingRighttheme.spacings
pl or paddingLefttheme.spacings
px or paddingXtheme.spacings
py or paddingYtheme.spacings
gaptheme.spacings

Types

export type DesygnaSystemSpaceProps = {
m?: DesygnaGenericProp<CSS.Properties["margin"] | DesygnaThemeSpace | number>;
mt?: DesygnaGenericProp<CSS.Properties["marginTop"] | DesygnaThemeSpace | number>;
mb?: DesygnaGenericProp<CSS.Properties["marginBottom"] | DesygnaThemeSpace | number>;
mr?: DesygnaGenericProp<CSS.Properties["marginRight"] | DesygnaThemeSpace | number>;
ml?: DesygnaGenericProp<CSS.Properties["marginLeft"] | DesygnaThemeSpace | number>;
mx?: DesygnaGenericProp<CSS.Properties["marginRight"] | DesygnaThemeSpace | number>;
my?: DesygnaGenericProp<CSS.Properties["marginTop"] | DesygnaThemeSpace | number>;
p?: DesygnaGenericProp<CSS.Properties["padding"] | DesygnaThemeSpace | number>;
pt?: DesygnaGenericProp<CSS.Properties["paddingTop"] | DesygnaThemeSpace | number>;
pb?: DesygnaGenericProp<CSS.Properties["paddingBottom"] | DesygnaThemeSpace | number>;
pr?: DesygnaGenericProp<CSS.Properties["paddingRight"] | DesygnaThemeSpace | number>;
pl?: DesygnaGenericProp<CSS.Properties["paddingLeft"] | DesygnaThemeSpace | number>;
px?: DesygnaGenericProp<CSS.Properties["paddingRight"] | DesygnaThemeSpace | number>;
py?: DesygnaGenericProp<CSS.Properties["paddingTop"] | DesygnaThemeSpace | number>;
margin?: DesygnaGenericProp<CSS.Properties["margin"] | DesygnaThemeSpace | number>;
marginTop?: DesygnaGenericProp<CSS.Properties["marginTop"] | DesygnaThemeSpace | number>;
marginBottom?: DesygnaGenericProp<CSS.Properties["marginBottom"] | DesygnaThemeSpace | number>;
marginRight?: DesygnaGenericProp<CSS.Properties["marginRight"] | DesygnaThemeSpace | number>;
marginLeft?: DesygnaGenericProp<CSS.Properties["marginLeft"] | DesygnaThemeSpace | number>;
marginX?: DesygnaGenericProp<CSS.Properties["marginRight"] | DesygnaThemeSpace | number>;
marginY?: DesygnaGenericProp<CSS.Properties["marginTop"] | DesygnaThemeSpace | number>;
padding?: DesygnaGenericProp<CSS.Properties["padding"] | DesygnaThemeSpace | number>;
paddingTop?: DesygnaGenericProp<CSS.Properties["paddingTop"] | DesygnaThemeSpace | number>;
paddingBottom?: DesygnaGenericProp<CSS.Properties["paddingBottom"] | DesygnaThemeSpace | number>;
paddingRight?: DesygnaGenericProp<CSS.Properties["paddingRight"] | DesygnaThemeSpace | number>;
paddingLeft?: DesygnaGenericProp<CSS.Properties["paddingLeft"] | DesygnaThemeSpace | number>;
paddingX?: DesygnaGenericProp<CSS.Properties["paddingRight"] | DesygnaThemeSpace | number>;
paddingY?: DesygnaGenericProp<CSS.Properties["paddingTop"] | DesygnaThemeSpace | number>;
gap?: DesygnaGenericProp<CSS.Properties["gap"] | DesygnaThemeSpace | number>;
};