Google Fonts theme component

This is a simple theme component that allows you to add a font from Google Fonts without writing any CSS.

:hammer_and_wrench: Github repo: https://github.com/discourse/discourse-google-font-component

:eyes: Preview on Theme Creator

:question: How do I install a Theme or Theme Component?

This component allows you to set the main site font, and optionally separate fonts for headlines and monospaced text (code blocks). You can also choose a font weight in each case, and increase the overall font size.

Behind the scenes this sets up a little bit of CSS along with Google’s font <link>. Note that this is relying on Google to serve the font files from https://fonts.googleapis.com/.

30 Likes

This Fantastic! Can this be installed Multiple Times to link to different themes by changing it’s Name in Advanced install?

I don’t see why not. We’ve installed the same theme twice, for example here on Meta to have both a light and dark version.

3 Likes

Thanks. Forgot you can rename it to identify/link it to other themes.

1 Like