import { GlobalStyles, PaletteColor, useTheme } from "@mui/material"; const generateColorVariables = (key: string, color: PaletteColor) => { return { [`--theme-palette-${ key }-main`]: color.main, [`--theme-palette-${ key }-light`]: color.light, [`--theme-palette-${ key }-contrast-text`]: color.contrastText, [`--theme-palette-${ key }-dark`]: color.dark, } } export type MuiCssVarsProps = { /** * Custom CSS variables and rules */ rules?: Record; }; export function MuiCssVars({ rules = {} }: MuiCssVarsProps) { const theme = useTheme(); return ; }