fix dark/light mode surface colors and Remove button color
- Fix ContentViewer background invisible against card in dark mode - Fix Remove button not red in dark mode by using color="red.6" - Add distinct card background for light mode (gray-0) vs app background - Use CSS custom properties for card background across color schemes Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0cb7883fc9
commit
08c42a2e62
3 changed files with 9 additions and 5 deletions
|
|
@ -22,9 +22,9 @@
|
||||||
--inspector-text-inverse: var(--mantine-color-white);
|
--inspector-text-inverse: var(--mantine-color-white);
|
||||||
|
|
||||||
/* ── Surfaces ──────────────────────────────────────────── */
|
/* ── Surfaces ──────────────────────────────────────────── */
|
||||||
--inspector-surface-body: var(--mantine-color-body);
|
--inspector-surface-body: var(--mantine-color-dark-9);
|
||||||
--inspector-surface-card: var(--mantine-color-default);
|
--inspector-surface-card: var(--mantine-color-gray-0);
|
||||||
--inspector-surface-code: var(--mantine-color-gray-0);
|
--inspector-surface-code: var(--mantine-color-white);
|
||||||
|
|
||||||
/* ── Borders ───────────────────────────────────────────── */
|
/* ── Borders ───────────────────────────────────────────── */
|
||||||
--inspector-border-default: var(--mantine-color-default-border);
|
--inspector-border-default: var(--mantine-color-default-border);
|
||||||
|
|
@ -69,7 +69,8 @@
|
||||||
|
|
||||||
/* Dark mode overrides — tokens that need adjustment in dark scheme */
|
/* Dark mode overrides — tokens that need adjustment in dark scheme */
|
||||||
[data-mantine-color-scheme="dark"] {
|
[data-mantine-color-scheme="dark"] {
|
||||||
--inspector-surface-code: var(--mantine-color-dark-6);
|
--inspector-surface-card: var(--mantine-color-gray-9);
|
||||||
|
--inspector-surface-code: var(--mantine-color-dark-9);
|
||||||
--inspector-border-subtle: var(--mantine-color-dark-4);
|
--inspector-border-subtle: var(--mantine-color-dark-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ export function ServerCard({
|
||||||
<Button variant="subtle" size="xs" onClick={onEdit}>
|
<Button variant="subtle" size="xs" onClick={onEdit}>
|
||||||
Edit
|
Edit
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="transparent" size="xs" color="red" onClick={onRemove}>
|
<Button variant="subtle" size="xs" color="red.6" onClick={onRemove}>
|
||||||
Remove
|
Remove
|
||||||
</Button>
|
</Button>
|
||||||
</ActionsRow>
|
</ActionsRow>
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,7 @@ export const ThemeCard = Card.extend({
|
||||||
if (props.variant === "responsive") return { root: "card-responsive" };
|
if (props.variant === "responsive") return { root: "card-responsive" };
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
styles: () => ({
|
||||||
|
root: { backgroundColor: "var(--inspector-surface-card)" },
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue