Skip to content

Commit 2be7ec2

Browse files
Added Libre Baskerville font (#21539)
ref DES-903
1 parent 9f4209d commit 2be7ec2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/custom-fonts/src/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export type HeadingFontName =
1818
| 'Cardo'
1919
| 'Chakra Petch'
2020
| 'Old Standard TT'
21+
| 'Libre Baskerville'
2122
| 'Rufina'
2223
| 'Space Grotesk'
2324
| 'Tenor Sans'
@@ -50,6 +51,7 @@ export const CUSTOM_FONTS: CustomFonts = {
5051
{name: 'IBM Plex Serif', creator: 'Mike Abbink'},
5152
{name: 'Inter', creator: 'Rasmus Andersson'},
5253
{name: 'JetBrains Mono', creator: 'JetBrains'},
54+
{name: 'Libre Baskerville', creator: 'Impallari Type'},
5355
{name: 'Lora', creator: 'Cyreal'},
5456
{name: 'Manrope', creator: 'Mikhail Sharanda'},
5557
{name: 'Merriweather', creator: 'Sorkin Type'},
@@ -102,7 +104,8 @@ const classFontNames = {
102104
'IBM Plex Serif': 'ibm-plex-serif',
103105
'Space Mono': 'space-mono',
104106
'Fira Mono': 'fira-mono',
105-
'JetBrains Mono': 'jetbrains-mono'
107+
'JetBrains Mono': 'jetbrains-mono',
108+
'Libre Baskerville': 'libre-baskerville'
106109
};
107110

108111
export function generateCustomFontCss(fonts: FontSelection) {
@@ -169,6 +172,9 @@ export function generateCustomFontCss(fonts: FontSelection) {
169172
},
170173
'JetBrains Mono': {
171174
family: 'jetbrains-mono:400,700'
175+
},
176+
'Libre Baskerville': {
177+
family: 'libre-baskerville:700'
172178
}
173179
};
174180

0 commit comments

Comments
 (0)