Universal style props

We control various style aspects, by adding the following props to any Mantine component (instance):

spacing

PropCSS PropertyTheme key
mmargintheme.spacing
mtmarginToptheme.spacing
mbmarginBottomtheme.spacing
mlmarginLefttheme.spacing
mrmarginRighttheme.spacing
mxmarginRight, marginLefttheme.spacing
mymarginTop, marginBottomtheme.spacing
ppaddingtheme.spacing
ptpaddingToptheme.spacing
pbpaddingBottomtheme.spacing
plpaddingLefttheme.spacing
prpaddingRighttheme.spacing
pxpaddingRight, paddingLefttheme.spacing
pypaddingTop, paddingBottomtheme.spacing

typography

PropCSS PropertyTheme key
fffontFamily
fzfontSizetheme.fontSizes
fwfontWeight
ltsletterSpacing
tatextAlign
lhlineHeighttheme.lineHeights
fsfontStyle
tttextTransform
tdtextDecoration

size

PropCSS PropertyTheme key
wwidththeme.spacing
miwminWidththeme.spacing
mawmaxWidththeme.spacing
hheighttheme.spacing
mihminHeighttheme.spacing
mahmaxHeighttheme.spacing

position

PropCSS PropertyTheme key
posposition
toptop
leftleft
bottombottom
rightright
insetinset

other props

PropCSS PropertyTheme key
displaydisplay
flexflex
bdborder
bdrsborderRadius
bgbackgroundtheme.colors
bgszbackgroundSize
bgpbackgroundPosition
bgrbackgroundRepeat
bgabackgroundAttachment
ccolortheme.colors gray.5 blue
opacityopacity

responsiveness: provide alternative values.

Instead of providing a single value, we provide an object with alternative values. Most of the time, we provide two values:

<Flex
 direction=	{{ base: 'column',sm: 'row' }}
 gap=		{{ base: 'sm', 	sm: 'lg' }}
 justify=	{{ base: 'sm', 	sm: 'lg' }}
>
  • the base value provides the mobile-centric, default value. Its exact scope depends on which other breakpoints we use, but it always includes regular smartphones. For reference, iPhones are under 450p width, with standard-size iPhones under 400p.
    • The xs breakpoint activates at 576p. It doesn't apply to regular smartphones but applies to phablets and bigger devices.
    • The sm breakpoints activates at 768p (48em). It doesn't apply to phablets, but applies to tablets and wider screens. For reference, iPads start at 768px.
earlymorning logo

© Antoine Weber 2026 - All rights reserved

Universal style props

We control various style aspects, by adding the following props to any Mantine component (instance):

spacing

PropCSS PropertyTheme key
mmargintheme.spacing
mtmarginToptheme.spacing
mbmarginBottomtheme.spacing
mlmarginLefttheme.spacing
mrmarginRighttheme.spacing
mxmarginRight, marginLefttheme.spacing
mymarginTop, marginBottomtheme.spacing
ppaddingtheme.spacing
ptpaddingToptheme.spacing
pbpaddingBottomtheme.spacing
plpaddingLefttheme.spacing
prpaddingRighttheme.spacing
pxpaddingRight, paddingLefttheme.spacing
pypaddingTop, paddingBottomtheme.spacing

typography

PropCSS PropertyTheme key
fffontFamily
fzfontSizetheme.fontSizes
fwfontWeight
ltsletterSpacing
tatextAlign
lhlineHeighttheme.lineHeights
fsfontStyle
tttextTransform
tdtextDecoration

size

PropCSS PropertyTheme key
wwidththeme.spacing
miwminWidththeme.spacing
mawmaxWidththeme.spacing
hheighttheme.spacing
mihminHeighttheme.spacing
mahmaxHeighttheme.spacing

position

PropCSS PropertyTheme key
posposition
toptop
leftleft
bottombottom
rightright
insetinset

other props

PropCSS PropertyTheme key
displaydisplay
flexflex
bdborder
bdrsborderRadius
bgbackgroundtheme.colors
bgszbackgroundSize
bgpbackgroundPosition
bgrbackgroundRepeat
bgabackgroundAttachment
ccolortheme.colors gray.5 blue
opacityopacity

responsiveness: provide alternative values.

Instead of providing a single value, we provide an object with alternative values. Most of the time, we provide two values:

<Flex
 direction=	{{ base: 'column',sm: 'row' }}
 gap=		{{ base: 'sm', 	sm: 'lg' }}
 justify=	{{ base: 'sm', 	sm: 'lg' }}
>
  • the base value provides the mobile-centric, default value. Its exact scope depends on which other breakpoints we use, but it always includes regular smartphones. For reference, iPhones are under 450p width, with standard-size iPhones under 400p.
    • The xs breakpoint activates at 576p. It doesn't apply to regular smartphones but applies to phablets and bigger devices.
    • The sm breakpoints activates at 768p (48em). It doesn't apply to phablets, but applies to tablets and wider screens. For reference, iPads start at 768px.