Skip to content

Commit a0439ce

Browse files
alias for font sizes
1 parent 7578a3c commit a0439ce

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/components/ui/card.tsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ function CardTitle({ className, ...props }: React.ComponentProps<'div'>) {
3232
return (
3333
<div
3434
data-slot="card-title"
35-
className={cn(
36-
'leading-none text-base sm:text-lg lg:text-xl font-semibold',
37-
className
38-
)}
35+
className={cn('leading-none text-large font-semibold', className)}
3936
{...props}
4037
/>
4138
)
@@ -45,10 +42,7 @@ function CardDescription({ className, ...props }: React.ComponentProps<'div'>) {
4542
return (
4643
<div
4744
data-slot="card-description"
48-
className={cn(
49-
'text-muted-foreground text-xs sm:text-sm',
50-
className
51-
)}
45+
className={cn('text-muted-foreground text-small', className)}
5246
{...props}
5347
/>
5448
)
@@ -58,7 +52,7 @@ function CardContent({ className, ...props }: React.ComponentProps<'div'>) {
5852
return (
5953
<div
6054
data-slot="card-content"
61-
className={cn('px-6 text-sm sm:text-base lg:text-lg', className)}
55+
className={cn('px-6 text-normal', className)}
6256
{...props}
6357
/>
6458
)
@@ -69,7 +63,7 @@ function CardFooter({ className, ...props }: React.ComponentProps<'div'>) {
6963
<div
7064
data-slot="card-footer"
7165
className={cn(
72-
'flex items-center mt-auto px-6 text-xs sm:text-sm',
66+
'flex items-center mt-auto px-6 text-small',
7367
className
7468
)}
7569
{...props}

0 commit comments

Comments
 (0)