Files
TriggerFrontend/src/components/ThemeProvider.tsx
2024-08-15 15:12:05 -05:00

11 lines
453 B
TypeScript

import { Box } from '@mantine/core';
export default function ThemeProvider({ theme, children }: { theme: any, children: React.ReactNode }) {
return <Box style={{
'--color-text-pri': theme.colortextpri,
'--color-text-acc': theme.colortextacc,
'--color-background': theme.colorbackground,
'--color-border': theme.colorborder,
'--color-search-background': theme.colorsearchbackground,
}}>{children}</Box>;
}