fix fonts issue

This commit is contained in:
DefectingCat
2023-05-16 15:50:48 +08:00
parent 5352b56a03
commit cb351db3d6
6 changed files with 18 additions and 27 deletions

View File

@ -1,10 +1,4 @@
import {
Aleo,
Aref_Ruqaa,
Barlow,
JetBrains_Mono,
Poppins,
} from 'next/font/google';
import { Aleo, Barlow, JetBrains_Mono, Poppins } from 'next/font/google';
export const aleo = Aleo({
weight: ['300', '400', '700'],
@ -13,13 +7,6 @@ export const aleo = Aleo({
subsets: ['latin'],
});
export const aref_ruqaa = Aref_Ruqaa({
weight: ['400', '700'],
variable: '--font-aref-ruqaa',
display: 'swap',
subsets: ['latin'],
});
export const barlow = Barlow({
weight: ['100', '200', '300', '400', '500', '600', '700', '800', '900'],
variable: '--font-barlow',
@ -29,7 +16,7 @@ export const barlow = Barlow({
export const jetbrains_mono = JetBrains_Mono({
display: 'swap',
weight: ['300', '400', '700'],
weight: ['200', '300', '400', '700'],
variable: '--font-jetbrains-mono',
subsets: ['latin'],
});
@ -42,7 +29,6 @@ export const poppins = Poppins({
const fonts = {
aleo,
aref_ruqaa,
barlow,
jetbrains_mono,
poppins,