Styled Homepage
This commit is contained in:
11
src/components/ThemeProvider.tsx
Normal file
11
src/components/ThemeProvider.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
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>;
|
||||
}
|
||||
Reference in New Issue
Block a user