Skip to content

Commit d9919df

Browse files
committed
🚧 Outlined the theme
1 parent f4e6c0d commit d9919df

File tree

10 files changed

+86
-1
lines changed

10 files changed

+86
-1
lines changed

‎themes/hereford/colors.typ‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#let red = rgb("#e06666")
2+
#let orange = rgb("#f6b26b")
3+
#let light-orange = rgb("#fce5cd")
4+
#let yellow = rgb("#ffd966")
5+
#let light-yellow = rgb("#fff2cc")
6+
#let green = rgb("#44a176")
7+
#let light-green = rgb("#e1ffda")
8+
#let blue = rgb("#6d9eeb")
9+
#let light-blue = rgb("#c9daf8")
10+
#let purple = rgb("#c4b0ff")
11+
#let light-purple = rgb("#ede5ff")
12+
#let pink = rgb("#d5a6bd")
13+
#let light-pink = rgb("#ead1dc")
14+
#let brown = rgb("#ca9994")
15+
#let light-brown = rgb("#deafab")
16+
#let gray = rgb("#999999")
17+
#let light-gray = rgb("#b7b7b7")
18+
19+
#let surface-0 = rgb("#d9d9d9")
20+
#let surface-1 = rgb("#cccccc")
21+
#let surface-3 = rgb("#eeeeee")
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#import "./decision-matrix.typ": *
2+
#import "pro-con.typ": *
3+
#import "./toc.typ": *
4+
#import "glossary.typ": *
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#let decision-matrix(properties: none, ..choices) = {}

‎themes/hereford/components/glossary.typ‎

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#let pro-con(pros: [], cons: []) = {}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#let toc() = {
2+
3+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#let cover(ctx: (:)) = {}
2+
3+
#let frontmatter-entry(ctx: (:), body) = {
4+
show: page.with(
5+
margin: (
6+
top: 5em,
7+
),
8+
header: {
9+
place(top + right, dx: 100pt, box(width: 250%, height: 100%, fill: gray))
10+
set align(center + horizon)
11+
box(radius: 0.3em, width: 200pt, outset: 9pt, fill: gray.darken(20%), [*#ctx.title*])
12+
}
13+
)
14+
15+
body
16+
}
17+
18+
#let body-entry(ctx: (:), body) = {
19+
show: page.with(
20+
header: [ = #ctx.title
21+
#box(width: 1fr, line(length: 100%)) ],
22+
footer: align(center, counter(page).display()),
23+
)
24+
25+
body
26+
}
27+
#let appendix-entry(ctx: (:), body) = {
28+
show: page.with(
29+
header: [ = #ctx.title
30+
#box(width: 1fr, line(length: 100%)) ],
31+
footer: align(center, counter(page).display()),
32+
)
33+
34+
body
35+
}

‎themes/hereford/format.typ‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#let rules(doc) = {
2+
set page("us-letter")
3+
set text(font: "Roboto", size: 11pt)
4+
doc
5+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#import "./format.typ": rules
2+
#import "./entries.typ": cover, frontmatter-entry, body-entry, appendix-entry
3+
#import "./components/components.typ"
4+
#import "./colors.typ"
5+
6+
#let hereford-theme = (
7+
// Global show and set rules
8+
rules: rules,
9+
cover: cover,
10+
// Entry pages
11+
frontmatter-entry: frontmatter-entry,
12+
body-entry: body-entry,
13+
appendix-entry: appendix-entry,
14+
)

‎themes/themes.typ‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#import "./default/default.typ"
22
#import "./radial/radial.typ"
3-
#import "./linear/linear.typ"
3+
#import "./linear/linear.typ"
4+
#import "./hereford/hereford.typ"

0 commit comments

Comments
 (0)