Repository navigation
refactor(changelog): update styles for consistency and readability #374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,13 +85,13 @@ function ChangelogEntryPage() { | |
| const { entry } = Route.useLoaderData(); | ||
|
|
||
| return ( | ||
| <div className="bg-[#0B0B0B] text-gray-50 min-h-screen font-sans"> | ||
| <div className="bg-background text-foreground min-h-screen font-sans"> | ||
| <AppHeader /> | ||
| <main className="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-16 md:py-24"> | ||
| <div className="mb-8"> | ||
| <Link | ||
| to="/changelog" | ||
| className="inline-flex items-center text-sm text-gray-300 hover:text-white transition-colors" | ||
| className="inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors" | ||
| > | ||
| <ArrowLeftIcon className="h-4 w-4 mr-2" /> | ||
| Back to Changelog | ||
|
|
@@ -100,23 +100,26 @@ function ChangelogEntryPage() { | |
|
|
||
| <article className="space-y-8"> | ||
| <header className="space-y-2"> | ||
| <time dateTime={entry.date} className="text-sm text-gray-400"> | ||
| <time | ||
| dateTime={entry.date} | ||
| className="text-sm text-muted-foreground" | ||
| > | ||
| {new Date(entry.date).toLocaleDateString("en-US", { | ||
| year: "numeric", | ||
| month: "long", | ||
| day: "numeric", | ||
| })} | ||
| </time> | ||
| <h1 className="text-3xl md:text-4xl font-bold tracking-tight text-white"> | ||
| <h1 className="text-3xl md:text-4xl font-bold tracking-tight text-foreground"> | ||
| {entry.title} | ||
| </h1> | ||
| </header> | ||
|
|
||
| <div className="prose prose-invert prose-sm sm:prose-base lg:prose-lg max-w-none text-gray-300 leading-relaxed space-y-6"> | ||
| <div className="prose prose-neutral dark:prose-invert prose-sm sm:prose-base lg:prose-lg max-w-none text-muted-foreground leading-relaxed space-y-6"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Verify prose class change: The change from Please verify:
The custom markdown overrides in |
||
| <Markdown options={getMarkdownOptions()}>{entry.content}</Markdown> | ||
| </div> | ||
|
|
||
| <div className="bg-[#141414] border border-gray-800 rounded-lg overflow-hidden mt-8"> | ||
| <div className="bg-card border border-border rounded-lg overflow-hidden mt-8"> | ||
| <img | ||
| src={entry.image.src} | ||
| alt={entry.image.alt} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential contrast issue: Using
bg-muted text-muted-foregroundfor inline code might create poor contrast, especially in light mode where both background and text use "muted" variants.Consider using a higher contrast combination like:
className: "bg-muted text-foreground px-2 py-1 rounded text-sm font-mono"Or create a dedicated
codetoken in the design system for optimal contrast in both themes.