Font & Typography
This documentation is for the preview version of the Dev Portal. If you are using the legacy developer portal, please refer to the docs.
Dev Portal allows you to customize fonts for text (sans
), serif content (serif
), and code (mono
). You can use predefined Google Fonts, external sources, or local fonts.
Predefined Google Fonts
The easiest way to use fonts is with predefined Google Fonts. Simply specify the font name as a string:
zudoku.config.ts(tsx)
Available Google Fonts
The following fonts are available as predefined options:
Sans Serif: Inter, Roboto, Open Sans, Poppins, Montserrat, Outfit, Plus Jakarta Sans, DM Sans, IBM Plex Sans, Geist, Oxanium, Space Grotesk
Serif: Architects Daughter, Merriweather, Playfair Display, Lora, Source Serif Pro, Libre Baskerville
Monospace: JetBrains Mono, Fira Code, Source Code Pro, IBM Plex Mono, Roboto Mono, Space Mono, Geist Mono
Custom Font URLs
For more control or to use fonts not in the predefined list, you can specify a custom font URL:
zudoku.config.ts(tsx)
Local Fonts
To use local fonts, add them to the public
folder and create a fonts.css
file:
Code(css)
Then reference the local CSS file:
zudoku.config.ts(tsx)
Mixed Configuration
You can mix predefined fonts with custom fonts:
zudoku.config.ts(tsx)