Improve dark-mode readability of tags using neutral backgrounds

This commit is contained in:
2025-11-17 23:15:15 +08:00
parent 6033d9f58a
commit 0c5c5e230c
3 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ export default function BlogPostPage({ params }: Props) {
href={`/tags/${encodeURIComponent( href={`/tags/${encodeURIComponent(
t.toLowerCase().replace(/\s+/g, '-') t.toLowerCase().replace(/\s+/g, '-')
)}`} )}`}
className="rounded-full bg-accent-soft px-2 py-0.5 text-xs text-accent-textLight transition hover:bg-accent dark:text-accent-textDark" className="rounded-full bg-accent-soft px-2 py-0.5 text-xs text-accent-textLight transition hover:bg-accent hover:text-white dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700"
> >
#{t} #{t}
</Link> </Link>

View File

@@ -61,7 +61,7 @@ export default function StaticPage({ params }: Props) {
href={`/tags/${encodeURIComponent( href={`/tags/${encodeURIComponent(
t.toLowerCase().replace(/\s+/g, '-') t.toLowerCase().replace(/\s+/g, '-')
)}`} )}`}
className="rounded-full bg-accent-soft px-2 py-0.5 text-xs text-accent-textLight transition hover:bg-accent dark:text-accent-textDark" className="rounded-full bg-accent-soft px-2 py-0.5 text-xs text-accent-textLight transition hover:bg-accent hover:text-white dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700"
> >
#{t} #{t}
</Link> </Link>

View File

@@ -47,7 +47,7 @@ export function PostListItem({ post }: Props) {
href={`/tags/${encodeURIComponent( href={`/tags/${encodeURIComponent(
t.toLowerCase().replace(/\s+/g, '-') t.toLowerCase().replace(/\s+/g, '-')
)}`} )}`}
className="rounded-full bg-accent-soft px-2 py-0.5 text-[11px] text-accent-textLight transition hover:bg-accent dark:text-accent-textDark" className="rounded-full bg-accent-soft px-2 py-0.5 text-[11px] text-accent-textLight transition hover:bg-accent hover:text-white dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700"
> >
#{t} #{t}
</Link> </Link>