From 33042cde79da1c33b93bd17b649ff4b4da2a7403 Mon Sep 17 00:00:00 2001 From: gbanyan Date: Mon, 16 Mar 2026 21:30:42 +0800 Subject: [PATCH] fix: unify color system around configurable accent, warm-tint neutrals Replace hardcoded purple gradients with accent-derived colors so changing NEXT_PUBLIC_COLOR_ACCENT actually controls the entire site. Warm-tint ink colors and body background from slate to stone. Remove decorative floating orbs from hero. Simplify tag page to accent-derived tints instead of 5 random colors. Co-Authored-By: Claude Opus 4.6 --- app/tags/page.tsx | 8 +++----- components/hero.tsx | 4 +--- components/post-card.tsx | 2 +- components/post-list-item.tsx | 2 +- components/reading-progress.tsx | 6 +++--- components/repo-card.tsx | 2 +- components/timeline-wrapper.tsx | 8 ++------ styles/globals.css | 23 ++++++++++------------- 8 files changed, 22 insertions(+), 33 deletions(-) diff --git a/app/tags/page.tsx b/app/tags/page.tsx index 7b3db6a..674a10c 100644 --- a/app/tags/page.tsx +++ b/app/tags/page.tsx @@ -21,11 +21,9 @@ export default function TagIndexPage() { const topTags = tags.slice(0, 3); const colorClasses = [ - 'from-rose-400/70 to-rose-200/40', - 'from-emerald-400/70 to-emerald-200/40', - 'from-sky-400/70 to-sky-200/40', - 'from-amber-400/70 to-amber-200/40', - 'from-violet-400/70 to-violet-200/40' + 'from-accent/60 to-accent/20', + 'from-accent/50 to-accent/15', + 'from-accent/40 to-accent/10', ]; // CollectionPage schema with ItemList diff --git a/components/hero.tsx b/components/hero.tsx index 3270dac..5aa89c4 100644 --- a/components/hero.tsx +++ b/components/hero.tsx @@ -52,9 +52,7 @@ export function Hero() { }[]; return ( -
-
-
+
diff --git a/components/post-card.tsx b/components/post-card.tsx index 41aa44f..7a6a15d 100644 --- a/components/post-card.tsx +++ b/components/post-card.tsx @@ -18,7 +18,7 @@ export function PostCard({ post, showTags = true }: PostCardProps) { return (
-
+
{cover && (
-
+
{cover && (
{useScrollDriven ? ( -