diff --git a/templates/article.typ b/templates/article.typ index 84baa38..5e36380 100644 --- a/templates/article.typ +++ b/templates/article.typ @@ -68,8 +68,6 @@ // Support for UI-configurable options heading_font: none, monospace_font: none, - heading_fontsize: none, - small_fontsize: none, margin_top: none, margin_right: none, margin_bottom: none, @@ -160,7 +158,7 @@ ("SF Pro Text", "Helvetica Neue", "Arial") } - let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 15pt } + let heading-fontsize = body-fontsize * 1.5 show heading.where(level: 1): it => block( width: 100%, diff --git a/templates/default.typ b/templates/default.typ index 6a7b206..b704522 100644 --- a/templates/default.typ +++ b/templates/default.typ @@ -64,8 +64,6 @@ // Support for UI-configurable options heading_font: none, monospace_font: none, - heading_fontsize: none, - small_fontsize: none, margin_top: 9cm, margin_right: none, margin_bottom: none, @@ -149,7 +147,7 @@ ("SF Pro Text", "Helvetica Neue", "Arial") } - let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 14pt } + let heading-fontsize = body-fontsize * 1.5 show heading.where(level: 1): it => block( width: 100%, diff --git a/templates/modern.typ b/templates/modern.typ index 72b357c..9c7d25f 100644 --- a/templates/modern.typ +++ b/templates/modern.typ @@ -63,8 +63,6 @@ // Support for UI-configurable options heading_font: none, monospace_font: none, - heading_fontsize: none, - small_fontsize: none, margin_top: none, margin_right: none, margin_bottom: none, @@ -142,7 +140,7 @@ ("SF Pro Text", "Helvetica Neue", "Arial") } - let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 13pt } + let heading-fontsize = body-fontsize * 1.4 show heading.where(level: 1): it => block( width: 100%, diff --git a/templates/report.typ b/templates/report.typ index 0eadcea..78bd84c 100644 --- a/templates/report.typ +++ b/templates/report.typ @@ -74,8 +74,6 @@ // Support for UI-configurable options heading_font: none, monospace_font: none, - heading_fontsize: none, - small_fontsize: none, margin_top: none, margin_right: none, margin_bottom: none, @@ -180,7 +178,7 @@ inset: 12pt, stroke: (left: 4pt + rgb("#1f2937")), )[ - #set text(font: ("SF Pro Text", "Helvetica Neue", "Arial"), size: 18pt, weight: "bold", fill: rgb("#1f2937")) + #set text(font: ("SF Pro Text", "Helvetica Neue", "Arial"), size: body-fontsize * 1.5, weight: "bold", fill: rgb("#1f2937")) #grid( columns: (auto, 1fr), column-gutter: 12pt, @@ -196,7 +194,7 @@ inset: (bottom: 6pt), stroke: (bottom: 1pt + rgb("#e5e7eb")), )[ - #set text(font: ("SF Pro Text", "Helvetica Neue", "Arial"), size: 14pt, weight: "semibold", fill: rgb("#374151")) + #set text(font: ("SF Pro Text", "Helvetica Neue", "Arial"), size: body-fontsize * 1.3, weight: "semibold", fill: rgb("#374151")) #h(0.8em) #it.body ] @@ -206,7 +204,7 @@ below: 0.8em, above: 1.5em, )[ - #set text(size: 12pt, weight: "medium", fill: rgb("#4b5563")) + #set text(size: body-fontsize * 1.1, weight: "medium", fill: rgb("#4b5563")) #h(0.5em) #it.body ]