diff --git a/client/templates/Gengar/Gengar.tsx b/client/templates/Gengar/Gengar.tsx index c0554433..79b7b589 100644 --- a/client/templates/Gengar/Gengar.tsx +++ b/client/templates/Gengar/Gengar.tsx @@ -1,5 +1,7 @@ +import { css } from '@emotion/css'; import { alpha } from '@mui/material'; import { Theme } from '@reactive-resume/schema'; +import clsx from 'clsx'; import get from 'lodash/get'; import { useMemo } from 'react'; @@ -19,12 +21,16 @@ const Gengar: React.FC = ({ page }) => { const theme: Theme = useAppSelector((state) => get(state.resume, 'metadata.theme', {})); const contrast = useMemo(() => getContrastColor(theme.primary), [theme.primary]); const backgroundColor: string = useMemo(() => alpha(theme.primary, 0.15), [theme.primary]); + const color = useMemo(() => (contrast === 'dark' ? theme.text : theme.background), [theme, contrast]); return (
-
+
{isFirstPage && }