* chore: update package versions and dependencies across multiple files - Bumped application version to 2.21.4 in package.json. - Updated @supabase/supabase-js to version 2.84.0 and @tanstack/react-query to version 5.90.10. - Incremented various dependencies including lucide-react to version 0.554.0, react-hook-form to version 7.66.1, and react-i18next to version 16.3.5. - Adjusted @types/nodemailer to version 7.0.4 for consistency. - Refactored package.json files to utilize catalog dependencies for improved management. * chore: update Stripe API version to 2025-11-17.clover in stripe-sdk.ts * fix: update wording for password recovery prompt in auth.json
50 lines
1.0 KiB
TypeScript
50 lines
1.0 KiB
TypeScript
import { Inter as SansFont } from 'next/font/google';
|
|
|
|
import { cn } from '@kit/ui/utils';
|
|
|
|
/**
|
|
* @sans
|
|
* @description Define here the sans font.
|
|
* By default, it uses the Inter font from Google Fonts.
|
|
*/
|
|
const sans = SansFont({
|
|
subsets: ['latin'],
|
|
variable: '--font-sans-fallback',
|
|
fallback: ['system-ui', 'Helvetica Neue', 'Helvetica', 'Arial'],
|
|
preload: true,
|
|
weight: ['300', '400', '500', '600', '700'],
|
|
});
|
|
|
|
/**
|
|
* @heading
|
|
* @description Define here the heading font.
|
|
*/
|
|
const heading = sans;
|
|
|
|
// we export these fonts into the root layout
|
|
export { sans, heading };
|
|
|
|
/**
|
|
* @name getFontsClassName
|
|
* @description Get the class name for the root layout.
|
|
* @param theme
|
|
*/
|
|
export function getFontsClassName(theme?: string) {
|
|
const dark = theme === 'dark';
|
|
const light = !dark;
|
|
|
|
const font = [sans.variable, heading.variable].reduce<string[]>(
|
|
(acc, curr) => {
|
|
if (acc.includes(curr)) return acc;
|
|
|
|
return [...acc, curr];
|
|
},
|
|
[],
|
|
);
|
|
|
|
return cn(...font, {
|
|
dark,
|
|
light,
|
|
});
|
|
}
|