ConstOptionalactiveClassName?: stringOptionalautoContrast?: booleanDetermines whether text color must be changed based on the given color prop in filled variant
For example, if you pass color="blue.1" to Button component, text color will be changed to var(--mantine-color-black)
Default value – false
Optionalblack?: stringBlack color
Optionalbreakpoints?: {Object of values that are used to control breakpoints in all components, values are expected to be defined in em
Optionalcolors?: {Object of colors, key is color name, value is an array of at least 10 strings (colors)
Optionalcomponents?: {Allows adding classNames, styles and defaultProps to any component
OptionalcursorType?: "default" | "pointer"Determines which cursor type will be used for interactive elements
default – cursor that is used by native HTML elements, for example, input[type="checkbox"] has cursor: default stylespointer – sets cursor: pointer on interactive elements that do not have these styles by defaultOptionaldefaultGradient?: { deg?: number; from?: string; to?: string }Default gradient configuration for components that support variant="gradient"
OptionaldefaultRadius?: MantineRadiusKey of theme.radius or any valid CSS value. Default border-radius used by most components
OptionalfocusClassName?: stringClass added to the elements that have focus styles, for example, Button or ActionIcon.
Overrides theme.focusRing property.
OptionalfocusRing?: "auto" | "always" | "never"Controls focus ring styles. Supports the following options:
auto – focus ring is displayed only when the user navigates with keyboard (default value)always – focus ring is displayed when the user navigates with keyboard and mousenever – focus ring is always hidden (not recommended)OptionalfontFamily?: stringFont-family used in all components, system fonts by default
OptionalfontFamilyMonospace?: stringMonospace font-family, used in code and other similar components, system fonts by default
OptionalfontSizes?: {Object of values that are used to control font-size property in all components
OptionalfontSmoothing?: booleanDetermines whether font-smoothing property should be set on the body, true by default
Optionalheadings?: {Controls various styles of h1-h6 elements, used in Typography and Title components
OptionallineHeights?: {Object of values that are used to control line-height property in Text component
OptionalluminanceThreshold?: numberDetermines which luminance value is used to determine if text color should be light or dark.
Used only if theme.autoContrast is set to true.
Default value is 0.3
Optionalother?: { [key: string]: any }Any other properties that you want to access with the theme objects
OptionalprimaryColor?: stringKey of theme.colors, hex/rgb/hsl values are not supported.
Determines which color will be used in all components by default.
Default value – blue.
OptionalprimaryShade?: Index of theme.colors[color].
Primary shade is used in all components to determine which color from theme.colors[color] should be used.
Can be either a number (0–9) or an object to specify different color shades for light and dark color schemes.
Default value { light: 6, dark: 8 }
For example, { primaryShade: 6 } // shade 6 is used both for dark and light color schemes { primaryShade: { light: 6, dark: 7 } } // different shades for dark and light color schemes
Optionalradius?: {Object of values that are used to set border-radius in all components that support it
OptionalrespectReducedMotion?: booleanDetermines whether user OS settings to reduce motion should be respected, false by default
Optionalscale?: numberRem units scale, change if you customize font-size of <html /> element
default value is 1 (for 100%/16px font-size on <html />)
Optionalshadows?: {Object of values that are used to add box-shadow styles to components that support shadow prop
Optionalspacing?: {Object of values that are used to set various CSS properties that control spacing between elements
OptionalvariantColorResolver?: VariantColorsResolverFunction to resolve colors based on variant.
Can be used to deeply customize how colors are applied to Button, ActionIcon, ThemeIcon
and other components that use colors from theme.
Optionalwhite?: stringWhite color
Class added to the elements that have active styles, for example,
ButtonandActionIcon