Skip to content

Commit 6d1c7dd

Browse files
authored
fix(theme): darken light-mode text and adopt the design-system type scale (#173)
1 parent f64e167 commit 6d1c7dd

28 files changed

Lines changed: 367 additions & 103 deletions

‎app/about/page.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ export default async function AboutPage() {
9696
<main className="relative z-10 flex-1 text-foreground">
9797
<section className="mx-auto max-w-7xl px-4 py-20 sm:px-6 lg:px-8 lg:py-28">
9898
<div>
99-
<h1 className="font-display text-5xl font-extrabold leading-[1.1] tracking-[-0.03em] text-foreground sm:text-6xl">
99+
<h1 className="type-display-md sm:type-display-lg text-foreground">
100100
Object storage built for <span className="whitespace-nowrap">Rust-native</span>{" "}
101101
infrastructure
102102
</h1>
103-
<p className="mt-6 text-base leading-8 text-muted-foreground">
103+
<p className="type-body-lg mt-6 text-muted-foreground">
104104
RustFS is a next-generation Apache 2.0 distributed object storage system built in Rust for S3-compatible and AI data center workloads.
105105
</p>
106106
<p className="mt-4 text-base leading-8 text-muted-foreground">
@@ -131,7 +131,7 @@ export default async function AboutPage() {
131131
<span className="flex h-14 w-48 items-center">
132132
<RustFSLogo className="h-auto w-full" />
133133
</span>
134-
<h2 className="mt-10 max-w-xl text-3xl font-semibold leading-tight text-foreground">
134+
<h2 className="type-headline-md mt-10 max-w-xl text-foreground">
135135
A storage foundation that stays open, self-hosted, and programmable
136136
</h2>
137137
<p className="mt-5 text-sm leading-7 text-muted-foreground">
@@ -175,7 +175,7 @@ export default async function AboutPage() {
175175
<section className="mx-auto max-w-7xl px-4 pb-24 sm:px-6 lg:px-8">
176176
<div className="grid gap-8 lg:grid-cols-[0.42fr_1fr]">
177177
<div>
178-
<h2 className="text-3xl font-semibold tracking-tight text-foreground">
178+
<h2 className="type-headline-md text-foreground">
179179
Project timeline
180180
</h2>
181181
<p className="mt-4 text-sm leading-7 text-muted-foreground">
@@ -212,7 +212,7 @@ export default async function AboutPage() {
212212
<div className="grid gap-8 border border-border bg-card p-8 lg:grid-cols-[1fr_auto] lg:items-end">
213213
<div>
214214
<p className="font-mono text-[11px] font-semibold uppercase tracking-[0.22em] text-brand">RustFS</p>
215-
<h2 className="mt-4 text-3xl font-semibold text-foreground">Contact</h2>
215+
<h2 className="type-headline-md mt-4 text-foreground">Contact</h2>
216216
<address className="mt-5 text-base not-italic leading-8 text-muted-foreground">
217217
3550 Lenox Road<br />
218218
NE Atlanta, Georgia 30326

‎app/blog/[slug]/page.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default async function BlogPostPage({ params }: BlogPostPageProps) {
7979
</Link>
8080

8181
<div className="mt-8 max-w-5xl">
82-
<h1 className="font-display text-5xl font-semibold leading-[1.1] tracking-[-0.03em] text-foreground sm:text-6xl">
82+
<h1 className="type-display-md sm:type-display-lg text-foreground">
8383
{post.title}
8484
</h1>
8585
{post.slug === HISTORICAL_MINIO_MIGRATION_SLUG ? <HistoricalMigrationBanner /> : null}

‎app/blog/blog-index.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default async function BlogIndex({ requestedTag }: { requestedTag?: strin
3333
<span className="h-1 w-24 bg-brand" />
3434
<span>RustFS journal</span>
3535
</div>
36-
<h1 className="max-w-4xl font-display text-5xl font-semibold leading-[1.1] tracking-[-0.03em] text-foreground sm:text-6xl lg:text-7xl">
36+
<h1 className="max-w-4xl type-display-md sm:type-display-lg text-foreground">
3737
{listing?.h1 ?? BLOG_INDEX_H1}
3838
</h1>
3939
<p className="mt-6 max-w-2xl text-sm leading-7 text-muted-foreground">
@@ -119,7 +119,7 @@ function FeaturedPost({ post }: { post: BlogPostMeta }) {
119119
<span className="h-px flex-1 bg-border" aria-hidden="true" />
120120
<span>{formatShortDate(post.date)}</span>
121121
</div>
122-
<h2 className="mt-8 max-w-4xl font-display text-2xl font-semibold leading-tight text-foreground sm:text-4xl">
122+
<h2 className="mt-8 max-w-4xl type-headline-sm sm:type-headline-lg text-foreground">
123123
{post.title}
124124
</h2>
125125
<PostMeta post={post} className="mt-5" />

‎app/cookie-policy/page.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export const metadata: Metadata = {
99
}
1010

1111
const sectionClassName = 'border-t border-border pt-8 first:border-t-0 first:pt-0'
12-
const headingClassName = 'text-2xl font-semibold tracking-tight text-foreground sm:text-3xl'
13-
const subheadingClassName = 'text-lg font-semibold text-foreground'
14-
const paragraphClassName = 'text-base leading-8 text-muted-foreground'
12+
const headingClassName = 'type-headline-sm text-foreground sm:type-headline-md'
13+
const subheadingClassName = 'type-title text-foreground'
14+
const paragraphClassName = 'type-body-md text-muted-foreground'
1515

1616
export default function CookiePolicyPage() {
1717
return (
@@ -22,7 +22,7 @@ export default function CookiePolicyPage() {
2222
<p className="font-mono text-[11px] font-semibold uppercase tracking-[0.2em] text-brand">
2323
Legal
2424
</p>
25-
<h1 className="mt-5 font-display text-5xl font-semibold leading-[1.1] tracking-[-0.03em] text-foreground sm:text-6xl">
25+
<h1 className="mt-5 type-display-md sm:type-display-lg text-foreground">
2626
Cookie Policy
2727
</h1>
2828
<p className="mt-6 max-w-3xl text-base leading-8 text-muted-foreground">

‎app/demo/page.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ export default function DemoPage() {
6666
</div>
6767

6868
<div className="pt-10">
69-
<h1 className="max-w-3xl font-display text-5xl font-bold leading-[1.1] tracking-[-0.03em] text-foreground sm:text-6xl">
69+
<h1 className="max-w-3xl type-display-md sm:type-display-lg text-foreground">
7070
A quick note before you enter.
7171
</h1>
72-
<p className="mt-6 max-w-2xl text-base leading-8 text-muted-foreground sm:text-lg">
72+
<p className="type-body-lg mt-6 max-w-2xl text-muted-foreground">
7373
Explore the RustFS Console in a live sandbox. Please review the
7474
access details and data policy before continuing.
7575
</p>

‎app/download/components/download-page-client.tsx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function SectionHeader({
6464
<div>
6565
<div className="mb-8 max-w-4xl">
6666
<p className="text-[11px] font-semibold uppercase tracking-[0.22em] text-brand">{eyebrow}</p>
67-
<h2 className="mt-4 max-w-3xl font-display text-3xl font-semibold leading-tight tracking-tight text-foreground sm:text-4xl">
67+
<h2 className="mt-4 max-w-3xl type-headline-md sm:type-headline-lg text-foreground">
6868
{title}
6969
</h2>
7070
<p className="mt-4 max-w-2xl text-sm leading-7 text-muted-foreground">
@@ -99,7 +99,7 @@ function ProductDownloadLink({
9999
<div className="flex items-start justify-between gap-6">
100100
<div>
101101
<p className="font-mono text-[10px] font-semibold uppercase tracking-[0.2em] text-brand">{eyebrow}</p>
102-
<h2 className="mt-4 font-display text-3xl font-semibold leading-tight tracking-tight text-foreground sm:text-4xl">{title}</h2>
102+
<h2 className="mt-4 type-headline-md sm:type-headline-lg text-foreground">{title}</h2>
103103
</div>
104104
<span className="motion-icon-tile flex size-11 shrink-0 items-center justify-center text-brand">
105105
<Icon className="size-6" />
@@ -146,7 +146,7 @@ function ReleasePanel({ release }: { release: GitHubRelease | null }) {
146146

147147
<div className="flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between">
148148
<div>
149-
<p className="font-display text-4xl font-semibold leading-none text-foreground sm:text-5xl">
149+
<p className="type-display-md text-foreground">
150150
{version}
151151
</p>
152152
<p className="mt-3 text-sm text-muted-foreground">
@@ -697,7 +697,7 @@ function ServerInstallTabs({ release }: { release: GitHubRelease | null }) {
697697
</span>
698698
<p className="font-mono text-[11px] font-semibold uppercase tracking-[0.2em] text-brand">{activePath.label}</p>
699699
</div>
700-
<h3 className="mt-6 text-3xl font-semibold leading-tight tracking-tight text-foreground sm:text-4xl">{activePath.title}</h3>
700+
<h3 className="type-headline-md mt-6 text-foreground sm:type-headline-lg">{activePath.title}</h3>
701701
<p className="mt-3 max-w-2xl text-sm leading-7 text-muted-foreground">{activePath.summary}</p>
702702
<p className="mt-3 text-xs leading-5 text-muted-foreground">{activePath.bestFor}</p>
703703
</div>
@@ -797,7 +797,7 @@ export default function DownloadPageClient() {
797797
<section className="pt-20 pb-12 sm:pt-28 sm:pb-16">
798798
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
799799
<div className="text-center">
800-
<h1 className="w-full font-display text-5xl font-extrabold leading-[1.1] tracking-[-0.03em] text-foreground sm:text-6xl">
800+
<h1 className="w-full type-display-md sm:type-display-lg text-foreground">
801801
Download RustFS
802802
</h1>
803803
<p className="mt-5 w-full text-sm leading-7 text-muted-foreground">
@@ -854,7 +854,7 @@ export function ServerDownloadPage({ release }: ServerDownloadPageProps) {
854854
</Link>
855855

856856
<div className="mx-auto mt-10 max-w-4xl text-center">
857-
<h1 className="font-display text-5xl font-extrabold leading-[1.1] tracking-[-0.03em] text-foreground sm:text-6xl">
857+
<h1 className="type-display-md sm:type-display-lg text-foreground">
858858
RustFS Server
859859
</h1>
860860
<p className="mx-auto mt-4 max-w-2xl text-lg font-semibold leading-8 text-foreground sm:text-xl">

‎app/download/components/installation-topology.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export default function InstallationTopology() {
168168
<div>
169169
<div className="mb-10">
170170
<p className="text-[11px] font-semibold uppercase tracking-[0.22em] text-brand">Deployment topology</p>
171-
<h2 className="mt-4 w-full font-display text-3xl font-semibold leading-tight tracking-tight text-foreground sm:text-4xl">
171+
<h2 className="mt-4 w-full type-headline-md sm:type-headline-lg text-foreground">
172172
Pick topology after you know the failure domain.
173173
</h2>
174174
<p className="mt-4 w-full text-sm leading-7 text-muted-foreground">

‎app/download/components/rc-download-section.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ export default function RcDownloadSection({ cliRelease }: RcDownloadSectionProps
473473
</Link>
474474

475475
<div className="mt-10">
476-
<h1 className="w-full font-display text-5xl font-extrabold leading-[1.1] tracking-[-0.03em] text-foreground sm:text-6xl">
476+
<h1 className="w-full type-display-md sm:type-display-lg text-foreground">
477477
RustFS CLI Client (rc)
478478
</h1>
479479
<p className="mt-4 w-full text-lg font-semibold leading-8 text-foreground sm:text-xl">

0 commit comments

Comments
 (0)