Skip to content

Commit 121b811

Browse files
groksrcclaude
andcommitted
Reduce font weights and restore content link underlines
- Reduce all font weights by one level across the board: - h1: bold → semibold - h2, h3, h4: semibold → medium - Component headings: semibold → medium - Add underlines back to links in article content - Keep underlines removed from navigation areas (header, nav, footer, aside) - Apply consistent font weight reduction to all components 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 62ec861 commit 121b811

File tree

7 files changed

+26
-12
lines changed

7 files changed

+26
-12
lines changed

src/components/Breadcrumb.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ for (const section of navConfig.sidebar) {
1818
---
1919

2020
{sectionTitle && currentPath !== '/' && (
21-
<div class="mb-4 text-sm text-gray-600 font-semibold">
21+
<div class="mb-4 text-sm text-gray-600 font-medium">
2222
<span>{sectionTitle}</span>
2323
</div>
2424
)}

src/components/Callout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function Callout({ children, type = 'note', title, className }: C
7777
</div>
7878
<div className="flex-1 space-y-2">
7979
{(title || !children || typeof children === 'string') && (
80-
<div className={cn('font-semibold leading-none tracking-tight', styles.title)}>
80+
<div className={cn('font-medium leading-none tracking-tight', styles.title)}>
8181
{title || defaultTitle}
8282
</div>
8383
)}

src/components/Card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function Card({ title, icon, href, children, className }: CardPro
2828
</div>
2929
)}
3030
<div className="flex-1">
31-
<h3 className="mb-2 text-lg font-semibold leading-none tracking-tight">
31+
<h3 className="mb-2 text-lg font-medium leading-none tracking-tight">
3232
{title}
3333
</h3>
3434
{children && (

src/components/MobileMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function MobileMenu() {
3434
<div className="space-y-6">
3535
{navConfig.sidebar.map((section) => (
3636
<div key={section.title} className="space-y-3">
37-
<h4 className="text-sm font-semibold leading-none tracking-tight">
37+
<h4 className="text-sm font-medium leading-none tracking-tight">
3838
{section.title}
3939
</h4>
4040
<ul className="space-y-1">

src/components/Sidebar.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const currentPath = Astro.url.pathname
3131
<!-- Regular navigation sections -->
3232
{navConfig.sidebar.map((section) => (
3333
<div>
34-
<h4 class="text-sm font-semibold leading-none tracking-tight text-gray-900 px-3 mb-4 mt-10">
34+
<h4 class="text-sm font-medium leading-none tracking-tight text-gray-900 px-3 mb-4 mt-10">
3535
{section.title}
3636
</h4>
3737
<ul class="space-y-1 list-none m-0 p-0">
@@ -41,7 +41,7 @@ const currentPath = Astro.url.pathname
4141
href={item.href}
4242
class={`block px-3 py-1.5 text-sm transition-colors hover:text-gray-900 rounded-md ${
4343
currentPath === item.href
44-
? 'text-gray-900 font-semibold bg-gray-100'
44+
? 'text-gray-900 font-medium bg-gray-100'
4545
: 'text-gray-600 font-normal hover:bg-gray-50'
4646
}`}
4747
style="text-decoration: none"

src/components/Steps.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ interface StepProps {
2323
export function Step({ title, children, className }: StepProps) {
2424
return (
2525
<div className={cn('relative pl-10 step-item', className)}>
26-
<div className="step-number absolute left-0 top-0 flex h-7 w-7 items-center justify-center rounded-full bg-gray-100 dark:bg-gray-800 text-sm font-semibold text-gray-700 dark:text-gray-300 border border-gray-200 dark:border-gray-700">
26+
<div className="step-number absolute left-0 top-0 flex h-7 w-7 items-center justify-center rounded-full bg-gray-100 dark:bg-gray-800 text-sm font-medium text-gray-700 dark:text-gray-300 border border-gray-200 dark:border-gray-700">
2727
</div>
2828
<div className="space-y-2">
2929
{title && (
30-
<h4 className="text-lg font-semibold leading-none tracking-tight">
30+
<h4 className="text-lg font-medium leading-none tracking-tight">
3131
{title}
3232
</h4>
3333
)}

src/styles/global.css

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@
6161

6262
/* Typography */
6363
h1 {
64-
@apply scroll-m-20 text-3xl font-bold tracking-tight mb-6;
64+
@apply scroll-m-20 text-3xl font-semibold tracking-tight mb-6;
6565
}
6666

6767
h2 {
68-
@apply scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0 mt-12 mb-4;
68+
@apply scroll-m-20 text-3xl font-medium tracking-tight first:mt-0 mt-12 mb-4;
6969
}
7070

7171
h3 {
72-
@apply scroll-m-20 text-2xl font-semibold tracking-tight;
72+
@apply scroll-m-20 text-2xl font-medium tracking-tight;
7373
}
7474

7575
/* Article content h3 spacing - only applies to h3 in main content */
@@ -78,7 +78,7 @@
7878
}
7979

8080
h4 {
81-
@apply scroll-m-20 text-xl font-semibold tracking-tight;
81+
@apply scroll-m-20 text-xl font-medium tracking-tight;
8282
}
8383

8484
p {
@@ -172,6 +172,20 @@
172172
a {
173173
@apply font-medium text-primary hover:text-primary/80;
174174
}
175+
176+
/* Underline links in article content */
177+
article a {
178+
@apply underline underline-offset-2;
179+
}
180+
181+
/* Remove underlines from specific areas */
182+
header a,
183+
nav a,
184+
aside a,
185+
footer a,
186+
.no-underline {
187+
text-decoration: none !important;
188+
}
175189

176190
table {
177191
@apply w-full;

0 commit comments

Comments
 (0)