18Switch language to العربية

Fonts

PreviousNext

Font configuration utilities.

Sans (Inter)

The quick brown fox jumps over the lazy dog

Mono (JetBrains Mono)

const greeting = "Hello, World!"

import { FontsPreview } from "@/components/atom/fonts-preview"

export default function FontsDemo() {
  return (
    <>
      <FontsPreview />
    </>
  )
}

Installation

pnpm dlx shadcn@latest add @codebase/fonts

Usage

import { fontSans, fontMono } from "@/components/atom/fonts"
<body className={fontSans.className}>
  {children}
</body>