Custom Theme Values #1112
-
Hi, Is it possible to edit the theme values? For example, I would like to add more font sizes other than the pre-defined theme values. Something similar like colors would be great as I feel the theme forces us to only have values ranging from xs-xl Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
You can add any amount of extra values to |
Beta Was this translation helpful? Give feedback.
-
How can I access existing theme values from For example:
Alternatively, how can I add new component variants to the theme that extend existing variants, so that I do not need to re-define all of the component styles (e.g. hover, disabled states) for each custom variant? For example:
|
Beta Was this translation helpful? Give feedback.
You can add any amount of extra values to
theme.other
, other values of Mantine theme cannot be changed. https://mantine.dev/theming/extend-theme/#add-your-own-properties-to-theme