({
theme,
isMode,
}: {
theme: InternalTheme;
isMode: (mode: CardMode) => boolean;
})
| 78 | }; |
| 79 | |
| 80 | const getBackgroundColor = ({ |
| 81 | theme, |
| 82 | isMode, |
| 83 | }: { |
| 84 | theme: InternalTheme; |
| 85 | isMode: (mode: CardMode) => boolean; |
| 86 | }) => { |
| 87 | if (theme.isV3) { |
| 88 | if (isMode('contained')) { |
| 89 | return theme.colors.surfaceVariant; |
| 90 | } |
| 91 | if (isMode('outlined')) { |
| 92 | return theme.colors.surface; |
| 93 | } |
| 94 | } |
| 95 | return undefined; |
| 96 | }; |
| 97 | |
| 98 | export const getCardColors = ({ |
| 99 | theme, |
no test coverage detected
searching dependent graphs…