@@ -7,7 +7,7 @@ function Card({ className, ...props }: React.ComponentProps<'div'>) {
77 < div
88 data-slot = "card"
99 className = { cn (
10- 'bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6 shadow-sm' ,
10+ 'bg-card text-card-foreground text-pretty flex flex-col gap-6 rounded-xl py-6 shadow-sm' ,
1111 className
1212 ) }
1313 { ...props }
@@ -32,7 +32,10 @@ function CardTitle({ className, ...props }: React.ComponentProps<'div'>) {
3232 return (
3333 < div
3434 data-slot = "card-title"
35- className = { cn ( 'leading-none font-semibold' , className ) }
35+ className = { cn (
36+ 'leading-none text-base sm:text-lg lg:text-xl font-semibold' ,
37+ className
38+ ) }
3639 { ...props }
3740 />
3841 )
@@ -42,7 +45,10 @@ function CardDescription({ className, ...props }: React.ComponentProps<'div'>) {
4245 return (
4346 < div
4447 data-slot = "card-description"
45- className = { cn ( 'text-muted-foreground text-sm' , className ) }
48+ className = { cn (
49+ 'text-muted-foreground text-xs sm:text-sm' ,
50+ className
51+ ) }
4652 { ...props }
4753 />
4854 )
@@ -52,7 +58,7 @@ function CardContent({ className, ...props }: React.ComponentProps<'div'>) {
5258 return (
5359 < div
5460 data-slot = "card-content"
55- className = { cn ( 'px-6' , className ) }
61+ className = { cn ( 'px-6 text-sm sm:text-base lg:text-lg ' , className ) }
5662 { ...props }
5763 />
5864 )
@@ -62,10 +68,13 @@ function CardFooter({ className, ...props }: React.ComponentProps<'div'>) {
6268 return (
6369 < div
6470 data-slot = "card-footer"
65- className = { cn ( 'flex items-center px-6' , className ) }
71+ className = { cn (
72+ 'flex items-center mt-auto px-6 text-xs sm:text-sm' ,
73+ className
74+ ) }
6675 { ...props }
6776 />
6877 )
6978}
7079
71- export { Card , CardHeader , CardFooter , CardTitle , CardDescription , CardContent }
80+ export { Card , CardContent , CardDescription , CardFooter , CardHeader , CardTitle }
0 commit comments