Skip to content

Document How To Change Fonts #6

@jonmchan

Description

@jonmchan

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions