Skip to content

Commit

Permalink
fix(docs): set default color for line stroke
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Sep 28, 2023
1 parent 8de2574 commit c198de6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/cookery/book.typ
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@

#import "@preview/book:0.2.2": *
#import "./templates/page.typ": main-color

#show: book

#let main-color = main-color

// #let section-numbers = state("book-section", ())
#let section-numbers = ()

Expand Down
2 changes: 2 additions & 0 deletions docs/cookery/templates/page.typ
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
// set text style
set text(font: main-font, size: 16pt, fill: main-color, lang: "en")

set line(stroke: main-color)

// render a dash to hint headings instead of bolding it.
show heading : set text(weight: "regular") if is-web-target
show heading : it => locate(loc => {
Expand Down

0 comments on commit c198de6

Please sign in to comment.