Skip to content

Commit bc90913

Browse files
author
Zack Jones
committed
feat(card): migrate to semantic colors
1 parent d0bc552 commit bc90913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Card/Card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import {
1414
width,
1515
WidthProps
1616
} from 'styled-system';
17-
import { Colors } from '../../essentials';
1817
import { theme } from '../../essentials/theme';
1918
import { get } from '../../utils/themeGet';
19+
import { getSemanticValue } from '../../utils/cssVariables';
2020

2121
type CardProps = BorderRadiusProps &
2222
HeightProps &
@@ -51,7 +51,7 @@ const levelVariant = variant({
5151
const Card: StyledComponent<'div', typeof theme, CardProps, 'theme'> = styled.div.attrs({ theme })`
5252
overflow: auto;
5353
box-sizing: border-box;
54-
background-color: ${Colors.WHITE};
54+
background-color: ${getSemanticValue('background-primary-default')};
5555
border-radius: ${get('radii.1')};
5656
padding: ${get('space.5')};
5757

0 commit comments

Comments
 (0)