mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
* feat: add rhea * fix: blocks * feat: build chat example * fix * fix: sidebar * fix * feat: update home * fix * fix * fix * feat: optimizine fonts * feat * fix * fix * fix * fix * fix * fix * fix: font in preview * fix
43 lines
829 B
TypeScript
43 lines
829 B
TypeScript
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 "@/lib/utils"
|
|
|
|
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
|
|
)
|