From 2d79994f439886e96d7682587270506f0f2812ea Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Mon, 14 Apr 2025 09:12:44 +0800 Subject: [PATCH] Feat: add background color for code blocks --- styles.typ | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/styles.typ b/styles.typ index f8cc5b8..6d158da 100644 --- a/styles.typ +++ b/styles.typ @@ -31,10 +31,18 @@ ) // Code section default - show raw: set text( - font: "Consolas", - size: 8pt - ) + show raw: self => { + set text( + font: "Consolas", + size: 8pt + ) + block( + fill: luma(240), + inset: 8pt, + radius: 2pt, + self + ) + } { // Title set align(center)