mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
add Material UI theme support (#4437)
* add Material UI theme support * add primary color palette Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
parent
586f23cfa9
commit
ebebb9c4bb
3 changed files with 96 additions and 2 deletions
|
|
@ -1,7 +1,16 @@
|
|||
import { ThemeProvider } from '@material-ui/styles';
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import "./index.css";
|
||||
|
||||
import { materialTheme } from './material-theme';
|
||||
|
||||
import { AppShell } from "containers";
|
||||
|
||||
ReactDOM.render(<AppShell />, document.getElementById("root"));
|
||||
const appWithMaterialTheme = () => (
|
||||
<ThemeProvider theme={materialTheme}>
|
||||
<AppShell />
|
||||
</ThemeProvider>
|
||||
);
|
||||
|
||||
ReactDOM.render(appWithMaterialTheme(), document.getElementById("root"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue