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

Custom fonts

PreviousAdding more pagesNextTheme customization

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.