aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/global.css29
-rw-r--r--src/styles/typography.css5
2 files changed, 31 insertions, 3 deletions
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;
}