Tailwind Setup

Register 'old_newspaper_font' as a utility class (font-old-newspaper-font) — pick the config style that matches your project.

Load from catalog

Classic Config

tailwind.config.js

JS-based config — works on Tailwind v3, and on v4 in JS-config compatibility mode.

// tailwind.config.js — classic JS config
/** @type {import('tailwindcss').Config} */
module.exports = {
  theme: {
    extend: {
      fontFamily: {
        old-newspaper-font: ['old_newspaper_font', 'sans-serif'],
      },
    },
  },
};

CSS-First Config

Tailwind v4+

Native @theme syntax — no config file, everything lives in CSS.

/* globals.css — Tailwind v4+ CSS-first config */
@import "tailwindcss";

@font-face {
  font-family: 'old_newspaper_font';
  src: url('https://assets.typamine.com/fonts/files/bf3e85eb-0eeb-4a1a-9bc3-5f887c0ae37f.woff2') format('woff2');
  font-display: swap;
}

@theme {
  --font-old-newspaper-font: 'old_newspaper_font', sans-serif;
}

/* Usage: <p className="font-old-newspaper-font">...</p> */