It would be useful to document the proper methodology to modify fonts. I mistakenly thought I could do it in bootstrap-email.scss. After diving into the source, I discovered that you could only set it through the following:
- Create a bootstrap-head.scss (for rails, the default can be in
app/assets/stylesheets/bootstrap-head.scss, bootstrapemail automatically checks that location).
- Modify the
$font-family-base variable.
Example:
// app/assets/stylesheets/bootstrap-head.scss
@import url('https://fonts.googleapis.com/css?family=Nunito+Sans:400,400i,700,800,800i,900i&display=swap');
$font-family-base: 'Nunito Sans', sans-serif;
//= @import bootstrap-head;
It would be useful to document the proper methodology to modify fonts. I mistakenly thought I could do it in
bootstrap-email.scss. After diving into the source, I discovered that you could only set it through the following:app/assets/stylesheets/bootstrap-head.scss, bootstrapemail automatically checks that location).$font-family-basevariable.Example: