A user, bekircem, is trying to customize typography in Discourse by changing variables such as font family and size. However, the changes made to variables like $heading-font-family are not visible. bekircem has attempted to override the variables using different methods, including adding CSS code.
bebircem explains that while Discourse has a default feature for font selection, the goal is to achieve more detailed typography customization by changing the values of variables.
Renato suggests that overriding CSS variables can be achieved by using the correct syntax, as demonstrated in the example code provided. This approach allows for customizing font families and sizes.
bebircem notes that running the setup wizard, as suggested by codinghorror, only provides a limited selection of fonts.
By using the approach suggested by Renato, it is possible to override the variables and achieve the desired level of typography customization.
Thank you for the reply @codinghorror. That way we can only choose certain fonts, right? And I learned that these variables cannot be override. Is it correct?
@bekircem I just tested the wizard on 2.7.0.beta1 and the available fonts are the same from the site settings you posted above (I may be missing something).
You probably figured it out by now, but just in case, you can use the Google Fonts or you can replace the CSS variables just like you did on your OP - which should have worked.
I’m using this CSS in my instance and it works (loading the font via <link/> or @include).