Sandbox Jekyll documentation
Fonts
Learn how to use custom fonts in Sandbox.
Font Options
-
Manrope
-
Thicccboi (thicccboi.css)
-
DM Serif + Manrope (dm.css)
-
Urbanist (urbanist.css)
-
Space Grotesk (space.css)
Manrope is the default font in Sandbox. If you wish to use one of the other available font options, add the link of the font CSS file you wish to use inside the <head> tag, right after style.css link, in all your HTML pages.
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="preload" href="./assets/css/fonts/thicccboi.css" as="style" onload="this.rel='stylesheet'">
Google Fonts
To use a custom Google Font, open src/assets/scss/user-variables.scss, and use the example code below to add @import link and name of your font.
$path-to-fonts: 'GOOGLE FONT URL';
$font-family-sans-serif: GOOGLE FONT NAME;
@font-face
To use a custom font with @font-face, first add the font files inside folder src/assets/fonts/ Then use the example below to import your custom font.
$path-to-fonts: '../fonts/myfont/myfont.css';
$font-family-sans-serif: "My Font Name", sans-serif;