mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 11:24:57 -05:00
30 lines
773 B
TypeScript
30 lines
773 B
TypeScript
import { Geist, Geist_Mono } from "next/font/google";
|
|
import localFont from "next/font/local";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const fontSans = Geist({
|
|
subsets: ["latin"],
|
|
variable: "--font-geist-sans",
|
|
});
|
|
|
|
const fontMono = Geist_Mono({
|
|
subsets: ["latin"],
|
|
variable: "--font-geist-mono",
|
|
});
|
|
|
|
// Only the Square variant is used. Importing from `geist/font/pixel` would
|
|
// declare (and preload) all five Geist Pixel fonts on every page.
|
|
const GeistPixelSquare = localFont({
|
|
src: "../assets/GeistPixel-Square.woff2",
|
|
variable: "--font-geist-pixel-square",
|
|
weight: "500",
|
|
fallback: ["Geist Mono", "ui-monospace", "monospace"],
|
|
adjustFontFallback: false,
|
|
});
|
|
|
|
export const fontVariables = cn(
|
|
fontSans.variable,
|
|
fontMono.variable,
|
|
GeistPixelSquare.variable,
|
|
);
|