Add custom fonts to your app

  • Here are the steps:

    1. put your fonts in a directory of choice eg: ./src/themes/my/cool/fonts/…

    2. declare your font in ./scr/themes/app.variables.styl. This is also the place where your can modify other parts of your theme. (or in app.ios.styl, app.mat.styl, if you have platform specific ideas)
      Also notice the stylus syntax! (more over here

    3. reference your font with css in a vue component <style>…</style>

    4. when doing “quasar dev”, webpack should list your font after bundling.

    5. that’s all ;-)

  • Admin

    Thank you for adding this tip here for all Quasar dev! And nice ending screenshot :D

Log in to reply

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.