mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 05:32:40 +08:00
62 lines
1.2 KiB
TypeScript
62 lines
1.2 KiB
TypeScript
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],
|
|
},
|
|
},
|
|
});
|