Usage of CSS variables in the Card component #8030
ccrvlh
started this conversation in
Feature requests
Replies: 1 comment 1 reply
-
You can customize backgroud-color Card styles with Styles API using classNames. You do not need to use CSS variables for this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the card component hardcodes the colors used, white and dark-6:
mantine/packages/@mantine/core/src/components/Card/Card.module.css
Lines 11 to 18 in 40e5b1b
Looking at the CSS variables, it seems it would be helpful to have this use
--mantine-colors-default
or something similar. That would allow customization via hecssVariableOverride
without having to create a custom component with the Theme.Beta Was this translation helpful? Give feedback.
All reactions