mirror of
https://github.com/wassname/ray.git
synced 2026-07-22 13:00:49 +08:00
[Dashboard] Add the new dashboard code and prompt users to try it (#11667)
This commit is contained in:
@@ -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],
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user