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:
1 parent
d678b3a304
commit
2ec55c6469
4 files changed
+15
-24
No files matched your search
@@ -21,24 +21,16 @@ export const SwitchComponent = forwardRef<HTMLInputElement, SwitchComponentProps
|
||||
},
|
||||
}}
|
||||
sx={[
|
||||
{
|
||||
"& .MuiSwitch-switchBase": {
|
||||
"&.Mui-checked": {
|
||||
color: "#E0E0E0",
|
||||
"& + .MuiSwitch-track": {
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
opacity: 1,
|
||||
border: 0,
|
||||
...(dualOption
|
||||
? [
|
||||
{
|
||||
"& .MuiSwitch-track": {
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
opacity: 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
...(dualOption && {
|
||||
"& .MuiSwitch-track": {
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
opacity: 1,
|
||||
},
|
||||
}),
|
||||
},
|
||||
]
|
||||
: []),
|
||||
...additionalSx,
|
||||
]}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user