Skip to content

Commit ac80f3c

Browse files
committed
improvement(emails): use Season Sans to match the newsletter and platform
Register the Season Sans web font (the woff2 shipped with the newsletter, #5302) via react-email's <Font> in the layout head, and lead the email font stack with 'Season Sans' (system stack still the fallback for clients that ignore @font-face).
1 parent 578cb5f commit ac80f3c

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

apps/sim/components/emails/_styles/base.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export const colors = buildColors()
4747

4848
/** Typography settings */
4949
export const typography = {
50-
fontFamily: "-apple-system, 'SF Pro Display', 'SF Pro Text', 'Helvetica', sans-serif",
50+
fontFamily:
51+
"'Season Sans', -apple-system, 'SF Pro Display', 'SF Pro Text', 'Helvetica', sans-serif",
5152
fontSize: {
5253
body: '16px',
5354
small: '14px',

apps/sim/components/emails/components/email-layout.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Body, Container, Head, Html, Img, Preview, Section } from '@react-email/components'
1+
import { Body, Container, Font, Head, Html, Img, Preview, Section } from '@react-email/components'
22
import { baseStyles } from '@/components/emails/_styles'
33
import { EmailFooter } from '@/components/emails/components/email-footer'
44
import { getBaseUrl } from '@/lib/core/utils/urls'
@@ -34,7 +34,18 @@ export function EmailLayout({
3434

3535
return (
3636
<Html>
37-
<Head />
37+
<Head>
38+
<Font
39+
fontFamily='Season Sans'
40+
fallbackFontFamily={['Helvetica', 'sans-serif']}
41+
webFont={{
42+
url: `${baseUrl}/brand/fonts/SeasonSansUprightsVF.woff2`,
43+
format: 'woff2',
44+
}}
45+
fontWeight='300 800'
46+
fontStyle='normal'
47+
/>
48+
</Head>
3849
<Preview>{preview}</Preview>
3950
<Body style={baseStyles.main}>
4051
{/* Main card container */}

0 commit comments

Comments
 (0)