Configure Font
User role
Drupal admin
The primary font on Mukurtu CMS is BC Sans, which was selected for its wide support of Indigenous languages. If your site requires a custom font, you can update your font from code or by installing a module such as @font-your-face.
Warning
The instructions in this article require a degree of familiarity working with command line tools and editing code, which is not without risk. Changing your code may break your site and corrupt your data. Before following these instructions, make sure to back up your site, and confirm that you can restore from a backup.
If you would like to add other fonts to your theme, simply download the appropriate font files (WOFF and WOFF2 generally, though TTF is also supported) to the fonts folder in the theme, and update the relative path as needed. If a serif font is required, users should assess First Nations Unicode Font from the University of British Columbia, which seems similar to BC Sans in its support of Indigenous languages. Follow the instructions below to add a font from your code source to the Mukurtu 4 and Gin (admin) themes.
Tip
You can convert your chosen font to WOFF or WOFF2 format using https://cloudconvert.com/ or any other conversion tool. Download your new file and save it in a place that is easily accessible.
Configure from code
Configure Mukurtu 4 theme font
- Select your font file.
- Open your file directory and navigate to
\mukurtu\themes\mukurtu_v4\fonts. -
Drop your font file into the fonts folder.
-
Navigate to
\mukurtu\themes\mukurtu_v4\components\00-base\typography. - Select the
_fonts.scssfile. You may choose to edit this in your browser or your preferred text editor. -
Edit the .scss file to reflect your chosen fonts.
-
Save this file to update your fonts.
Configure Gin (admin) theme font
- Select your font file.
- Open your file directory and navigate to
\themes\contrib\gin\dist\media\font. -
Drop your font file into the fonts folder.
-
Navigate to
\themes\contrib\gin\dist\css\theme. - Select the
_font.cssfile. You may choose to edit this in your browser or your preferred text editor. -
Edit line 9 of the .css file to reflect your chosen fonts.
-
Save this file to update your fonts.
Configure from module
@font-your-face provides an administrative interface for browsing and applying web fonts using CSS @font-face. Drupal administrators can install @font-your-face using Composer.
Requirement
You must have command line administrative privileges to add modules to your Mukurtu CMS site.
Add a module
For instructions on adding a module to your Mukurtu CMS site, refer to the Install a Module article.
Add custom fonts
- Navigate to Appearance > @font-your-face > Custom Fonts or go directly to
/admin/appearance/font/local_font_config_entity. -
Select the "+ Add Custom Font" button.
-
Enter a Label for your font. This will be the font's name and must be unique.
- Enter a Font family. This refers to the CSS font family and the @font-face name will be based on this.
-
Optionally, you can select a Font Style and Font Weight from the dropdown menus. Use the checkboxes to select a Font Classification.
-
Select the "Browse" or "Choose File" button to upload your font. The name of the button depends on your browser.
Requirement
Fonts must be in WOFF format. You can convert font files to WOFF format using https://cloudconvert.com/ or any other conversion tool.
-
Select "Save" to save your font file.
Enable fonts
- Navigate to Appearance > @font-your-face > Browse or go directly to
/admin/appearance/font. -
Select the "Enable* button to enable your font.
Add font display
- Navigate to Appearance > Font Selector > Font display or go directly to
/admin/appearance/font/font_display. -
Select "+ Add Font display".
-
Enter a Label and select the font you want to apply using the Font dropdown.
-
Select options from the Preset Selectors field. You may choose to apply your font to headers, standard text, other text, or everything.
-
Select the theme that you want to apply the font to. You can apply your font to any theme.
-
Select "Save" to save your Font display. This will apply your font as you selected.












