Typography
JetBrains Mono font configuration and sizing used across @diffgazer/ui components.
@diffgazer/ui uses JetBrains Mono for all text. Monospace is not just for code -- it IS the design.
Font configuration
The docs app self-hosts its checked-in JetBrains Mono variable font. The font loads from the same origin as the page, matching the app's font-src 'self' data: Content Security Policy.
For another app, copy a licensed font file into that app's static assets and adjust the URL. A hosted font provider is optional, not an @diffgazer/ui requirement. Choosing one adds an external request, sends visitor connection data to that service, and requires its origins in your CSP.
Apply the base font via the ui-base class or the CSS variable:
Font stack
The fallback chain ensures monospace rendering even if JetBrains Mono fails to load.
Sizes used in @diffgazer/ui
The two microtype steps below the Tailwind default scale ship as theme tokens — use the token utilities (text-2xs/text-3xs), never a raw arbitrary-pixel value like text-[Npx].
Weights
No variable sizing
@diffgazer/ui does not use rem-based fluid typography or responsive font scaling. Sizes are fixed. This is intentional: terminals use fixed-size fonts.