update fonts

This commit is contained in:
DefectingCat
2023-05-17 14:35:03 +08:00
parent 19cf65fec7
commit 2729631866
3 changed files with 13 additions and 14 deletions

View File

@ -1,7 +1,9 @@
import clsx from 'clsx';
import Image from 'next/image';
import styles from 'styles/index/index.module.css';
import HomeModel from './home-modle';
import dynamic from 'next/dynamic';
const HomeModel = dynamic(() => import('./home-modle'));
export const metadata = {
title: 'RUA - Home',
@ -12,7 +14,7 @@ export default function Page() {
<main className="h-[calc(100vh-142px)] flex justify-center items-center text-xl">
<div className="max-w-4xl flex flex-col w-full h-full px-4 py-32 text-2xl">
<h1 className="flex pb-4 text-5xl">
<span className={clsx('font-Aleo font-semibold', styles.gradient)}>
<span className={clsx('font-semibold font-Lobster', styles.gradient)}>
Hi there
</span>
<span className="ml-3">

View File

@ -1,34 +1,31 @@
import { Aleo, Barlow, JetBrains_Mono, Poppins } from 'next/font/google';
import { Lobster, Barlow, JetBrains_Mono, Poppins } from 'next/font/google';
export const aleo = Aleo({
weight: ['300', '400', '700'],
variable: '--font-aleo',
display: 'swap',
export const lobster = Lobster({
weight: ['400'],
variable: '--font-lobster',
subsets: ['latin'],
});
export const barlow = Barlow({
weight: ['100', '200', '300', '400', '500', '600', '700', '800', '900'],
weight: ['400', '500', '600'],
variable: '--font-barlow',
display: 'swap',
subsets: ['latin'],
});
export const jetbrains_mono = JetBrains_Mono({
display: 'swap',
weight: ['200', '300', '400', '700'],
weight: ['400', '500', '600'],
variable: '--font-jetbrains-mono',
subsets: ['latin'],
});
export const poppins = Poppins({
weight: ['300', '400', '700', '100', '200', '500', '600', '800', '900'],
weight: ['400', '500', '600'],
variable: '--font-poppins',
subsets: ['latin'],
});
const fonts = {
aleo,
lobster,
barlow,
jetbrains_mono,
poppins,

View File

@ -9,7 +9,6 @@ module.exports = {
theme: {
extend: {
fontFamily: {
Aleo: ['--font-aleo'],
Barlow: ['var(--font-barlow)'],
Poppins: ['var(--font-poppins)'],
Mono: [
@ -18,6 +17,7 @@ module.exports = {
'-apple-system',
'monospace',
],
Lobster: ['var(--font-lobster)'],
},
colors: {
bluish: {