chore: update postcss to version 8.5.14 and sort font weights in typography components

This commit is contained in:
Amruth Pillai
2026-05-10 22:09:37 +02:00
parent 64ac3ff328
commit 3cd228bd84
9 changed files with 102 additions and 29 deletions
+4
View File
@@ -171,6 +171,10 @@ export function getWebFontSource(family: string, weight: FontWeight = "400", ita
return webFont.files[key] ?? (italic ? webFont.files[weight] : undefined) ?? webFont.preview;
}
export function sortFontWeights<T extends string>(fontWeights: T[]): T[] {
return [...fontWeights].sort((a, b) => Number(a) - Number(b));
}
export function getFallbackWebFontFamilies(family: string) {
if (isStandardPdfFontFamily(family)) return [];