diff --git a/packages/web/components/templates/article/FontFamiliesOptions.tsx b/packages/web/components/templates/article/FontFamiliesOptions.tsx index de8c88d00..7ea01d8f9 100644 --- a/packages/web/components/templates/article/FontFamiliesOptions.tsx +++ b/packages/web/components/templates/article/FontFamiliesOptions.tsx @@ -3,8 +3,16 @@ import { StyledText } from '../../elements/StyledText' import { theme } from '../../tokens/stitches.config' import { CaretLeft, CheckCircle } from 'phosphor-react' -const DEFAULT_FONT_FAMILY = 'Inter' -const GOOGLE_FONT_FAMILIES = ['Lyon', 'Tisa', 'Merriweather'] +const FONT_FAMILIES = [ + 'Inter', + 'System Default', + 'Merriweather', + 'Lora', + 'Open Sans', + 'Roboto', + 'Crimson Text', + 'Source Serif Pro' +] type FontFamiliesListProps = { selected: string @@ -19,15 +27,16 @@ type FontOptionProps = { } function FontOption(props: FontOptionProps):JSX.Element { + const isSelected = props.selected === props.family return ( props.onSelect(props.family)} > {props.family} - {props.selected === props.family && ( + {isSelected && ( )} @@ -56,10 +65,7 @@ export function FontFamiliesOptions(props: FontFamiliesListProps): JSX.Element { - DEFAULT - - GOOGLE FONTS - {GOOGLE_FONT_FAMILIES.map((family) => ( + {FONT_FAMILIES.map((family) => ( ))}