diff --git a/libs/components/editor-blocks/src/blocks/page/PageView.tsx b/libs/components/editor-blocks/src/blocks/page/PageView.tsx index 5aca7e6460..17ad6cae9c 100644 --- a/libs/components/editor-blocks/src/blocks/page/PageView.tsx +++ b/libs/components/editor-blocks/src/blocks/page/PageView.tsx @@ -109,12 +109,15 @@ export const PageView: FC = ({ block, editor }) => { ); }; -const PageTitleBlock = styled('div')({ - '.title': { - fontSize: Theme.typography.page.fontSize, - lineHeight: Theme.typography.page.lineHeight, - }, - '.content': { - outline: 'none', - }, +const PageTitleBlock = styled('div')(({ theme }) => { + return { + '.title': { + fontSize: theme.affine.typography.page.fontSize, + lineHeight: theme.affine.typography.page.lineHeight, + fontWeight: theme.affine.typography.page.fontWeight, + }, + '.content': { + outline: 'none', + }, + }; });