diff --git a/src/components/UI/docs/MDComponents.tsx b/src/components/UI/docs/MDComponents.tsx index 4a9625f968..e7d09ff17a 100644 --- a/src/components/UI/docs/MDComponents.tsx +++ b/src/components/UI/docs/MDComponents.tsx @@ -15,7 +15,7 @@ import { Code, Note } from '.'; import { textStyles } from '../../../theme/foundations'; import { parseHeadingId } from '../../../utils/parseHeadingId'; -const { header1, header2, header3, header4 } = textStyles; +const { h1, header2, header3, header4 } = textStyles; const MDComponents = { // paragraphs @@ -45,7 +45,7 @@ const MDComponents = { const { children: parsedChildren, headingId } = parseHeadingId(children); return ( - + {parsedChildren} ); diff --git a/src/pages/[...slug].tsx b/src/pages/[...slug].tsx index 86380e3a38..31dc39f9d8 100644 --- a/src/pages/[...slug].tsx +++ b/src/pages/[...slug].tsx @@ -107,7 +107,7 @@ const DocPage: NextPage = ({ frontmatter, content, navLinks, lastModified - + {frontmatter.title} diff --git a/src/theme/foundations/textStyles.ts b/src/theme/foundations/textStyles.ts index 64d1949408..9ed116e70e 100644 --- a/src/theme/foundations/textStyles.ts +++ b/src/theme/foundations/textStyles.ts @@ -2,7 +2,7 @@ export const textStyles = { h1: { fontFamily: 'heading', fontWeight: 700, - fontSize: '2.75rem', + fontSize: { base: '2.175rem', md: '2.875rem' }, lineHeight: '3.375rem', letterSpacing: { base: '0.03rem', md: '0.04rem' }, color: 'body' @@ -15,14 +15,7 @@ export const textStyles = { letterSpacing: { base: '0.03rem', md: '0.04rem' }, color: 'body' }, - header1: { - fontFamily: 'heading', - fontWeight: 700, - fontSize: { base: '1.875rem', md: '2.125rem' }, - letterSpacing: { base: '0.03rem', md: '0.04rem' }, - lineHeight: 'normal', - color: 'body' - }, + header2: { fontFamily: 'heading', fontSize: { base: '1.5rem', md: '1.75rem' },