From 64ae7579bd36305bd16c05a693087def7646b920 Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Mon, 12 Dec 2022 11:45:08 -0700 Subject: [PATCH] update header styles --- src/components/UI/docs/MDComponents.tsx | 8 ++++---- src/theme/foundations/textStyles.ts | 16 ++++------------ 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/components/UI/docs/MDComponents.tsx b/src/components/UI/docs/MDComponents.tsx index e7d09ff17a..852ee781a3 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 { h1, header2, header3, header4 } = textStyles; +const { h1, h2, h3, h4 } = textStyles; const MDComponents = { // paragraphs @@ -59,7 +59,7 @@ const MDComponents = { textAlign='start' mt={{ base: '12 !important', md: '16 !important' }} mb='4 !important' - {...header2} + {...h2} id={headingId} > {parsedChildren} @@ -69,7 +69,7 @@ const MDComponents = { h3: ({ children }: any) => { const { children: parsedChildren, headingId } = parseHeadingId(children); return ( - + {parsedChildren} ); @@ -78,7 +78,7 @@ const MDComponents = { const { children: parsedChildren, headingId } = parseHeadingId(children); return ( - + {parsedChildren} ); diff --git a/src/theme/foundations/textStyles.ts b/src/theme/foundations/textStyles.ts index 9ed116e70e..0cd8bff7ed 100644 --- a/src/theme/foundations/textStyles.ts +++ b/src/theme/foundations/textStyles.ts @@ -15,36 +15,28 @@ export const textStyles = { letterSpacing: { base: '0.03rem', md: '0.04rem' }, color: 'body' }, - - header2: { - fontFamily: 'heading', - fontSize: { base: '1.5rem', md: '1.75rem' }, - letterSpacing: { base: '0.03rem', md: '0.04rem' }, - lineHeight: 'normal', - color: 'body' - }, - header3: { + h3: { fontFamily: 'heading', fontSize: { base: '1.25rem', md: '1.375rem' }, letterSpacing: { base: '0.03rem', md: '0.04rem' }, lineHeight: 'normal', color: 'body' }, - header4: { + h4: { fontFamily: 'heading', fontSize: '1.125rem', letterSpacing: { base: '0.03rem', md: '0.04rem' }, lineHeight: 'normal', color: 'body' }, - header5: { + h5: { fontFamily: 'heading', fontSize: '1rem', letterSpacing: '0.02rem', lineHeight: 'normal', color: 'body' }, - header6: { + h6: { fontFamily: 'heading', fontSize: '0.875rem', letterSpacing: '0.02rem',