Colors and color schemes
dark color scheme
We study the CSS variables and their default value for the Mantine dark color scheme (dark theme).
Note: the CSS variables have the --mantine-color prefix, such as --mantine-color-bright, where bright is the suffix. We trimmed the prefix from the table for readability.
Some colors only trigger when we use the given variant or color prop, for example the default variant or the gray color. The general values apply when not overridden by a variant or a color.
general values
| suffix | value |
|---|---|
| scheme | dark |
| bright | --mantine-color-white |
| text | --mantine-color-dark-0 |
| dimmed | --mantine-color-dark-2 |
| placeholder | --mantine-color-dark-3 |
| body | --mantine-color-dark-7 |
| anchor | --mantine-color-blue-4 |
| error | --mantine-color-red-8 |
| red-text | --mantine-color-red-4 |
variant: "default"
note: it comes with a border.
While the default for hover is dark-5, we can also use dark-4 or dark-6.
| suffix | value |
|---|---|
| default-color | --mantine-color-white |
| default | --mantine-color-dark-6 |
| default-hover | --mantine-color-dark-5 |
| default-border | --mantine-color-dark-4 |
color: "dark"
it comes with values for several variants. It has no border.
| suffix | value |
|---|---|
| dark-text | --mantine-color-dark-4 |
| dark-filled | --mantine-color-dark-8 |
| dark-filled-hover | --mantine-color-dark-7 |
| dark-light | rgba(36, 36, 36, 0.15) |
| dark-light-hover | rgba(36, 36, 36, 0.2) |
| dark-light-color | --mantine-color-dark-3 |
| dark-outline | --mantine-color-dark-4 |
| dark-outline-hover | rgba(36, 36, 36, 0.05) |
color: "gray"
it comes with values for several variants.
| suffix | value |
|---|---|
| gray-text | --mantine-color-gray-4 |
| gray-filled | --mantine-color-gray-8 |
| gray-filled-hover | --mantine-color-gray-9 |
| gray-light | rgba(134, 142, 150, 0.15) |
| gray-light-hover | rgba(134, 142, 150, 0.2) |
| gray-light-color | --mantine-color-gray-3 |
| gray-outline | --mantine-color-gray-4 |
| gray-outline-hover | rgba(206, 212, 218, 0.05) |