From e6dad1976a63a63af52c2bc5c9c568086028705d Mon Sep 17 00:00:00 2001 From: Nikhil M Warrier Date: Tue, 3 Mar 2026 09:19:21 +0530 Subject: Update homepage and fonts --- src/styles/global.css | 29 ++++++++++++++++++++++++++++- src/styles/typography.css | 5 +++-- 2 files changed, 31 insertions(+), 3 deletions(-) (limited to 'src/styles') diff --git a/src/styles/global.css b/src/styles/global.css index 719f8dc..d7dffa3 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -7,7 +7,7 @@ Geist, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; --font-mono: - Geist Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, + '0xProto', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; --color-background: var(--background); @@ -42,6 +42,33 @@ font-display: swap; } +/* Regular */ +@font-face { + font-family: '0xProto'; + src: url('/fonts/0xProto/0xProto-Regular.woff2') format('woff2'); + font-weight: 400; + font-style: normal; + font-display: swap; +} + +/* Bold */ +@font-face { + font-family: '0xProto'; + src: url('/fonts/0xProto/0xProto-Bold.woff2') format('woff2'); + font-weight: 700; + font-style: normal; + font-display: swap; +} + +/* Italic */ +@font-face { + font-family: '0xProto'; + src: url('/fonts/0xProto/0xProto-Italic.woff2') format('woff2'); + font-weight: 400; + font-style: italic; + font-display: swap; +} + :root { --background: oklch(1 0 0); --foreground: oklch(0.145 0 0); diff --git a/src/styles/typography.css b/src/styles/typography.css index e8f6e14..6667606 100644 --- a/src/styles/typography.css +++ b/src/styles/typography.css @@ -18,6 +18,7 @@ h5, h6 { @apply text-balance; + @apply font-mono; } p { @@ -134,8 +135,8 @@ } :where(img, video, figure, .expressive-code):not( - :where(.not-prose, .not-prose *) - ) { + :where(.not-prose, .not-prose *) + ) { @apply mx-auto my-6; } -- cgit v1.2.3