-
Notifications
You must be signed in to change notification settings - Fork 147
Closed
Description
Let's say we have a Text component and a Card component
<Card>
<Text variant="body"/>
<Card />
The body variant has a color: 'black' style.
What is the restyle way to do if we want to have a inverted card variant?
<Card variant="inverted">
<Text variant="body"/>
<Card />
// theme
cardVariants: {
defaults: {
backgroundColor: 'cardPrimaryBackground',
},
inverted: {
backgroundColor: 'mainForeground',
color: 'white' // <-- how to make the children text follow this color?
}
},
Metadata
Metadata
Assignees
Labels
No labels