Volt UI

Font

How to use the Geist variable font in your application

Volt.kit uses the Geist variable font, which provides a modern and clean typography experience. This is an optional font for now.

Overview

The Geist font is a variable font that supports a wide range of weights (100-900).

Import

To use this font in your application, import the font CSS file:

import "@epilot/volt-ui/font.css";

This font is converted to base64 data format and inlined during the build time. The size of the font is ~90KB.

Usage

This font can be used in several ways

Utility Class

Apply the font to any element using the utility class:

<div className="volt-font-geist">
  This text uses the Geist font
</div>

CSS Variables

Use the CSS variable directly in your styles:

.my-mfe {
  font-family: var(--volt-font-geist);
}

Default Font in Tailwind

To use Geist as your default font family in Tailwind CSS v4:

@theme {
  --default-font-family: var(--volt-font-geist);
}