OpenParable
Skip to content
← Back to skills

Frontend Google Fonts

Design
frontend-google-fonts

Frontend Google Fonts is an Agent Skill for design published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Typography setup with Google Fonts for Next.js + Tailwind projects. Use when choosing fonts, need font pairing recommendations (SaaS, editorial, corporate presets), or setting up optimized font loading. Includes ready-to-use configurations and performance best practices.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/frontend-google-fonts/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/frontend-google-fonts, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Google Fonts

Typography setup for web projects. Font pairings + performance optimization.

When to Use

  • Setting up project fonts
  • Need font pairing recommendations
  • Optimizing font loading

Process

SELECT → CONFIGURE → APPLY

  1. Choose fonts for project type
  2. Configure in Next.js
  3. Add to Tailwind

Quick Start (Next.js)

// lib/fonts.ts
import { Inter, Plus_Jakarta_Sans } from 'next/font/google'

export const inter = Inter({
  subsets: ['latin'],
  display: 'swap',
  variable: '--font-inter',
})

export const jakarta = Plus_Jakarta_Sans({
  subsets: ['latin'],
  display: 'swap',
  variable: '--font-jakarta',
})

// app/layout.tsx
<html className={`${inter.variable} ${jakarta.variable}`}>

// tailwind.config.ts
fontFamily: {
  sans: ['var(--font-inter)'],
  display: ['var(--font-jakarta)'],
}

Font Pairing Presets

Modern SaaS:
  Heading: Plus Jakarta Sans
  Body: Inter

Corporate:
  Heading: Source Sans 3
  Body: Source Serif 4

Editorial:
  Heading: Playfair Display
  Body: Lora

Tech/Dev:
  Heading: Geist
  Body: Inter
  Code: Geist Mono

Startup/Friendly:
  Heading: Outfit
  Body: Nunito

Top Font Choices

FontCategoryBest For
InterSansUniversal default
Plus Jakarta SansSansModern SaaS
DM SansSansClean startups
GeistSansDev tools
Playfair DisplaySerifElegant headlines
LoraSerifLong-form reading
JetBrains MonoMonoCode blocks

Performance Tips

Variable fonts:     Use Inter, not Roboto with weight array
Subset:             Only 'latin' unless multilingual
Display swap:       Always set display: 'swap'
Self-host:          next/font auto self-hosts (no external requests)

Typography Scale

text-xs:   12px
text-sm:   14px
text-base: 16px
text-lg:   18px
text-xl:   20px
text-2xl:  24px
text-3xl:  30px
text-4xl:  36px

Decision by Project Type

TypeHeadingBody
SaaS DashboardInterInter
Marketing SitePlus JakartaInter
BlogPlayfair DisplayLora
Dev DocsGeistInter
EnterpriseSource SansSource Serif

Resources: