[Dashboard] Add the new dashboard code and prompt users to try it (#11667)

This commit is contained in:
Dominic Ming
2021-01-29 15:22:26 +08:00
committed by GitHub
parent 42d501d747
commit 752da83bb7
52 changed files with 4650 additions and 33 deletions
+61
View File
@@ -0,0 +1,61 @@
import { blue, blueGrey, grey, lightBlue } from "@material-ui/core/colors";
import { createMuiTheme } from "@material-ui/core/styles";
const basicTheme = {
typography: {
fontSize: 12,
fontFamily: [
"-apple-system",
"BlinkMacSystemFont",
'"Segoe UI"',
"Roboto",
'"Helvetica Neue"',
"Arial",
"sans-serif",
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
].join(","),
},
props: {
MuiPaper: {
elevation: 0,
},
},
};
export const lightTheme = createMuiTheme({
...basicTheme,
palette: {
primary: blue,
secondary: lightBlue,
text: {
primary: grey[900],
secondary: grey[800],
disabled: grey[400],
hint: grey[300],
},
background: {
paper: "#fff",
default: blueGrey[50],
},
},
});
export const darkTheme = createMuiTheme({
...basicTheme,
palette: {
primary: blue,
secondary: lightBlue,
text: {
primary: blueGrey[50],
secondary: blueGrey[100],
disabled: blueGrey[200],
hint: blueGrey[300],
},
background: {
paper: grey[800],
default: grey[900],
},
},
});