diff --git a/src/features/theme/services/AppThemes.ts b/src/features/theme/services/AppThemes.ts index 201d93de..001052e2 100644 --- a/src/features/theme/services/AppThemes.ts +++ b/src/features/theme/services/AppThemes.ts @@ -52,7 +52,9 @@ const getFontsFromTheme = (obj: Record, fonts: string[] = []): stri const isValidFontProperty = propertyName === 'fontFamily' && propertyType === 'string'; if (isValidFontProperty) { - tmpFonts.push(propertyValue as string); + const detectedFonts = propertyValue.split(',') as string[]; + const normalizedFonts = detectedFonts.map((detectedFont) => detectedFont.replace(/"/g, '').trim()); + tmpFonts.push(...normalizedFonts); // eslint-disable-next-line no-continue continue; }