That example was from the previous version of UD so I think that’s why it doesn’t work.
try:
New-UDStyle -Style '.MuiCard-root {background-color: green;}' -Content {New-UDCard -Content { "TestingCard" }}
Here’s are the classes that are applied to cards.