Skip to content

The open alternative to Salesforce, designed for AI.

519 B
Raw Blame
export type FontFamilyToken = 'sans' | 'serif' | 'mono' | 'retro';

// The css variables are bound by next/font in app/layout.tsx, which requires
// literal option values — keep these names in sync with the layout.
const FAMILY_STACK: Record<FontFamilyToken, string> = {
  sans: 'var(--font-sans), sans-serif',
  serif: 'var(--font-serif), serif',
  mono: 'var(--font-mono), monospace',
  retro: 'var(--font-retro), monospace',
};

export const fontFamily = (token: FontFamilyToken): string =>
  FAMILY_STACK[token];