I'm trying to update the variable for the primary font-family in Bulma but nothing seems to be happening. So far, what I've done is:
- Import the initial variables and functions file.
- Import the fonts I would like with Google Fonts
- Set a new variable called
$family-serif: "Grandstander", serif;
- Update the
$family-primary
to equal the value of$family-serif
; - Import the Bulma with
@import "../assets/bulma/bulma.sass";
The source code can be found at: https://github.com/jacobcollinsdev/eponym, and I've include the code snippets below:
@charset "utf-8";
@import url('../assets/bulma/sass/utilities/initial-variables.sass');
@import url('../assets/bulma/sass/utilities/functions.sass');
@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@500;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Grandstander&display=swap');
$family-serif: "Grandstander", serif;
$family-primary: $family-serif;
@import "../assets/bulma/bulma.sass";
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/css/styles.css">
<title>Home | Eponym Mag</title>
</head>
I've only recently began using Bulma and think I may have gotten myself into a bit of a mess with what files I need to include etc, any insight appreciated.
Thanks!