Skip to content

Commit

Permalink
add: var fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
clmntsnr committed Dec 16, 2024
1 parent 7fad454 commit ef3314b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/utils/tailwind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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"];

0 comments on commit ef3314b

Please sign in to comment.