Skip to content

Commit

Permalink
Remove Card radius var
Browse files Browse the repository at this point in the history
  • Loading branch information
Youakeem committed Sep 18, 2024
1 parent 7ffc073 commit f3cfe3c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/ui/src/components/Card/Card.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import { xStack, yStack } from '../../patterns'
import { tokens } from '../../theme'

const cardPadding = createVar()
const cardRadius = createVar()

export const cardRoot = recipe({
base: {
position: 'relative',
borderRadius: cardRadius,
padding: cardPadding,
},
variants: {
Expand All @@ -27,20 +25,20 @@ export const cardRoot = recipe({

size: {
md: [
yStack({ gap: 'xs' }),
yStack({ gap: 'sm' }),
{
borderRadius: tokens.radius.md,
vars: {
[cardPadding]: tokens.space.md,
[cardRadius]: tokens.radius.md,
},
},
],
lg: [
yStack({ gap: 'md' }),
{
borderRadius: tokens.radius.xl,
vars: {
[cardPadding]: tokens.space.lg,
[cardRadius]: tokens.radius.xl,
},
},
],
Expand Down

0 comments on commit f3cfe3c

Please sign in to comment.