fix: resolve mixed light/dark mode styling in admin UI (#175)
- Update .card class to use explicit Tailwind colors instead of CSS variables, preventing gallery theme from affecting admin UI - Add .card-themed and .input-themed classes for gallery components that need to use theme CSS variables - Add dark mode support to CardHeader and CardFooter components - Update .input class to use explicit colors for proper light/dark mode - Update dark mode selectors for consistency (.dark .class)
This commit is contained in:
@@ -57,9 +57,9 @@ export const CardHeader: React.FC<CardHeaderProps> = ({
|
||||
{...props}
|
||||
>
|
||||
<div>
|
||||
<h3 className="text-lg font-semibold text-neutral-900">{title}</h3>
|
||||
<h3 className="text-lg font-semibold text-neutral-900 dark:text-neutral-100">{title}</h3>
|
||||
{subtitle && (
|
||||
<p className="mt-1 text-sm text-neutral-500">{subtitle}</p>
|
||||
<p className="mt-1 text-sm text-neutral-500 dark:text-neutral-400">{subtitle}</p>
|
||||
)}
|
||||
</div>
|
||||
{action && <div className="ml-4">{action}</div>}
|
||||
@@ -95,7 +95,7 @@ export const CardFooter: React.FC<CardFooterProps> = ({
|
||||
return (
|
||||
<div
|
||||
className={clsx(
|
||||
'mt-6 pt-6 border-t border-neutral-200',
|
||||
'mt-6 pt-6 border-t border-neutral-200 dark:border-neutral-700',
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user