2026-05-04 12:11:57 -07:00
|
|
|
import { alpha } from "@mui/material/styles";
|
2026-08-28 19:13:33 -04:00
|
|
|
import { HOVER } from "@/Utils/Theme/constants";
|
2026-05-04 12:11:57 -07:00
|
|
|
|
2026-01-23 19:58:37 +00:00
|
|
|
const typographyBase = 13;
|
|
|
|
|
|
|
|
|
|
export const typographyLevels = {
|
2026-04-29 09:37:37 -07:00
|
|
|
base: typographyBase, // 13px
|
|
|
|
|
xs: `${(typographyBase - 4) / 16}rem`, // 9px
|
|
|
|
|
s: `${(typographyBase - 2) / 16}rem`, // 11px
|
|
|
|
|
m: `${typographyBase / 16}rem`, // 13px
|
|
|
|
|
l: `${(typographyBase + 2) / 16}rem`, // 15px
|
|
|
|
|
xl: `${(typographyBase + 5) / 16}rem`, // 18px
|
|
|
|
|
xxl: `${(typographyBase + 10) / 16}rem`, // 23px
|
2026-01-23 19:58:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const colors = {
|
|
|
|
|
gray200: "#EFEFEF",
|
|
|
|
|
gray700: "#313131",
|
2026-03-04 19:56:54 -05:00
|
|
|
gray900: "#151518",
|
|
|
|
|
gray850: "#1c1c21",
|
2026-09-03 00:45:40 -04:00
|
|
|
// Neutral ramp, biased slightly green so it sits with the brand rather than
|
|
|
|
|
// against it. Opaque values - alpha-black over white reads washed out.
|
|
|
|
|
ink900: "#101917",
|
|
|
|
|
ink600: "#55635C",
|
|
|
|
|
ink400: "#7C8983",
|
|
|
|
|
surface50: "#F6F8F7",
|
2026-09-03 00:52:41 -04:00
|
|
|
rule200: "#C7D2CC",
|
2026-09-03 00:45:40 -04:00
|
|
|
// Semantic colours derived from the brand rather than Material's defaults
|
|
|
|
|
successMain: "#0D6049",
|
|
|
|
|
errorMain: "#A02B24",
|
|
|
|
|
warningMain: "#8C5806",
|
|
|
|
|
inkDark900: "#ECEFED",
|
|
|
|
|
inkDark600: "#A3ADA8",
|
2026-09-03 00:52:41 -04:00
|
|
|
ruleDark: "#3A4642",
|
2026-09-03 00:45:40 -04:00
|
|
|
successDark: "#4BC49E",
|
|
|
|
|
errorDark: "#E8837A",
|
|
|
|
|
warningDark: "#E0A458",
|
2026-04-26 01:21:04 -04:00
|
|
|
brandGreen: "#13715B",
|
2026-04-26 01:55:17 -04:00
|
|
|
brandGreenLight: "#4DAF94",
|
2026-05-04 12:11:57 -07:00
|
|
|
green200: "#ECF7F2",
|
2026-07-28 15:27:04 -07:00
|
|
|
green700: "#008300",
|
2026-05-04 12:11:57 -07:00
|
|
|
yellow200: "#FFF4E5",
|
2026-07-28 15:27:04 -07:00
|
|
|
yellow500: "#EDA100",
|
|
|
|
|
yellow600: "#C98500",
|
2026-05-04 12:11:57 -07:00
|
|
|
orange500: "#FFA500",
|
2026-07-28 15:27:04 -07:00
|
|
|
orange600: "#EB6834",
|
|
|
|
|
orange700: "#D95926",
|
|
|
|
|
blue400: "#3987E5",
|
|
|
|
|
blue500: "#2A78D6",
|
|
|
|
|
aqua500: "#1BAF7A",
|
|
|
|
|
aqua600: "#199E70",
|
|
|
|
|
magenta300: "#E87BA4",
|
|
|
|
|
magenta400: "#D55181",
|
2026-01-23 19:58:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const lightPalette = {
|
|
|
|
|
primary: {
|
2026-04-26 01:21:04 -04:00
|
|
|
main: colors.brandGreen,
|
2026-01-23 19:58:37 +00:00
|
|
|
},
|
2026-08-28 19:13:33 -04:00
|
|
|
action: {
|
|
|
|
|
rowHover: alpha(colors.gray900, HOVER.ROW),
|
2026-08-28 19:53:39 -04:00
|
|
|
controlHover: alpha(colors.gray900, HOVER.CONTROL),
|
2026-08-28 19:13:33 -04:00
|
|
|
},
|
2026-01-23 19:58:37 +00:00
|
|
|
secondary: {
|
|
|
|
|
main: colors.gray200,
|
|
|
|
|
},
|
2026-09-03 00:45:40 -04:00
|
|
|
background: {
|
|
|
|
|
default: colors.surface50,
|
|
|
|
|
paper: "#FFFFFF",
|
|
|
|
|
},
|
|
|
|
|
text: {
|
|
|
|
|
primary: colors.ink900,
|
|
|
|
|
secondary: colors.ink600,
|
|
|
|
|
disabled: colors.ink400,
|
|
|
|
|
},
|
|
|
|
|
divider: colors.rule200,
|
|
|
|
|
// Only `main` is set. MUI derives `light`/`dark` from it, and `light` is
|
|
|
|
|
// consumed as a saturated colour - status dots, histogram bars, heatmap
|
|
|
|
|
// cells - so it must not be overridden with a pale tint.
|
|
|
|
|
success: {
|
|
|
|
|
main: colors.successMain,
|
|
|
|
|
},
|
|
|
|
|
error: {
|
|
|
|
|
main: colors.errorMain,
|
|
|
|
|
},
|
|
|
|
|
warning: {
|
|
|
|
|
main: colors.warningMain,
|
|
|
|
|
},
|
2026-04-26 01:55:17 -04:00
|
|
|
sidebar: {
|
|
|
|
|
accent: colors.brandGreen,
|
|
|
|
|
},
|
2026-05-04 12:11:57 -07:00
|
|
|
rowStatus: {
|
|
|
|
|
running: colors.green200,
|
|
|
|
|
paused: colors.yellow200,
|
|
|
|
|
},
|
2026-07-28 15:27:04 -07:00
|
|
|
chart: {
|
|
|
|
|
phases: {
|
|
|
|
|
dns: colors.magenta300,
|
|
|
|
|
tcp: colors.orange600,
|
|
|
|
|
tls: colors.aqua500,
|
|
|
|
|
request: colors.yellow500,
|
|
|
|
|
firstByte: colors.blue500,
|
|
|
|
|
download: colors.green700,
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-01-23 19:58:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const darkPalette = {
|
|
|
|
|
primary: {
|
2026-04-26 01:21:04 -04:00
|
|
|
main: colors.brandGreen,
|
2026-01-23 19:58:37 +00:00
|
|
|
},
|
2026-08-28 19:13:33 -04:00
|
|
|
action: {
|
|
|
|
|
rowHover: alpha("#FFFFFF", HOVER.ROW),
|
2026-08-28 19:53:39 -04:00
|
|
|
controlHover: alpha("#FFFFFF", HOVER.CONTROL),
|
2026-08-28 19:13:33 -04:00
|
|
|
},
|
2026-01-23 19:58:37 +00:00
|
|
|
secondary: {
|
|
|
|
|
main: colors.gray700,
|
|
|
|
|
},
|
2026-03-04 16:30:19 -05:00
|
|
|
background: {
|
2026-03-04 19:56:54 -05:00
|
|
|
default: colors.gray900,
|
|
|
|
|
paper: colors.gray850,
|
2026-03-04 16:30:19 -05:00
|
|
|
},
|
2026-09-03 00:45:40 -04:00
|
|
|
text: {
|
|
|
|
|
primary: colors.inkDark900,
|
|
|
|
|
secondary: colors.inkDark600,
|
|
|
|
|
disabled: colors.ink400,
|
|
|
|
|
},
|
|
|
|
|
divider: colors.ruleDark,
|
|
|
|
|
success: {
|
|
|
|
|
main: colors.successDark,
|
|
|
|
|
},
|
|
|
|
|
error: {
|
|
|
|
|
main: colors.errorDark,
|
|
|
|
|
},
|
|
|
|
|
warning: {
|
|
|
|
|
main: colors.warningDark,
|
|
|
|
|
},
|
2026-04-26 01:55:17 -04:00
|
|
|
sidebar: {
|
|
|
|
|
accent: colors.brandGreenLight,
|
|
|
|
|
},
|
2026-05-04 12:11:57 -07:00
|
|
|
rowStatus: {
|
|
|
|
|
running: alpha(colors.brandGreen, 0.18),
|
|
|
|
|
paused: alpha(colors.orange500, 0.18),
|
|
|
|
|
},
|
2026-07-28 15:27:04 -07:00
|
|
|
chart: {
|
|
|
|
|
phases: {
|
|
|
|
|
dns: colors.magenta400,
|
|
|
|
|
tcp: colors.orange700,
|
|
|
|
|
tls: colors.aqua600,
|
|
|
|
|
request: colors.yellow600,
|
|
|
|
|
firstByte: colors.blue500,
|
|
|
|
|
download: colors.green700,
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-01-23 19:58:37 +00:00
|
|
|
};
|