Fonts
Every font, live
Browse 2,071 Google fonts and all bundled local fonts. Search for a font by name, then copy the import statement into your project.
Showing 24 of 2,085 matching fonts
Abeezee
Beautiful typography
AbeezeeAbel
Beautiful typography
AbelAbhayaLibre
Beautiful typography
AbhayaLibreAboreto
Beautiful typography
AboretoAbrilFatface
Beautiful typography
AbrilFatfaceAbyssinicaSil
Beautiful typography
AbyssinicaSilAclonica
Beautiful typography
AclonicaAcme
Beautiful typography
AcmeActor
Beautiful typography
ActorAdamina
Beautiful typography
AdaminaAdlamDisplay
Beautiful typography
AdlamDisplayAdventPro
Beautiful typography
AdventProAdwaitaMono
Beautiful typography
AdwaitaMonoAdwaitaSans
Beautiful typography
AdwaitaSansAfacad
Beautiful typography
AfacadAfacadFlux
Beautiful typography
AfacadFluxAgbalumo
Beautiful typography
AgbalumoAgdasima
Beautiful typography
AgdasimaAguDisplay
Beautiful typography
AguDisplayAguafinaScript
Beautiful typography
AguafinaScriptAileron
Beautiful typography
AileronAkatab
Beautiful typography
AkatabAkayaKanadaka
Beautiful typography
AkayaKanadakaAkayaTelivigala
Beautiful typography
AkayaTelivigalaUsing these fonts
Each Google font can be imported by name and called as a function:
app/layout.tsx
import { Inter, Roboto_Mono } from "swift-rust/font/google";
const inter = Inter({ subsets: ["latin"], display: "swap", variable: true });
export default function RootLayout({ children }: { children: React.ReactNode }) {
return <html className={inter.variable}><body>{children}</body></html>;
}Local fonts are loaded with localFont:
app/fonts.ts
import { localFont } from "swift-rust/font/local";
const myFont = localFont({
src: "./fonts/MyFont.woff2",
weight: "400 700",
display: "swap",
});