Update semantic color tokens across components for improved consistency

- Refactor `text-*` and `bg-*` classes to use semantic color tokens such as `foreground`, `muted-foreground`, `card`, and `accent`.
- Adjust `Header`, `Footer`, and settings pages to align with the OKLCH-based design system.
- Ensure visual consistency and accessibility for both light and dark themes.
This commit is contained in:
2025-11-02 06:55:18 +01:00
parent af260e4748
commit 378b04d505
7 changed files with 19 additions and 19 deletions

View File

@@ -54,10 +54,10 @@ export default function SettingsLayout({
<div className="container mx-auto px-4 py-8"> <div className="container mx-auto px-4 py-8">
{/* Page Header */} {/* Page Header */}
<div className="mb-8"> <div className="mb-8">
<h1 className="text-3xl font-bold text-gray-900 dark:text-white"> <h1 className="text-3xl font-bold text-foreground">
Settings Settings
</h1> </h1>
<p className="mt-2 text-gray-600 dark:text-gray-400"> <p className="mt-2 text-muted-foreground">
Manage your account settings and preferences Manage your account settings and preferences
</p> </p>
</div> </div>
@@ -79,7 +79,7 @@ export default function SettingsLayout({
</TabsList> </TabsList>
{/* Tab Content */} {/* Tab Content */}
<div className="rounded-lg border bg-white dark:bg-gray-900 p-6"> <div className="rounded-lg border bg-card text-card-foreground p-6">
{children} {children}
</div> </div>
</Tabs> </Tabs>

View File

@@ -12,10 +12,10 @@ export const metadata: Metadata = {
export default function PasswordSettingsPage() { export default function PasswordSettingsPage() {
return ( return (
<div> <div>
<h2 className="text-2xl font-semibold text-gray-900 dark:text-white mb-4"> <h2 className="text-2xl font-semibold text-foreground mb-4">
Password Settings Password Settings
</h2> </h2>
<p className="text-gray-600 dark:text-gray-400"> <p className="text-muted-foreground">
Change your password (Coming in Task 3.3) Change your password (Coming in Task 3.3)
</p> </p>
</div> </div>

View File

@@ -12,10 +12,10 @@ export const metadata: Metadata = {
export default function PreferencesPage() { export default function PreferencesPage() {
return ( return (
<div> <div>
<h2 className="text-2xl font-semibold text-gray-900 dark:text-white mb-4"> <h2 className="text-2xl font-semibold text-foreground mb-4">
Preferences Preferences
</h2> </h2>
<p className="text-gray-600 dark:text-gray-400"> <p className="text-muted-foreground">
Configure your preferences (Coming in Task 3.5) Configure your preferences (Coming in Task 3.5)
</p> </p>
</div> </div>

View File

@@ -12,10 +12,10 @@ export const metadata: Metadata = {
export default function ProfileSettingsPage() { export default function ProfileSettingsPage() {
return ( return (
<div> <div>
<h2 className="text-2xl font-semibold text-gray-900 dark:text-white mb-4"> <h2 className="text-2xl font-semibold text-foreground mb-4">
Profile Settings Profile Settings
</h2> </h2>
<p className="text-gray-600 dark:text-gray-400"> <p className="text-muted-foreground">
Manage your profile information (Coming in Task 3.2) Manage your profile information (Coming in Task 3.2)
</p> </p>
</div> </div>

View File

@@ -12,10 +12,10 @@ export const metadata: Metadata = {
export default function SessionsPage() { export default function SessionsPage() {
return ( return (
<div> <div>
<h2 className="text-2xl font-semibold text-gray-900 dark:text-white mb-4"> <h2 className="text-2xl font-semibold text-foreground mb-4">
Active Sessions Active Sessions
</h2> </h2>
<p className="text-gray-600 dark:text-gray-400"> <p className="text-muted-foreground">
Manage your active sessions (Coming in Task 3.4) Manage your active sessions (Coming in Task 3.4)
</p> </p>
</div> </div>

View File

@@ -11,16 +11,16 @@ export function Footer() {
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
return ( return (
<footer className="border-t bg-gray-50 dark:bg-gray-900/50"> <footer className="border-t bg-muted/30">
<div className="container mx-auto px-4 py-6"> <div className="container mx-auto px-4 py-6">
<div className="flex flex-col items-center justify-between space-y-4 md:flex-row md:space-y-0"> <div className="flex flex-col items-center justify-between space-y-4 md:flex-row md:space-y-0">
<div className="text-center text-sm text-gray-600 dark:text-gray-400 md:text-left"> <div className="text-center text-sm text-muted-foreground md:text-left">
© {currentYear} FastNext Template. All rights reserved. © {currentYear} FastNext Template. All rights reserved.
</div> </div>
<div className="flex space-x-6"> <div className="flex space-x-6">
<Link <Link
href="/settings/profile" href="/settings/profile"
className="text-sm text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100" className="text-sm text-muted-foreground hover:text-foreground transition-colors"
> >
Settings Settings
</Link> </Link>
@@ -28,7 +28,7 @@ export function Footer() {
href="https://github.com/yourusername/fastnext-stack" href="https://github.com/yourusername/fastnext-stack"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className="text-sm text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100" className="text-sm text-muted-foreground hover:text-foreground transition-colors"
> >
GitHub GitHub
</a> </a>

View File

@@ -57,8 +57,8 @@ function NavLink({
className={cn( className={cn(
'px-3 py-2 rounded-md text-sm font-medium transition-colors', 'px-3 py-2 rounded-md text-sm font-medium transition-colors',
isActive isActive
? 'bg-gray-900 text-white dark:bg-gray-700' ? 'bg-primary text-primary-foreground'
: 'text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800' : 'text-foreground/80 hover:bg-accent hover:text-accent-foreground'
)} )}
> >
{children} {children}
@@ -75,12 +75,12 @@ export function Header() {
}; };
return ( return (
<header className="sticky top-0 z-50 w-full border-b bg-white dark:bg-gray-900"> <header className="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
<div className="container mx-auto flex h-16 items-center px-4"> <div className="container mx-auto flex h-16 items-center px-4">
{/* Logo */} {/* Logo */}
<div className="flex items-center space-x-8"> <div className="flex items-center space-x-8">
<Link href="/" className="flex items-center space-x-2"> <Link href="/" className="flex items-center space-x-2">
<span className="text-xl font-bold text-gray-900 dark:text-white"> <span className="text-xl font-bold text-foreground">
FastNext FastNext
</span> </span>
</Link> </Link>