Skip to content

Commit bbe7602

Browse files
feat(ui): align Mosaic Card with updated design
1 parent 686e72d commit bbe7602

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

packages/ui/src/mosaic/components/card/card.styles.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ import { colorVars, radiusVars, space } from '../../tokens.stylex';
44

55
export const styles = stylex.create({
66
root: {
7-
borderColor: colorVars['--cl-color-border'],
8-
borderRadius: radiusVars['--cl-radius-element'],
9-
borderStyle: 'solid',
10-
borderWidth: '1px',
7+
borderRadius: radiusVars['--cl-radius-container'],
118
overflow: 'hidden',
129
backgroundColor: colorVars['--cl-color-card'],
10+
boxShadow: `0 12px 12px -7px oklch(0.2046 0 0 / 12%),
11+
0 24px 24px -10px oklch(0.2046 0 0 / 4%),
12+
0 0 0 1px oklch(0.2046 0 0 / 4%)`,
1313
color: colorVars['--cl-color-card-foreground'],
1414
display: 'flex',
1515
flexDirection: 'column',
16-
rowGap: space['5'],
1716
width: '100%',
1817
},
1918
header: {
@@ -29,8 +28,19 @@ export const styles = stylex.create({
2928
flexShrink: '1',
3029
},
3130
footer: {
32-
paddingInline: space['4'],
33-
paddingBlockEnd: space['5'],
31+
gap: space['2'],
32+
paddingBlock: space['4'],
33+
paddingInline: space['6'],
34+
alignItems: 'center',
35+
backgroundColor: `color-mix(in oklab, ${colorVars['--cl-color-card-foreground']} 4%, ${colorVars['--cl-color-card']})`,
36+
boxSizing: 'border-box',
37+
display: 'flex',
38+
flexShrink: 0,
39+
justifyContent: 'space-between',
40+
borderTopColor: colorVars['--cl-color-border'],
41+
borderTopStyle: 'solid',
42+
borderTopWidth: '1px',
43+
width: '100%',
3444
},
3545
});
3646

0 commit comments

Comments
 (0)