tutu/src/material/theme.ts

30 lines
747 B
TypeScript
Raw Normal View History

2024-07-14 12:28:44 +00:00
import { Theme, createTheme } from "@suid/material/styles";
2024-11-23 12:20:27 +00:00
import { deepPurple, amber, red } from "@suid/material/colors";
2024-07-14 12:28:44 +00:00
import { Accessor } from "solid-js";
/**
* The MUI theme.
*/
2024-11-25 06:53:46 +00:00
export function createRootTheme(): Accessor<Theme> {
const theme = createTheme({
palette: {
primary: {
main: deepPurple[500],
2024-07-14 12:28:44 +00:00
},
2024-11-25 06:53:46 +00:00
error: {
main: red[900],
},
secondary: {
main: amber.A200,
},
},
});
return () => theme;
2024-07-14 12:28:44 +00:00
}
export const ANIM_CURVE_STD = "cubic-bezier(0.4, 0, 0.2, 1)";
export const ANIM_CURVE_DECELERATION = "cubic-bezier(0, 0, 0.2, 1)";
export const ANIM_CURVE_ACELERATION = "cubic-bezier(0.4, 0, 1, 1)";
export const ANIM_CURVE_SHARP = "cubic-bezier(0.4, 0, 0.6, 1)";