11 lines
453 B
TypeScript
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>;
|
|
} |