UI Font Manager Demo

Dynamically load Google Fonts and switch between font themes with smooth transitions. Select a font preset to apply it globally to the entire application.

Font Preset Selection

Choose from curated font combinations. The selected preset will be applied to the entire application.

Currently Applied: {{currentPreset.name}}

Sans-serif: {{currentPreset.fonts.sans}}
Serif: {{currentPreset.fonts.serif}}
Monospace: {{currentPreset.fonts.mono}}
Display: {{currentPreset.fonts.display}}

Typography Preview

See how the selected fonts look in a real application context.

Display Heading (H1)

Sans-serif Heading (H2)

Serif Heading (H3)

This is a paragraph using the sans-serif font. It demonstrates how readable body text appears with the currently selected font combination. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

"This is a quote using the serif font, which often provides better readability for longer text passages and adds elegance to quoted content."
// Code example with monospace font
function applyFontTheme(theme) {
  document.documentElement.style.setProperty('--font-family-sans', theme.sans);
  document.documentElement.style.setProperty('--font-family-serif', theme.serif);
  document.documentElement.style.setProperty('--font-family-mono', theme.mono);
}
Current fonts: Sans (var(--font-family-sans)) | Serif (var(--font-family-serif)) | Mono (var(--font-family-mono)) | Display (var(--font-family-display))

Available Font Presets

{{preset.name}}

{{preset.description}}

Sans: {{preset.fonts.sans}}
Serif: {{preset.fonts.serif}}
Mono: {{preset.fonts.mono}}
Display: {{preset.fonts.display}}

Popular Individual Fonts

Load individual fonts to test and preview them.

Event Log

{{event.time}} {{event.message}}