Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Change default font-family
-
Hello there,
Just wondering if it’s possible to change the default font-family of all onsenui components?
Thank you.
-
@etagrats You can! There may be lots of places to change it or one quick way, but in the following CSS template for Onsen, they are defined:
https://cdn.rawgit.com/OnsenUI/OnsenUI-dist/2.0.0/css/onsen-css-components.css
For page (without material), you can see it is defined as:
.page { font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; }