mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
30 lines
478 B
TypeScript
30 lines
478 B
TypeScript
"use client"
|
|
|
|
import {
|
|
JetBrains_Mono as FontMono,
|
|
Inter as FontSans,
|
|
} from "@next/font/google"
|
|
|
|
const fontSans = FontSans({
|
|
subsets: ["latin"],
|
|
variable: "--font-sans",
|
|
})
|
|
|
|
const fontMono = FontMono({
|
|
subsets: ["latin"],
|
|
variable: "--font-mono",
|
|
})
|
|
|
|
export function Fonts() {
|
|
return (
|
|
<>
|
|
<style jsx global>{`
|
|
:root {
|
|
--font-sans: ${fontSans.style.fontFamily};
|
|
--font-mono: ${fontMono.style.fontFamily};
|
|
}
|
|
}`}</style>
|
|
</>
|
|
)
|
|
}
|