LogoLogo
HomeGitHub
v0
v0
  • 🏃‍♂️Getting started!
  • 📝Filling up your page
  • 🌐Custom domain name
  • 📣Favicon and Meta Tags
  • 🔡Custom fonts
  • 🛤️Adding more pages
  • 🎨Theme customization
  • 🎇Restyling components
Powered by GitBook
On this page

Custom fonts

PreviousFavicon and Meta TagsNextAdding more pages

Last updated 2 years ago

You can change the default font to one of your choosing by hosting them your self or by importing them directly via google fonts. Link them in your public/index.html file and create a new theme provider with Onyxia-ui, then set the ThemeProvider property in the GlTemplate component to the new theme provider.

Adding multiple fonts

Change one or more of the font variants in the theme provider by setting the fontFamily in the variants property to your chosen font.

It is allsow possible to create your own custom variants.

🔡
This commit is full example of how its done.
This commit is an example where I change the page heading variant to Playfair Display and the subtitle variant to Open Sans.
In this commit I add a new title variant that uses Cinzel Decorative as font.