Skip to content

Commit 0a76254

Browse files
committed
add font-notion
1 parent 6c8f00c commit 0a76254

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

apps/demo/emails/magic-links/notion-magic-link.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,29 @@ export const NotionMagicLinkEmail = ({
2626
<Html>
2727
<Head />
2828
<Tailwind config={tailwindConfig}>
29-
<Body className="bg-white">
29+
<Body className="bg-white font-notion">
3030
<Preview>Log in with this magic link</Preview>
3131
<Container className="px-3 mx-auto">
32-
<Heading className="text-[#333] font-sans text-2xl my-10 mx-0 p-0">
32+
<Heading className="text-[#333] text-2xl my-10 mx-0 p-0">
3333
Login
3434
</Heading>
3535
<Link
3636
href="https://notion.so"
3737
target="_blank"
38-
className="text-[#2754C5] font-sans text-sm underline mb-4 block"
38+
className="text-[#2754C5] text-sm underline mb-4 block"
3939
>
4040
Click here to log in with this magic link
4141
</Link>
42-
<Text className="text-[#333] font-sans text-sm my-6 mb-3.5">
42+
<Text className="text-[#333] text-sm my-6 mb-3.5">
4343
Or, copy and paste this temporary login code:
4444
</Text>
45-
<code className="inline-block py-4 px-[4.5%] w-9/10">
45+
<code className="inline-block py-4 px-[4.5%] w-9/10 bg-[#f4f4f4] rounded-md border border-solid border-[#eee] text-[#333]">
4646
{loginCode}
4747
</code>
48-
<Text className="text-[#ababab] font-sans text-sm mt-3.5 mb-4">
48+
<Text className="text-[#ababab] text-sm mt-3.5 mb-4">
4949
If you didn&apos;t try to login, you can safely ignore this email.
5050
</Text>
51-
<Text
52-
className="text-[#ababab] font-sans text-sm mt-3.5 mb-9.5"
53-
>
51+
<Text className="text-[#ababab] text-sm mt-3.5 mb-9.5">
5452
Hint: You can set a permanent password in Settings & members My
5553
account.
5654
</Text>
@@ -60,11 +58,11 @@ export const NotionMagicLinkEmail = ({
6058
height="32"
6159
alt="Notion's Logo"
6260
/>
63-
<Text className="text-[#898989] font-sans text-xs mt-3 mb-6">
61+
<Text className="text-[#898989] text-xs mt-3 mb-6">
6462
<Link
6563
href="https://notion.so"
6664
target="_blank"
67-
className="text-[#898989] font-sans text-sm underline"
65+
className="text-[#898989] text-sm underline"
6866
>
6967
Notion.so
7068
</Link>
@@ -83,4 +81,3 @@ NotionMagicLinkEmail.PreviewProps = {
8381
} as NotionMagicLinkEmailProps;
8482

8583
export default NotionMagicLinkEmail;
86-

apps/demo/emails/tailwind.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@ import { pixelBasedPreset, type TailwindConfig } from '@react-email/components';
22

33
export default {
44
presets: [pixelBasedPreset],
5+
theme: {
6+
fontFamily: {
7+
notion:
8+
"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
9+
},
10+
},
511
} satisfies TailwindConfig;

0 commit comments

Comments
 (0)