|
import { Ubuntu } from "next/font/google" |
|
import localFont from "next/font/local" |
|
|
|
export const actionman = localFont({ |
|
src: "../fonts/Action-Man/Action-Man.woff2", |
|
variable: "--font-action-man" |
|
}) |
|
|
|
|
|
|
|
export const fonts = { |
|
actionman, |
|
|
|
} |
|
|
|
|
|
|
|
export const fontList = Object.keys(fonts) |
|
|
|
export type FontName = keyof typeof fonts |
|
|
|
export const defaultFont = "actionman" as FontName |
|
|
|
export const classNames = Object.values(fonts).map(font => font.className) |
|
|
|
export const className = classNames.join(" ") |
|
|
|
export type FontClass = |
|
| "font-actionman" |
|
|