-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy paththemes.typ
49 lines (46 loc) · 941 Bytes
/
themes.typ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#let _state-poster-theme = state("poster-theme", (
"body-box-args": (
inset: 0.6em,
width: 100%,
),
"body-text-args": (:),
"heading-box-args": (
inset: 0.6em,
width: 100%,
fill: rgb(50, 50, 50),
stroke: rgb(25, 25, 25),
),
"heading-text-args": (
fill: white,
),
))
#let uni-fr = (
"body-box-args": (
inset: 0.6em,
width: 100%,
),
"body-text-args": (:),
"heading-box-args": (
inset: 0.6em,
width: 100%,
fill: rgb("#1d154d"),
stroke: rgb("#1d154d"),
),
"heading-text-args": (
fill: white,
),
)
#let update-theme(..args) = {
for (arg, val) in args.named() {
_state-poster-theme.update(pt => {
pt.insert(arg, val)
pt
})
}
}
#let set-theme(theme) = {
_state-poster-theme.update(pt => {
pt=theme
pt
})
}