Tailwind Setup
Register 'heyro_fun' as a utility class (font-heyro-fun) — 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: {
heyro-fun: ['heyro_fun', '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: 'heyro_fun';
src: url('https://assets.typamine.com/fonts/files/2db41b71-5d23-4600-83a5-03278cb2dd35.woff2') format('woff2');
font-display: swap;
}
@theme {
--font-heyro-fun: 'heyro_fun', sans-serif;
}
/* Usage: <p className="font-heyro-fun">...</p> */