diff --git a/src/utils/tailwind.ts b/src/utils/tailwind.ts index dadddd39..530b2cfe 100644 --- a/src/utils/tailwind.ts +++ b/src/utils/tailwind.ts @@ -10,7 +10,7 @@ export type SizingConfig = { export const variableConfig = generateVariableAssigners(); -export const generateTailwindConfig = () => +export const generateTailwindConfig = (fonts?: { title: string[]; text: string[]; mono: string[] }) => ({ extend: { width: { @@ -129,9 +129,8 @@ export const generateTailwindConfig = () => "3xl": "clamp(24px,calc(0.4167vw + 1.46484375rem),30px)", }, fontFamily: { - title: ['"Obviously", serif'], - // title: ['"Space Grotesk", serif'], - text: ['"Mulish", sans-serif'], - mono: ['"Space Mono", sans-serif'], + title: fonts?.title ?? ['"Obviously", serif'], + text: fonts?.text ?? ['"Mulish", sans-serif'], + mono: fonts?.mono ?? ['"Space Mono", sans-serif'], }, }) satisfies Config["theme"];