mango-v4-ui/utils/fonts.ts

69 lines
1.4 KiB
TypeScript
Raw Normal View History

2023-07-12 14:04:11 -07:00
import localFont from 'next/font/local'
2023-10-24 20:02:36 -07:00
import { Lalezar, Nunito, Comic_Neue } from 'next/font/google'
2023-06-08 03:41:23 -07:00
// this font should be used as the mono variant for all themes
export const ttCommonsMono = localFont({
src: '../fonts/TT_Commons_Pro_Mono_Medium.woff2',
variable: '--font-mono',
})
2023-06-07 18:06:26 -07:00
export const ttCommons = localFont({
src: [
{
path: '../fonts/TT_Commons_Pro_Normal.woff2',
weight: '500',
style: 'normal',
},
{
path: '../fonts/TT_Commons_Pro_Medium.woff2',
weight: '600',
style: 'medium',
},
{
path: '../fonts/TT_Commons_Pro_DemiBold.woff2',
weight: '700',
style: 'bold',
},
],
variable: '--font-body',
})
export const lalezar = Lalezar({
weight: '400',
subsets: ['latin'],
variable: '--font-rewards',
})
2023-06-07 18:06:26 -07:00
export const ttCommonsExpanded = localFont({
src: '../fonts/TT_Commons_Pro_Expanded_DemiBold.woff2',
variable: '--font-display',
})
2023-06-08 03:41:23 -07:00
// bonk skin
2023-06-07 22:33:43 -07:00
2023-06-08 03:41:23 -07:00
export const nunitoDisplay = Nunito({
weight: '900',
subsets: ['latin'],
2023-06-07 22:33:43 -07:00
variable: '--font-display',
})
2023-06-08 03:41:23 -07:00
export const nunitoBody = Nunito({
subsets: ['latin'],
variable: '--font-body',
})
2023-08-09 20:31:47 -07:00
// pepe theme
2023-10-24 20:02:36 -07:00
export const comicNeueDisplay = Comic_Neue({
weight: '700',
2023-08-09 20:31:47 -07:00
subsets: ['latin'],
variable: '--font-display',
})
2023-10-24 20:02:36 -07:00
export const comicNeueBody = Comic_Neue({
2023-08-09 20:31:47 -07:00
weight: '400',
subsets: ['latin'],
variable: '--font-body',
})