From fefd45a27b3f1cf97261bd466821f4bb6d61f1df Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Wed, 6 Nov 2024 15:27:47 +0800 Subject: [PATCH] Added Libre Baskerville font (#21539) ref DES-903 --- ghost/custom-fonts/src/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ghost/custom-fonts/src/index.ts b/ghost/custom-fonts/src/index.ts index 97bd6d6b03..822cd12101 100644 --- a/ghost/custom-fonts/src/index.ts +++ b/ghost/custom-fonts/src/index.ts @@ -18,6 +18,7 @@ export type HeadingFontName = | 'Cardo' | 'Chakra Petch' | 'Old Standard TT' + | 'Libre Baskerville' | 'Rufina' | 'Space Grotesk' | 'Tenor Sans' @@ -50,6 +51,7 @@ export const CUSTOM_FONTS: CustomFonts = { {name: 'IBM Plex Serif', creator: 'Mike Abbink'}, {name: 'Inter', creator: 'Rasmus Andersson'}, {name: 'JetBrains Mono', creator: 'JetBrains'}, + {name: 'Libre Baskerville', creator: 'Impallari Type'}, {name: 'Lora', creator: 'Cyreal'}, {name: 'Manrope', creator: 'Mikhail Sharanda'}, {name: 'Merriweather', creator: 'Sorkin Type'}, @@ -102,7 +104,8 @@ const classFontNames = { 'IBM Plex Serif': 'ibm-plex-serif', 'Space Mono': 'space-mono', 'Fira Mono': 'fira-mono', - 'JetBrains Mono': 'jetbrains-mono' + 'JetBrains Mono': 'jetbrains-mono', + 'Libre Baskerville': 'libre-baskerville' }; export function generateCustomFontCss(fonts: FontSelection) { @@ -169,6 +172,9 @@ export function generateCustomFontCss(fonts: FontSelection) { }, 'JetBrains Mono': { family: 'jetbrains-mono:400,700' + }, + 'Libre Baskerville': { + family: 'libre-baskerville:700' } };