You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4e27a07
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
## Unreleased
4
4
5
+
- feat: Add the `fill` and `stroke` keys to the Typst theme, so a template can set the code background and draw the window border on some sides only. (#97)
6
+
5
7
## 1.9.1 (2026-11-20)
6
8
7
9
- fix: A code block without a filename now gets its title bar when the page renders, so the content below it no longer moves down as the page loads. (#95)
Copy file name to clipboardExpand all lines: docs/reference.qmd
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -159,9 +159,11 @@ The default colours come from the page fill, so the window matches light and dar
159
159
|---|---|---|
160
160
| `border` | 15% of the text colour mixed into the page fill | The colour of the window border and of the line below the title bar. |
161
161
| `surface` | 5% of the text colour mixed into the page fill | The title bar background. |
162
+
| `fill` | `auto` | The background of each highlighted code block, in a window and out of it. With `none`, the block has no background. With Skylighting highlighting, this needs the `skylighting` hot-fix, and `auto` keeps the background of the highlight style. With native Typst highlighting, the key applies only in a window, and `auto` gives no background there. |
162
163
| `label` | 65% of the text colour mixed into the page fill | The colour of the filename. |
163
164
| `muted` | 50% of the text colour mixed into the page fill | The colour of the `windows` style buttons. |
164
165
| `radius` | `8pt` | The radius of the window corners. |
166
+
| `stroke` | `auto` | The window border. With `auto`, the border is made from `border`, `stroke-thickness`, and `stroke-dash`. Any other value is a Typst stroke that replaces the border, for example `(top: 2pt + olive, rest: none)` for a top rule only. The line below the title bar does not change. |
165
167
| `stroke-thickness` | `1pt` | The thickness of the border. |
166
168
| `stroke-dash` | `none` | The dash pattern of the border, for example `"dashed"`. |
167
169
| `title-inset` | `(x: 1em, y: 0.6em)` | The inset of the title bar. |
0 commit comments