Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Fonts in antimatter theme

Started by Muut Archive 11 years ago · 4 replies · 650 views
11 years ago

How can I change fonts in antimatter theme? When changing something in the _typography.sccs it seems to have no effect. I noticed that the google font import always points to Montserrat. Am I missing something?

11 years ago

you need to recompile the scss into css. Please read over the customization documentation as it explains the best approaches to making modifications including template inheritance and also recompiling scss files.

11 years ago

I compiled the scss into css. I can see the changes in the compliled css but they seem to have no effect. Still the default Montserrat font is used. Or do I have to make the import manually?

11 years ago

There's a couple of places. The import where the fonts are loaded from google is in scss/template/_fonts.scss:

TXT
@import url(//fonts.googleapis.com/css?family=Montserrat:400|Raleway:300,400,600|Inconsolata);

Then you have to edit the font-stack reference: scss/configuration/template/_typgography.scss:

TXT
$font-family-default:           "Raleway", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
$font-family-header:            "Montserrat", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
$font-family-mono:              "Inconsolata", monospace;
$font-family-serif:             "Georgia", "Times", "Times New Roman", serif;
11 years ago

Have you tried to add a custom.css? There should be no use for compiling, if you use this ...

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1322 9 years ago
Archive · by Muut Archive, 9 years ago
2 918 9 years ago
Archive · by Muut Archive, 9 years ago
2 4048 9 years ago
Archive · by Muut Archive, 9 years ago
1 2922 9 years ago
Archive · by Muut Archive, 9 years ago
3 1106 9 years ago