Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#import "@preview/polylux:0.4.0": *

#let bright = rgb("#eb811b")
#let brighter = rgb("#d6c6b7")
#let bright = state("metropolis-bright", rgb("#eb811b"))
#let brighter = state("metropolis-brighter", rgb("#d6c6b7"))

#let slide-title-header = toolbox.next-heading(h => {
show: toolbox.full-width-block.with(fill: text.fill, inset: 1em)
Expand All @@ -30,8 +30,8 @@
set grid.cell(inset: (y: .03em))
grid(
columns: (ratio * 100%, 1fr),
grid.cell(fill: bright)[],
grid.cell(fill: brighter)[],
grid.cell(fill: bright.get())[],
grid.cell(fill: brighter.get())[],
)
})

Expand All @@ -51,14 +51,19 @@
body
}

#let divider = line(length: 100%, stroke: .1em + bright)
#let divider = context {
line(length: 100%, stroke: .1em + bright.get())
}

#let setup(
footer: none,
text-font: "Fira Sans",
math-font: "Fira Math",
code-font: "Fira Code",
text-size: 23pt,
bright-color: rgb("#eb811b"),
brighter-color: rgb("#d6c6b7"),
fill-color: rgb("#23373b"),
body,
) = {
set page(
Expand All @@ -72,13 +77,19 @@
font: text-font,
// weight: "light", // looks nice but does not match Fira Math
size: text-size,
fill: rgb("#23373b"), // dark teal
fill: fill-color,
)

bright.update(bright-color)
brighter.update(brighter-color)

set strong(delta: 100)
show math.equation: set text(font: math-font)
show raw: set text(font: code-font)
set align(horizon)
show emph: it => text(fill: bright, it.body)
context {
show emph: it => text(fill: bright.get(), it.body)
}
show heading.where(level: 1): _ => none

body
Expand Down