Skip to Content
FoundationTypography

Typography

SolarUI ships with a clean, legible type system based on the system font stack and Tailwind’s default type scale.

Font Family

By default, SolarUI uses the font-sans utility from Tailwind which resolves to the OS system font stack for optimal performance (no external font loading required):

font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

To use a custom font, add it in app/layout.tsx using next/font:

import { Inter } from 'next/font/google' const inter = Inter({ subsets: ['latin'] }) export default function RootLayout({ children }) { return ( <html lang="en" className={inter.className}> <body>{children}</body> </html> ) }

Type Scale

ClassSizeWeightUse Case
text-xs12pxLabels, captions
text-sm14pxBody small, helper text
text-base16pxDefault body text
text-lg18pxLead paragraphs
text-xl20pxSubheadings
text-2xl24pxfont-semiboldSection headings (h3)
text-3xl30pxfont-boldPage headings (h2)
text-4xl36pxfont-extraboldHero headings (h1)

Prose

For long-form content, combine Tailwind Typography plugin with our tokens:

<article className="prose prose-slate dark:prose-invert max-w-none"> <h1>Article Title</h1> <p>Content goes here...</p> </article>

Font Weights

ClassWeightUse
font-normal400Body text
font-medium500UI labels, buttons
font-semibold600Subheadings
font-bold700Headings
font-extrabold800Display text
Last updated on