Goodenough state on styling

This commit is contained in:
Dandaedre 2026-08-15 16:03:19 +02:00
parent 4bd2d51e36
commit 90d03a3881
3 changed files with 49 additions and 19 deletions

View File

@ -215,6 +215,19 @@
// ---------------------------------------------------------------------------
show: make-glossary
// show ref: it => {
// let head = heading
// let el = it.element
// if el != none and el.func() == heading {
// // Override heading references.
// text(fill: red)[#link(el.location())[#it: #el.body]]
// } else if el != none and el.func() == figure and el.kind == "glossarium_entry" {
// smallcaps(it)
// } else {
// // Other references as usual.
// it
// }
// }
register-glossary(glossary)
document

View File

@ -27,10 +27,6 @@
heading-numbering: "1.",
// ---------------------------------------------------------------------------
// Symbols
// ---------------------------------------------------------------------------
// Major headings
section-symbol: "❖",
chapter-symbol: "✧",
@ -83,7 +79,7 @@
link: rgb("#536B45"),
heading-numbering: "1.",
section-symbol: "❧",
section-symbol: "❦",
chapter-symbol: "›",
small-symbol: "·",
),
@ -110,27 +106,16 @@
// ---------------------------------------------------------------------------
// Core colors
// ---------------------------------------------------------------------------
ink: rgb("#111111"),
muted-ink: rgb("#333333"),
// Strong blue accent
gold: rgb("#005A9C"),
dark-gold: rgb("#003B66"),
// Very high contrast paper tones
parchment: rgb("#FFFFFF"),
parchment-dark: rgb("#E6E6E6"),
parchment-light: rgb("#FFFFFF"),
parchment-accent: rgb("#FFF4CC"),
// Strong neutral border
border: rgb("#555555"),
// Strong red, still readable against white
blood: rgb("#A40000"),
// Neutral muted text
muted: rgb("#444444"),
// ---------------------------------------------------------------------------
@ -144,6 +129,38 @@
emphasis: rgb("#A40000"),
link: rgb("#003B66"),
),
yon-sen: (
ink: rgb("#292724"),
muted-ink: rgb("#625D54"),
vermilion: rgb("#9E3B2F"),
dark-vermilion: rgb("#743129"),
indigo: rgb("#304C5E"),
dark-indigo: rgb("#263D4B"),
moss: rgb("#68705A"),
dark-moss: rgb("#4D5644"),
gold: rgb("#A88A54"),
dark-gold: rgb("#78633D"),
parchment: rgb("#F3EBDD"),
parchment-dark: rgb("#E7DDC9"),
parchment-light: rgb("#FAF6EC"),
parchment-accent: rgb("#EEE4D1"),
border: rgb("#C8BDA8"),
muted: rgb("#777064"),
heading: rgb("#743129"),
heading-accent: rgb("#304C5E"),
heading-subtle: rgb("#625D54"),
emphasis: rgb("#743129"),
link: rgb("#304C5E"),
blood: rgb("#8C3029"),
heading-numbering: "一、",
section-symbol: "※",
separator-symbol: "—",
important-symbol: "※",
quote-symbol: "「",
),
)
#let make-theme(theme: "warm") = {
@ -152,8 +169,8 @@
#let make-theme-variable(theme: "warm") = {
let symfinder(name) = {
if name in theme {
theme.at(theme).at(name)
if theme in themes {
themes.at(theme).at(name)
} else {
themes.at("warm").at(name)
}

View File

@ -1,5 +1,5 @@
#import "themes.typ": make-theme, make-theme-variable
#let ravenous = (name: "Ravenous", title: "Ravenous", copyright: "Dandaedre", date: "2021")
#let color_scheme = "sage"
#let color_scheme = "warm"
#let theme = make-theme(theme: color_scheme)
#let theme-var = make-theme-variable(theme: color_scheme)