tutu/src/material/mui.ts

18 lines
399 B
TypeScript
Raw Normal View History

2024-07-14 12:28:44 +00:00
import { Theme, createTheme } from "@suid/material/styles";
import { deepPurple, amber } from "@suid/material/colors";
import { Accessor } from "solid-js";
2024-08-05 07:33:00 +00:00
export function useRootTheme(): Accessor<Theme> {
return () =>
createTheme({
palette: {
primary: {
main: deepPurple[500],
},
secondary: {
main: amber.A200,
},
2024-07-14 12:28:44 +00:00
},
2024-08-05 07:33:00 +00:00
});
2024-07-14 12:28:44 +00:00
}