Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document How To Change Fonts #6

Open
jonmchan opened this issue Nov 11, 2021 · 1 comment
Open

Document How To Change Fonts #6

jonmchan opened this issue Nov 11, 2021 · 1 comment

Comments

@jonmchan
Copy link

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:

  1. Create a bootstrap-head.scss (for rails, the default can be in app/assets/stylesheets/bootstrap-head.scss, bootstrapemail automatically checks that location).
  2. 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;
@stuyam
Copy link
Member

stuyam commented Dec 6, 2021

Agreed, will work on adding that thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants