Skip to content

Commit 6d9fee0

Browse files
ubmitclaude
andauthored
style: make links less subtle with visible underlines (#138)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 105ab77 commit 6d9fee0

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/components/SubtleLink.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { href, target } = Astro.props;
1111
href={href}
1212
target={target}
1313
rel="noopener noreferrer"
14-
class="decoration-ledger-line hover:text-gray-1200 underline underline-offset-4 transition-colors"
14+
class="decoration-gray-600 hover:text-gray-1200 hover:decoration-gray-800 underline underline-offset-4 transition-colors"
1515
>
1616
<slot /></a
1717
>

src/styles/base.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,15 @@
4949
}
5050

5151
.prose a {
52-
color: var(--color-gray-1100);
52+
text-decoration-line: underline;
53+
text-decoration-color: var(--color-gray-400);
54+
text-underline-offset: 4px;
55+
transition: color 0.2s ease, text-decoration-color 0.2s ease;
5356
}
5457

5558
.prose a:hover {
5659
color: var(--color-gray-1200);
60+
text-decoration-color: var(--color-gray-600);
5761
}
5862

5963
.prose code {

0 commit comments

Comments
 (0)