Add dark mode styling to modals and form elements
- Add global CSS overrides for input, select, textarea in dark mode - Update MetersModal with dark mode classes - Update ConcentratorsModal with dark mode classes - Update ProjectsPage modal with dark mode classes - Update RolesPage modal with dark mode classes - Update ConfirmModal with dark mode styling - Update ProfileModal with dark mode styling - All form labels, inputs, selects, and buttons now properly styled Dark mode elements: - Modal backgrounds: zinc-900 with zinc-700 border - Inputs/selects: zinc-800 background, zinc-700 border - Labels: zinc-400 text color - Cancel buttons: zinc-800 hover background Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -56,22 +56,22 @@ export default function ConfirmModal({
|
||||
<div
|
||||
ref={panelRef}
|
||||
tabIndex={-1}
|
||||
className="rounded-2xl bg-white border border-slate-200 shadow-xl overflow-hidden outline-none"
|
||||
className="rounded-2xl bg-white dark:bg-zinc-900 border border-slate-200 dark:border-zinc-700 shadow-xl overflow-hidden outline-none"
|
||||
>
|
||||
<div className="px-6 py-4 border-b border-slate-200">
|
||||
<div className="text-base font-semibold text-slate-900">{title}</div>
|
||||
<div className="px-6 py-4 border-b border-slate-200 dark:border-zinc-700">
|
||||
<div className="text-base font-semibold text-slate-900 dark:text-white">{title}</div>
|
||||
</div>
|
||||
|
||||
<div className="px-6 py-5">
|
||||
<p className="text-sm text-slate-700">{message}</p>
|
||||
<p className="text-sm text-slate-700 dark:text-zinc-300">{message}</p>
|
||||
</div>
|
||||
|
||||
<div className="px-6 py-4 border-t border-slate-200 flex justify-end gap-3">
|
||||
<div className="px-6 py-4 border-t border-slate-200 dark:border-zinc-700 flex justify-end gap-3">
|
||||
<button
|
||||
type="button"
|
||||
onClick={onClose}
|
||||
disabled={loading}
|
||||
className="rounded-xl px-4 py-2 text-sm font-medium border border-slate-200 bg-white text-slate-700 hover:bg-slate-100 transition disabled:opacity-60"
|
||||
className="rounded-xl px-4 py-2 text-sm font-medium border border-slate-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 text-slate-700 dark:text-zinc-300 hover:bg-slate-100 dark:hover:bg-zinc-700 transition disabled:opacity-60"
|
||||
>
|
||||
{cancelText}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user