changed: raw block font is option in config

This commit is contained in:
Sven Vogel 2024-07-08 10:18:03 +02:00
parent fb03bfc414
commit 18979f8f81
2 changed files with 8 additions and 1 deletions

View File

@ -62,6 +62,10 @@
font: "Open Sans"), font: "Open Sans"),
heading: ( heading: (
font: "Montserrat"), font: "Montserrat"),
code: (
theme: "res/abb.tmTheme",
font: "FiraCode Nerd Font",
tab-size: 4),
link: ( link: (
color: ABB-GRAY-02))) color: ABB-GRAY-02)))

View File

@ -53,7 +53,10 @@
show heading.where(level: 3): it => v(0.5em) + it + v(0.25em) show heading.where(level: 3): it => v(0.5em) + it + v(0.25em)
// set theme for code blocks // 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) show figure: set block(breakable: true)