mirror of
https://github.com/openziti/zrok.git
synced 2024-12-22 23:02:52 +01: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 {createRoot} from "react-dom/client";
|
||||
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(
|
||||
<StrictMode>
|
||||
<AgentUi />
|
||||
<ThemeProvider theme={createTheme(themeOptions)}>
|
||||
<AgentUi />
|
||||
</ThemeProvider>
|
||||
</StrictMode>,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user