fix(client): replace lingering hardcoded colours with theme tokens

- Default status-page colour now uses the brand green instead of a royal-blue hex
- PageSpeed API-key alert pulls from theme.palette.warning + alpha for both modes instead of hand-rolled amber values
- Settings JSON preview block uses action.hover instead of the hand-rolled #1e1e1e/#f5f5f5 pair
- Drop the redundant #E0E0E0 thumb override on SwitchComponent so the theme MuiSwitch override actually wins
This commit is contained in:
gorkem-bwl committed 2026-04-26 01:59:09 -04:00
1 parent d678b3a304
commit 2ec55c6469
4 files changed
+15 -24

No files matched your search

@@ -15,7 +15,7 @@ import CircularProgress from "@mui/material/CircularProgress";
import { HeaderAuthControls } from "@/Pages/Auth/components/HeaderAuthControls";
import type { StackProps } from "@mui/material/Stack";
import { useTheme } from "@mui/material/styles";
import { useTheme, alpha } from "@mui/material/styles";
import { Trans, useTranslation } from "react-i18next";
import { Link as RouterLink } from "react-router-dom";
import { Typography } from "@mui/material";
@@ -23,10 +23,9 @@ import { Typography } from "@mui/material";
export const PageSpeedKeyPriorityFallback = () => {
const theme = useTheme();
const { t } = useTranslation();
const isDark = theme.palette.mode === "dark";
const alertBg = isDark ? "rgba(245, 158, 11, 0.08)" : "#FFFAEB";
const alertBorder = isDark ? "rgba(245, 158, 11, 0.45)" : "#F59E0B";
const alertIcon = isDark ? "#FBBF24" : "#F59E0B";
const alertBg = alpha(theme.palette.warning.main, 0.08);
const alertBorder = alpha(theme.palette.warning.main, 0.45);
const alertIcon = theme.palette.warning.main;
return (
<EmptyState
fullscreen