-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typst brand yaml: lines take foreground color
does not do #set table.vline(stroke: (paint: brand-color.foreground)) because we don't use vertical lines. but users can enable above if they need it
- Loading branch information
1 parent
ffe274c
commit e4e23ad
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
tests/docs/smoke-all/typst/brand-yaml/color/foreground-lines.qmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: Foreground and background colors | ||
format: | ||
typst: | ||
keep-typ: true | ||
brand: | ||
color: | ||
foreground: "#ccd2b2" | ||
background: "#30104f" | ||
|
||
_quarto: | ||
tests: | ||
typst: | ||
ensureTypstFileRegexMatches: | ||
- | ||
- '#set page\(fill: brand-color\.background\)' | ||
- '#set text\(fill: brand-color\.foreground\)' | ||
- 'heading-color: unescape-eval\("rgb\(\\"\\#ccd2b2\\"\)"\)' | ||
- '#set table.hline\(stroke: \(paint: brand-color\.foreground\)\)' | ||
- '#set line\(stroke: \(paint: brand-color\.foreground\)\)' | ||
|
||
- [] | ||
--- | ||
|
||
|
||
|
||
| Col1 | Col2 | | ||
|------|------| | ||
| A | B | | ||
|
||
------------------------------------------------------------------------ | ||
|
||
See footnote [^1] | ||
|
||
[^1]: Here's a footnote |