snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
41
apps/v4/lib/fonts.ts
Normal file
41
apps/v4/lib/fonts.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import {
|
||||
Geist_Mono as FontMono,
|
||||
Noto_Sans_Arabic as FontNotoSansArabic,
|
||||
Noto_Sans_Hebrew as FontNotoSansHebrew,
|
||||
Geist as FontSans,
|
||||
} from "next/font/google"
|
||||
import { cn } from "cn"
|
||||
|
||||
const fontSans = FontSans({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-sans",
|
||||
})
|
||||
|
||||
const fontHeading = FontSans({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-heading",
|
||||
})
|
||||
|
||||
const fontMono = FontMono({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-mono",
|
||||
weight: ["400"],
|
||||
})
|
||||
|
||||
const fontNotoSansArabic = FontNotoSansArabic({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-ar",
|
||||
})
|
||||
|
||||
const fontNotoSansHebrew = FontNotoSansHebrew({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-he",
|
||||
})
|
||||
|
||||
export const fontVariables = cn(
|
||||
fontSans.variable,
|
||||
fontHeading.variable,
|
||||
fontMono.variable,
|
||||
fontNotoSansArabic.variable,
|
||||
fontNotoSansHebrew.variable
|
||||
)
|
||||
Reference in New Issue
Block a user