Kind of surprised to see that M3 cards use `Materi...
# compose
z
Kind of surprised to see that M3 cards use
MaterialTheme.colorScheme.surfaceVariant
as their background. Its super bright compared to everything else. And the documentation states that it should use
md.sys.color.surface-container-highest
. Bug? Feature? 🤷🏽‍♂️
s
They changed the M3 spec last year. surfaceContainerHighest is the new name for surfaceVariant. M3 in Compose hasn't been fully updated yet.
z
Ahhh, thanks Sean 🙏🏽 Im still surprised by just how big of a contrast the card color has against everything else in the ColorScheme, even if I use default M3 themes. Its just my opinion though, ElevatedCard colors match what Id expect, so Ill use those.
👍 1
s
The web material theme builder hasn't been updated, but the figma version has. It seems free to use. There's a blog post about it https://material.io/blog/material-theme-builder-2-color-match It will generate the new colors for you.
🌟 1