Skip to content

Commit 0777cf7

Browse files
NicolappsConvex, Inc.
authored and
Convex, Inc.
committed
Rename font-marketing to font-display (#36517)
GitOrigin-RevId: 3f380e597b70344f54a892b4384b8f5640fc2201
1 parent 4593d35 commit 0777cf7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

npm-packages/@convex-dev/design-system/src/tailwind.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ const config: Config = {
268268
...numberedColors,
269269
},
270270
fontFamily: {
271-
marketing: [
271+
display: [
272272
"GT America",
273273
"Inter Variable",
274274
"ui-sans-serif",

npm-packages/dashboard/src/components/referral/RedeemReferralLanding.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,34 @@ export function RedeemReferralLanding({
1515
return (
1616
<div className="relative mt-10 max-w-lg">
1717
<Sheet>
18-
<MarketingH1>{title}</MarketingH1>
18+
<DisplayH1>{title}</DisplayH1>
1919

20-
<MarketingP>
20+
<DisplayP>
2121
Convex is the open-source reactive database for app developers.
22-
</MarketingP>
22+
</DisplayP>
2323

24-
<MarketingP>
24+
<DisplayP>
2525
Accept this referral to double your free account quota.
26-
</MarketingP>
26+
</DisplayP>
2727

2828
<LogInButton code={code} />
2929
</Sheet>
3030
</div>
3131
);
3232
}
3333

34-
function MarketingH1({ children }: React.PropsWithChildren) {
34+
function DisplayH1({ children }: React.PropsWithChildren) {
3535
return (
3636
<h1
3737
// eslint-disable-next-line no-restricted-syntax
38-
className="mb-6 font-marketing text-3xl font-black leading-[1.1] tracking-tight text-content-primary sm:text-5xl"
38+
className="mb-6 font-display text-3xl font-black leading-[1.1] tracking-tight text-content-primary sm:text-5xl"
3939
>
4040
{children}
4141
</h1>
4242
);
4343
}
4444

45-
function MarketingP({ children }: React.PropsWithChildren) {
45+
function DisplayP({ children }: React.PropsWithChildren) {
4646
return (
4747
<p
4848
// eslint-disable-next-line no-restricted-syntax
@@ -61,7 +61,7 @@ function LogInButton({ code }: { code: string }) {
6161
// to GitHub when following the link.
6262
<a
6363
className={cn(
64-
"group z-10 inline-flex rounded-full bg-gradient-to-br from-[#8d2676_33%] via-[#ee342f] via-90% to-[#f3b01c] to-100% p-0.5 font-marketing shadow-[0_2px_14px_rgba(111,0,255,0.25)] transition-shadow my-2",
64+
"group z-10 inline-flex rounded-full bg-gradient-to-br from-[#8d2676_33%] via-[#ee342f] via-90% to-[#f3b01c] to-100% p-0.5 font-display shadow-[0_2px_14px_rgba(111,0,255,0.25)] transition-shadow my-2",
6565
!clicked && "hover:shadow-[rgba(111,0,255,0.5)]",
6666
clicked && "opacity-80 cursor-progress",
6767
)}

0 commit comments

Comments
 (0)