- Move styles to theme

- Use different color for above and below 50%
This commit is contained in:
Shemy Gan committed 2024-10-29 21:35:58 -04:00
1 parent 09ba21245c
commit 5e54f5c757
3 files changed
+42 -27

No files matched your search

+9
View File
@@ -1,4 +1,5 @@
import { createTheme } from "@mui/material";
import { gaugeText } from "./lightTheme"
const text = {
primary: "#fafafa",
@@ -34,6 +35,14 @@ const darkTheme = createTheme({
primary: { main: "#1570ef" },
secondary: { main: "#2D2D33" },
text: text,
gaugePercentageText: {
...gaugeText,
fontSize: "11px"
},
gaugeDisplayText: {
...gaugeText,
fontSize: "9px"
},
background: background,
border: border,
info: {
+16
View File
@@ -12,6 +12,14 @@ const background = {
fill: "#F4F4F4",
accent: "#f9fafb",
};
export const gaugeText = {
fontWeight: 400,
fill: text.tertiary,
textAnchor: "middle",
dominantBaseline: "middle",
}
const border = { light: "#eaecf0", dark: "#d0d5dd" };
const fontFamilyDefault =
@@ -32,6 +40,14 @@ const lightTheme = createTheme({
primary: { main: "#1570EF" },
secondary: { main: "#F4F4F4", dark: "#e3e3e3", contrastText: "#475467" },
text: text,
gaugePercentageText: {
...gaugeText,
fontSize: "11px"
},
gaugeDisplayText: {
...gaugeText,
fontSize: "9px"
},
background: background,
border: border,
info: {