Skip to content

Commit cb11975

Browse files
committed
switch to red hat mono
1 parent b6ad9ae commit cb11975

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/components/LandingPage.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ module Intro = {
44
<section className="flex justify-center">
55
// We only need this font on the homepage, so we load it here instead of globally to save some bandwidth for users who navigate to other pages directly
66
<link
7-
href="https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@700&display=swap"
7+
href="https://fonts.googleapis.com/css2?family=Red+Hat+Mono:wght@700&display=swap"
88
rel="stylesheet"
99
/>
1010
<div className="max-w-1060 flex flex-col items-center px-5 sm:px-8 lg:box-content">
1111
<h1 className="hl-title text-center max-w-212">
1212
{React.string("JavaScript Made Simple for Humans and AI")}
1313
</h1>
14-
<h2 className="ubuntu-mono-bold hl-1 text-center text-gray-60 my-4 max-w-md">
14+
<h2 className="red-hat-mono-bold hl-1 text-center text-gray-60 my-4 max-w-md">
1515
{React.string(`Types > Vibes`)}
1616
</h2>
1717
<p className="body-lg text-center text-gray-60 mt-4 max-w-md">

styles/_fonts.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ $ pyftsubset <path_to_font> --unicodes="U+0000-00FF, U+0131, U+0152-0153, U+02BB
138138
U+FFFD;
139139
}
140140

141-
.ubuntu-mono-bold {
142-
font-family: "Ubuntu Mono", monospace;
141+
.red-hat-mono-bold {
142+
font-family: "Red Hat Mono", monospace;
143+
font-optical-sizing: auto;
143144
font-weight: 700;
144145
font-style: normal;
145146
}

0 commit comments

Comments
 (0)