feat(nx-dev): update typography and hero component styles (#27011)

Enhanced the typography styles to improve text scaling across various
screen sizes. Adjusted the hero component to include responsive line
breaks and optimized the SVG element for better alignment and sizing.
This commit is contained in:
Benjamin Cabanes 2024-07-19 14:12:21 -04:00 committed by GitHub
parent ec5b04fb82
commit f1f8ab7fe7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@ const variants: Record<AllowedVariants, string> = {
title:
'text-3xl font-bold tracking-tight text-slate-950 dark:text-white sm:text-5xl',
display:
'text-4xl font-medium tracking-tight text-slate-950 dark:text-white sm:text-8xl',
'text-5xl font-medium tracking-tight text-slate-950 md:text-6xl dark:text-white xl:text-8xl',
subtitle: 'text-lg leading-8 text-slate-700 dark:text-slate-300 sm:text-2xl',
};

View File

@ -45,10 +45,11 @@ export function Hero(): JSX.Element {
Smart
</span>{' '}
Monorepos
<br className="sm:hidden" />
<svg
viewBox="0 0 2 2"
fill="currentColor"
className="mx-4 inline-flex h-2 w-2"
className="mx-6 hidden size-2 sm:inline-flex xl:size-3"
>
<circle cx={1} cy={1} r={1} />
</svg>