Tailwind Setup
Register 'spell_of_asia' as a utility class (font-spell-of-asia) — 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: {
spell-of-asia: ['spell_of_asia', '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: 'spell_of_asia';
src: url('https://assets.typamine.com/fonts/files/4151aef1-fa89-4046-ace0-c40bd9a157b4.woff2') format('woff2');
font-display: swap;
}
@theme {
--font-spell-of-asia: 'spell_of_asia', sans-serif;
}
/* Usage: <p className="font-spell-of-asia">...</p> */