0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Sorted fonts alphabetically

This commit is contained in:
Daniël van der Winden 2024-10-16 15:09:27 +02:00 committed by Aileen Booker
parent 5c52607ada
commit f64ba51330
2 changed files with 38 additions and 38 deletions

View file

@ -48,31 +48,31 @@ const GlobalSettings: React.FC<{ values: GlobalSettingValues, updateSetting: (ke
const [bodyFont, setBodyFont] = useState(values.bodyFont || DEFAULT_FONT);
const fontClassName = (fontName: string) => {
if (fontName === 'Space Grotesk') {
return 'font-space-grotesk';
} else if (fontName === 'Chakra Petch') {
if (fontName === 'Chakra Petch') {
return 'font-chakra-petch';
} else if (fontName === 'Noto Sans') {
return 'font-noto-sans';
} else if (fontName === 'Poppins') {
return 'font-poppins';
} else if (fontName === 'Fira Sans') {
return 'font-fira-sans';
} else if (fontName === 'Noto Serif') {
return 'font-noto-serif';
} else if (fontName === 'Lora') {
return 'font-lora';
} else if (fontName === 'IBM Plex Serif') {
return 'font-ibm-plex-serif';
} else if (fontName === 'EB Garamond') {
return 'font-eb-garamond';
} else if (fontName === 'Space Mono') {
return 'font-space-mono';
} else if (fontName === 'Fira Mono') {
return 'font-fira-mono';
} else if (fontName === 'Fira Sans') {
return 'font-fira-sans';
} else if (fontName === 'IBM Plex Serif') {
return 'font-ibm-plex-serif';
} else if (fontName === 'JetBrains Mono') {
return 'font-jetbrains-mono';
}
} else if (fontName === 'Lora') {
return 'font-lora';
} else if (fontName === 'Noto Sans') {
return 'font-noto-sans';
} else if (fontName === 'Noto Serif') {
return 'font-noto-serif';
} else if (fontName === 'Poppins') {
return 'font-poppins';
} else if (fontName === 'Space Grotesk') {
return 'font-space-grotesk';
} else if (fontName === 'Space Mono') {
return 'font-space-mono';
}
return '';
};

View file

@ -98,33 +98,33 @@ export function generateCustomFontCss(fonts: FontSelection) {
export const CUSTOM_FONTS: CustomFonts = {
heading: [
'Space Grotesk',
'Playfair Display',
'Chakra Petch',
'Noto Sans',
'Poppins',
'Fira Sans',
'Inter',
'Noto Serif',
'Lora',
'IBM Plex Serif',
'EB Garamond',
'Space Mono',
'Fira Mono',
'JetBrains Mono'
'Fira Sans',
'IBM Plex Serif',
'Inter',
'JetBrains Mono',
'Lora',
'Noto Sans',
'Noto Serif',
'Playfair Display',
'Poppins',
'Space Grotesk',
'Space Mono'
],
body: [
'Noto Sans',
'Poppins',
'Fira Sans',
'Inter',
'Noto Serif',
'Lora',
'IBM Plex Serif',
'EB Garamond',
'Space Mono',
'Fira Mono',
'JetBrains Mono'
'Fira Sans',
'IBM Plex Serif',
'Inter',
'JetBrains Mono',
'Lora',
'Noto Sans',
'Noto Serif',
'Poppins',
'Space Mono'
]
};