diff --git a/src/conf.typ b/src/conf.typ index 9dae1df..cfc76ed 100644 --- a/src/conf.typ +++ b/src/conf.typ @@ -62,6 +62,10 @@ font: "Open Sans"), heading: ( font: "Montserrat"), + code: ( + theme: "res/abb.tmTheme", + font: "FiraCode Nerd Font", + tab-size: 4), link: ( color: ABB-GRAY-02))) diff --git a/src/style.typ b/src/style.typ index 863c2c9..e8c6966 100644 --- a/src/style.typ +++ b/src/style.typ @@ -53,7 +53,10 @@ show heading.where(level: 3): it => v(0.5em) + it + v(0.25em) // set theme for code blocks - set raw(tab-size: 4, theme: "res/abb.tmTheme") + set raw( + tab-size: style.code.tab-size, + theme: style.code.theme) + show raw: set text(font: style.code.font) show figure: set block(breakable: true)