@mgoodfellow/park-ui-panda-preset
Version:
Panda CSS Preset for Park UI
47 lines (45 loc) • 921 B
text/typescript
import { defineSlotRecipe } from '@pandacss/dev'
export const card = defineSlotRecipe({
className: 'card',
slots: ['root', 'header', 'body', 'footer', 'title', 'description'],
base: {
root: {
bg: 'bg.default',
borderRadius: 'l3',
boxShadow: 'lg',
display: 'flex',
flexDirection: 'column',
overflow: 'hidden',
position: 'relative',
},
header: {
display: 'flex',
flexDirection: 'column',
gap: '1',
p: '6',
},
body: {
display: 'flex',
flex: '1',
flexDirection: 'column',
pb: '6',
px: '6',
},
footer: {
display: 'flex',
justifyContent: 'flex-end',
pb: '6',
pt: '2',
px: '6',
},
title: {
color: 'fg.default',
textStyle: 'lg',
fontWeight: 'semibold',
},
description: {
color: 'fg.muted',
textStyle: 'sm',
},
},
})