From 4afadb950212f2972c98f4fd248430b256747a9e Mon Sep 17 00:00:00 2001 From: Cody Bender Date: Thu, 8 Aug 2024 23:44:45 -0400 Subject: [PATCH] style: json tree view --- src/components/AppBar.js | 2 +- src/components/Json.js | 9 +++++++++ src/theme.js | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/AppBar.js b/src/components/AppBar.js index 37d1d66..e11a072 100644 --- a/src/components/AppBar.js +++ b/src/components/AppBar.js @@ -57,7 +57,7 @@ const AppBar = ({ config }) => { return ( <> - +
diff --git a/src/components/Json.js b/src/components/Json.js index 0830470..49147ee 100644 --- a/src/components/Json.js +++ b/src/components/Json.js @@ -14,9 +14,18 @@ const useStyles = makeStyles(() => ({ flex: 1, }, })); +const useTreeStyles = makeStyles( + (theme) => ({ + colorPrimary: { + color: theme.palette.secondary.main, + }, + }), + { name: "MuiTypography" }, +); const Json = ({ data }) => { const classes = useStyles(); + useTreeStyles(); return ( primary: { main: "#0000F4", }, + secondary: { + main: "#A2A2FF", + }, background: { default: "#18181A", secondary: "#18181A",