mirror of
https://github.com/openziti/zrok.git
synced 2025-06-20 17:58:50 +02:00
initial mui theme customization (#221)
This commit is contained in:
parent
0c52aad441
commit
aa5810a98f
@ -2,9 +2,28 @@ import "./index.css";
|
|||||||
import {StrictMode} from "react";
|
import {StrictMode} from "react";
|
||||||
import {createRoot} from "react-dom/client";
|
import {createRoot} from "react-dom/client";
|
||||||
import AgentUi from "./AgentUi.jsx";
|
import AgentUi from "./AgentUi.jsx";
|
||||||
|
import {createTheme, ThemeProvider} from "@mui/material";
|
||||||
|
|
||||||
|
export const themeOptions = {
|
||||||
|
palette: {
|
||||||
|
mode: 'light',
|
||||||
|
primary: {
|
||||||
|
main: '#241775',
|
||||||
|
},
|
||||||
|
secondary: {
|
||||||
|
main: '#9bf316',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
typography: {
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
createRoot(document.getElementById('root')).render(
|
createRoot(document.getElementById('root')).render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
<AgentUi />
|
<ThemeProvider theme={createTheme(themeOptions)}>
|
||||||
|
<AgentUi />
|
||||||
|
</ThemeProvider>
|
||||||
</StrictMode>,
|
</StrictMode>,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user