Replies: 6 comments 4 replies
-
Yes. Edit the following variables in /* system typefaces */
$serif : Georgia, Times, serif !default;
$sans-serif : -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif !default;
$monospace : Monaco, Consolas, "Lucida Console", monospace !default;
/* sans serif typefaces */
$sans-serif-narrow : $sans-serif !default;
$helvetica : Helvetica, "Helvetica Neue", Arial, sans-serif !default;
/* serif typefaces */
$georgia : Georgia, serif !default;
$times : Times, serif !default;
$bodoni : "Bodoni MT", serif !default;
$calisto : "Calisto MT", serif !default;
$garamond : Garamond, serif !default;
$global-font-family : $sans-serif !default;
$header-font-family : $sans-serif !default;
$caption-font-family : $serif !default;
/* type scale */
$type-size-1 : 2.441em !default; // ~39.056px
$type-size-2 : 1.953em !default; // ~31.248px
$type-size-3 : 1.563em !default; // ~25.008px
$type-size-4 : 1.25em !default; // ~20px
$type-size-5 : 1em !default; // ~16px
$type-size-6 : 0.75em !default; // ~12px
$type-size-7 : 0.6875em !default; // ~11px
$type-size-8 : 0.625em !default; // ~10px |
Beta Was this translation helpful? Give feedback.
-
Is this still the preferred method for modifying the size of font for the body of a post? Adjusting the variables does change the font size for some elements, like the title, but not the main body text. When I inspect a section of rendered text it appears that the font size is hardcoded at 1em: From _page.scss:
|
Beta Was this translation helpful? Give feedback.
-
@PingTrip See #1219, you don't want to mess with the The base font-size scales up and down depending on the viewport size. You'll want to modify these values so all of the type across the entire page scales proportionally with each other. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue. After seeing 3 different threads about changing the font-size, it's still unclear to me what I should do. I would like to reduce the main body fonts on large screens (ideally while proportionally reducing headers, code, etc. as well), everything else can stay. Changing the "type-size" variables doesn't change anything for me, and changing the breakpoints in |
Beta Was this translation helpful? Give feedback.
-
I wanted to make my site use a custom monospace font (Cascadia). Here's what I did: First, I moved the font into
Then, in
Then, I set all of the
|
Beta Was this translation helpful? Give feedback.
-
bundle update
.bundle exec jekyll build
.Environment informations
Expected behavior
Steps to reproduce the behavior
Beta Was this translation helpful? Give feedback.
All reactions