mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-01-19 19:25:52 +08:00
20 lines
456 B
TypeScript
20 lines
456 B
TypeScript
import { createMuiTheme, Theme } from "@material-ui/core/styles";
|
|
|
|
export function makeTheme(isDarkTheme: boolean): Theme {
|
|
return createMuiTheme({
|
|
// Got color palette from https://htmlcolors.com/palette/31/stripe
|
|
palette: {
|
|
primary: {
|
|
main: "#4379FF",
|
|
},
|
|
secondary: {
|
|
main: "#97FBD1",
|
|
},
|
|
background: {
|
|
default: "#f5f7f9",
|
|
},
|
|
type: isDarkTheme ? "dark" : "light",
|
|
},
|
|
});
|
|
}
|