Skip to content

Commit 58f283d

Browse files
committed
feat: enhance Tailwind configuration with new font families, update global styles, and improve landing page typography
1 parent c954e1a commit 58f283d

6 files changed

Lines changed: 20 additions & 18 deletions

File tree

src/app/bak.favicon.ico

15 KB
Binary file not shown.

src/app/favicon.ico

-11.2 KB
Binary file not shown.

src/app/globals.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,3 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
@layer base {
6-
h1,
7-
h2,
8-
h3,
9-
h4,
10-
h5,
11-
h6 {
12-
@apply font-mono;
13-
}
14-
}

src/app/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ import "./globals.css";
55
const robotoSlab = Roboto_Slab({
66
subsets: ["latin"],
77
variable: "--font-roboto-slab",
8+
weight: ["400", "700"],
89
});
910

1011
const robotoMono = Roboto_Mono({
1112
subsets: ["latin"],
1213
variable: "--font-roboto-mono",
14+
weight: ["400", "700"],
1315
});
1416

1517
export const metadata: Metadata = {
@@ -25,7 +27,7 @@ export default function RootLayout({
2527
return (
2628
<html lang="en">
2729
<body
28-
className={`${robotoSlab.variable} ${robotoMono.variable} min-h-screen bg-warm-50 text-warm-900 antialiased font-sans`}
30+
className={`${robotoSlab.variable} ${robotoMono.variable} min-h-screen bg-warm-50 text-warm-900 antialiased font-slab`}
2931
>
3032
{children}
3133
</body>

src/app/page.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@ import { SiSubstack } from "react-icons/si";
77

88
import { useState, useEffect } from "react";
99

10+
/** Accent #77756e — link hover and typewriter name highlights. */
11+
const accentClass = "text-[#77756e]";
12+
1013
const linkRowClass =
11-
"group flex items-center space-x-2 text-warm-700 transition-colors duration-200 hover:text-red-900";
14+
"group flex items-center space-x-2 text-warm-700 transition-colors duration-200 hover:text-[#77756e]";
15+
16+
const linkLabelClass =
17+
"font-mono font-bold transition-[font-weight] duration-200 group-hover:font-extrabold";
1218

13-
const linkLabelClass = "font-bold transition-[font-weight] duration-200 group-hover:font-extrabold";
19+
const typewriterStrings = [
20+
`Hey, I'm <span class="${accentClass}">Tyler</span> Dane.`,
21+
`<span class="${accentClass}">Switchback</span> is the LLC I use as a contract Software Engineer.`,
22+
];
1423

1524
export default function LandingPage() {
1625
const [mounted, setMounted] = useState(false);
@@ -26,10 +35,7 @@ export default function LandingPage() {
2635
{mounted && (
2736
<Typewriter
2837
options={{
29-
strings: [
30-
"Hey, I'm Tyler Dane.",
31-
"Switchback is the LLC I use as a contract Software Engineer.",
32-
],
38+
strings: typewriterStrings,
3339
autoStart: true,
3440
loop: true,
3541
}}

tailwind.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ export default {
99
theme: {
1010
extend: {
1111
fontFamily: {
12-
sans: ["var(--font-roboto-slab)", "ui-serif", "Georgia", "serif"],
12+
/** Roboto Slab — primary UI text */
13+
slab: ["var(--font-roboto-slab)", "ui-serif", "Georgia", "serif"],
14+
/** Roboto Mono — monospace accents */
1315
mono: ["var(--font-roboto-mono)", "ui-monospace", "monospace"],
16+
/** Alias of `slab` for Tailwind defaults that expect `sans` */
17+
sans: ["var(--font-roboto-slab)", "ui-serif", "Georgia", "serif"],
1418
},
1519
colors: {
1620
warm: {

0 commit comments

Comments
 (0)