Customization
This guide will help you customize your Vermeer project.
Color scheme
Use a custom color scheme.
In
config/_default/params.toml
, setvermeer.colorScheme
toCustom
:Update
assets/scss/color-schemes/_custom.scss
Set $gradient: $base;
when not using a gradient for background.
Font(s)
Use a custom font.
For performance reasons, we recommend to self-host your font(s) using a tool like e.g. google-webfonts-helper.
If you’d like to use the Montserrat font for example:
Select font(s)
Visit google-webfonts-helper, select Monserrat, charset latin, styles regular and 500.
Add CSS
Copy CSS for modern browsers — use folder prefix
/fonts/montserrat/
— and paste inassets/scss/common/_custom.scss
:Add font(s)
Download files, extract, and paste fonts in
/static/fonts/montserrat/
.Override SCSS variables
Copy the variables you’d like to override from
themes/vermeer/assets/scss/common/_variables-overrides.scss
and paste toassets/scss/common/_variables-custom.scss
. Make your changes in the latter:Preload font(s)
Preload the font(s) — to avoid Cumulative Layout Shift. Create the file
layouts/partials/head/resource-hints.html
and add:
(S)CSS
Use custom (S)CSS
Override SCSS variables
Copy the variables you’d like to override from
themes/vermeer/assets/scss/common/_variables-overrides.scss
and paste toassets/scss/common/_variables-custom.scss
. Make your changes in the latter.Add custom (S)CSS
You can put custom (S)CSS in
assets/scss/common/_custom.scss
JavaScript
Use custom JavaScript (JS).
Add custom JavaScript
You can put custom JavaScript in
assets/js/custom.js
Homepage
Use a custom Homepage
Edit homepage layout.
Copy
themes/vermeer/layouts/index.html
and paste aslayouts/index.html
. Make your changes in the latter.Update (S)CSS
Add custom (S)CSS.
404 page
Use a custom 404 page.
Edit 404 page layout.
Copy
themes/vermeer/layouts/404.html
and paste aslayouts/404.html
. Make your changes in the latter.Update (S)CSS
Add custom (S)CSS.