Skip to content

Commit

Permalink
Update Heading font size
Browse files Browse the repository at this point in the history
  • Loading branch information
adamplesnik committed Nov 28, 2024
1 parent 80d602a commit 99f918c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ const Heading = ({ size = 1, className, children }: TitleProps) => {
if (size === 1) {
return <h1 className={clsx(className, 'text-3xl font-medium lg:text-4xl')}>{children}</h1>
} else if (size === 2) {
return <h2 className={clsx(className, 'text-3xl font-medium lg:text-4xl')}>{children}</h2>
return (
<h2 className={clsx(className, 'text-2xl font-medium !leading-snug sm:text-3xl lg:text-4xl')}>
{children}
</h2>
)
} else if (size === 3) {
return <h3 className={clsx(className, 'font-semibold')}>{children}</h3>
}
Expand Down

0 comments on commit 99f918c

Please sign in to comment.