style: json tree view

This commit is contained in:
Cody Bender 2024-08-08 23:44:45 -04:00
parent bff6749a91
commit 4afadb9502
3 changed files with 13 additions and 1 deletions

View File

@ -57,7 +57,7 @@ const AppBar = ({ config }) => {
return ( return (
<> <>
<MuiAppBar position="fixed" elevation={0}> <MuiAppBar position="fixed" elevation={0} color="primary">
<Toolbar> <Toolbar>
<Link classes={{ root: classes.logoLink }} href="/"> <Link classes={{ root: classes.logoLink }} href="/">
<div className={classes.logo}> <div className={classes.logo}>

View File

@ -14,9 +14,18 @@ const useStyles = makeStyles(() => ({
flex: 1, flex: 1,
}, },
})); }));
const useTreeStyles = makeStyles(
(theme) => ({
colorPrimary: {
color: theme.palette.secondary.main,
},
}),
{ name: "MuiTypography" },
);
const Json = ({ data }) => { const Json = ({ data }) => {
const classes = useStyles(); const classes = useStyles();
useTreeStyles();
return ( return (
<JsonTreeView <JsonTreeView

View File

@ -63,6 +63,9 @@ export const createTheme = (theme) =>
primary: { primary: {
main: "#0000F4", main: "#0000F4",
}, },
secondary: {
main: "#A2A2FF",
},
background: { background: {
default: "#18181A", default: "#18181A",
secondary: "#18181A", secondary: "#18181A",