ravenous_typst/setup/theme/themes.typ

579 lines
14 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//----- Available color themes -----
#let default-theme = "warm"
#let themes = (
warm: (
//----- Base colors -----
ink: rgb("#302c26"),
muted-ink: rgb("#716957"),
gold: rgb("#9b8050"),
dark-gold: rgb("#70582f"),
parchment: rgb("#F4EBD8"),
parchment-dark: rgb("#ece4d2"),
parchment-light: rgb("#fbf9f3"),
parchment-accent: rgb("#EDE1C8"),
border: rgb("#c9bda4"),
blood: rgb("#7A2424"),
muted: rgb("#756B5D"),
chart-1: rgb("#7A2424"),
chart-2: rgb("#70582F"),
chart-3: rgb("#486A73"),
chart-4: rgb("#687447"),
//----- Advanced attack families -----
attack-basic: rgb("#9A3F32"),
attack-assault: rgb("#B45B35"),
attack-combo: rgb("#8C5638"),
attack-flurry: rgb("#C07835"),
attack-grab: rgb("#76513B"),
attack-mixed: rgb("#9A6A42"),
attack-defensive: rgb("#65734B"),
attack-area: rgb("#A34B43"),
attack-danger: rgb("#762A2A"),
attack-movement: rgb("#486A73"),
attack-defense: rgb("#687447"),
attack-passive: rgb("#829064"),
attack-culmination: rgb("#5E3D2E"),
attack-utility: rgb("#A77835"),
attack-setup: rgb("#817665"),
attack-enrage: rgb("#7A405A"),
//----- Semantic colors -----
heading: rgb("#7A2424"),
heading-accent: rgb("#9b8050"),
heading-subtle: rgb("#716957"),
emphasis: rgb("#7A2424"),
link: rgb("#7A2424"),
//----- Heading and decorative symbols -----
heading-numbering: "1.",
section-symbol: "❖",
chapter-symbol: "✧",
small-symbol: "•",
bullet-symbol: "–",
separator-symbol: "◆",
//----- Progress bar and the sort -----
progress-full: "●",
progress-half: "◐",
progress-void: "○",
//----- Misc -----
star: "★",
font: "Libertinus Serif",
),
steel: (
//----- Base colors -----
ink: rgb("#292B32"),
muted-ink: rgb("#626873"),
gold: rgb("#7187A0"),
dark-gold: rgb("#465A72"),
parchment: rgb("#EEF1F3"),
parchment-dark: rgb("#DCE2E7"),
parchment-light: rgb("#F7F9FA"),
parchment-accent: rgb("#DCE3E8"),
border: rgb("#B8C2CC"),
blood: rgb("#526D85"),
muted: rgb("#69717C"),
//----- Semantic colors -----
heading: rgb("#526D85"),
heading-accent: rgb("#7187A0"),
heading-subtle: rgb("#626873"),
emphasis: rgb("#526D85"),
link: rgb("#526D85"),
//----- Heading and decorative symbols -----
heading-numbering: "1.",
section-symbol: "◆",
chapter-symbol: "◇",
small-symbol: "·",
),
fangdrael: (
//----- Base colors -----
ink: rgb("#29302A"),
muted-ink: rgb("#687064"),
gold: rgb("#7F8F62"),
dark-gold: rgb("#53603D"),
parchment: rgb("#F1F2E8"),
parchment-dark: rgb("#E1E4D5"),
parchment-light: rgb("#FAFBF5"),
parchment-accent: rgb("#E3E5D4"),
border: rgb("#BDC3AE"),
blood: rgb("#536B45"),
muted: rgb("#6D7568"),
//----- Semantic colors -----
heading: rgb("#536B45"),
heading-accent: rgb("#7F8F62"),
heading-subtle: rgb("#687064"),
emphasis: rgb("#536B45"),
link: rgb("#536B45"),
//----- Heading and decorative symbols -----
heading-numbering: "1.",
section-symbol: "❦",
chapter-symbol: "›",
small-symbol: "·",
),
bw: (
//----- Base colors -----
ink: rgb("#202020"),
muted-ink: rgb("#666666"),
gold: rgb("#777777"),
dark-gold: rgb("#484848"),
parchment: rgb("#eeeeee"),
parchment-dark: rgb("#dddddd"),
parchment-light: rgb("#fafafa"),
parchment-accent: rgb("#E2E2E2"),
border: rgb("#b5b5b5"),
blood: rgb("#444444"),
muted: rgb("#707070"),
//----- Semantic colors -----
heading: rgb("#202020"),
heading-accent: rgb("#484848"),
heading-subtle: rgb("#666666"),
emphasis: rgb("#202020"),
link: rgb("#202020"),
),
high-contrast: (
//----- Core colors -----
ink: rgb("#111111"),
muted-ink: rgb("#333333"),
gold: rgb("#005A9C"),
dark-gold: rgb("#003B66"),
parchment: rgb("#FFFFFF"),
parchment-dark: rgb("#E6E6E6"),
parchment-light: rgb("#FFFFFF"),
parchment-accent: rgb("#FFF4CC"),
border: rgb("#555555"),
blood: rgb("#A40000"),
muted: rgb("#444444"),
//----- Semantic colors -----
heading: rgb("#003B66"),
heading-accent: rgb("#005A9C"),
heading-subtle: rgb("#333333"),
emphasis: rgb("#A40000"),
link: rgb("#003B66"),
),
yon-sen: (
//----- Base colors -----
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"),
//----- Semantic colors -----
heading: rgb("#743129"),
heading-accent: rgb("#304C5E"),
heading-subtle: rgb("#625D54"),
emphasis: rgb("#743129"),
link: rgb("#304C5E"),
blood: rgb("#8C3029"),
//----- Heading and decorative symbols -----
heading-numbering: "一、",
section-symbol: "※",
separator-symbol: "—",
important-symbol: "※",
quote-symbol: "「",
),
steingrund: (
//----- Base colors -----
ink: rgb("#25262B"),
muted-ink: rgb("#686A73"),
gold: rgb("#8E96A8"),
dark-gold: rgb("#5C6372"),
parchment: rgb("#EEF0F2"),
parchment-dark: rgb("#D9DDE1"),
parchment-light: rgb("#F8F9FA"),
parchment-accent: rgb("#E1E5E9"),
border: rgb("#B5BBC3"),
blood: rgb("#6F2535"),
muted: rgb("#747781"),
chart-1: rgb("#76283D"), // vampire wine
chart-2: rgb("#526984"), // glacial steel
chart-3: rgb("#57486F"), // gothic violet
chart-4: rgb("#253F52"), // deep night
//----- Advanced attack families -----
attack-basic: rgb("#76283D"), // vampire wine
attack-assault: rgb("#91364B"), // fresh crimson
attack-combo: rgb("#68405E"), // bruised plum
attack-flurry: rgb("#7D526D"), // dusty mauve
attack-grab: rgb("#4D3D57"), // crypt violet
attack-mixed: rgb("#655878"), // twilight lavender
attack-defensive: rgb("#465E70"), // cold ward steel
attack-area: rgb("#80334F"), // spreading blood
attack-danger: rgb("#541D2D"), // dried blood
attack-movement: rgb("#52758A"), // glacial blue
attack-defense: rgb("#3F6370"), // frozen teal
attack-passive: rgb("#718698"), // snow-shadow blue
attack-culmination: rgb("#342D4D"), // cathedral midnight
attack-utility: rgb("#6C647F"), // silver violet
attack-setup: rgb("#7A7E89"), // weathered silver
attack-enrage: rgb("#692344"), // black cherry
//----- Semantic colors -----
heading: rgb("#572331"),
heading-accent: rgb("#7D879B"),
heading-subtle: rgb("#686A73"),
emphasis: rgb("#78283B"),
link: rgb("#53667D"),
//----- Heading and decorative symbols -----
heading-numbering: "I.",
section-symbol: "†",
chapter-symbol: "✠",
small-symbol: "·",
bullet-symbol: "–",
separator-symbol: "❖",
//----- Progress bar and the sort -----
progress-full: "◆",
progress-half: "◈",
progress-void: "◇",
//----- Misc -----
star: "✦",
font: "Libertinus Serif",
),
treorst: (
// Imperial court palette: royal purple, ceremonial gold, ivory and navy.
ink: rgb("#272238"),
muted-ink: rgb("#6D647A"),
gold: rgb("#C39A3D"),
dark-gold: rgb("#87651F"),
parchment: rgb("#F4EBD7"),
parchment-dark: rgb("#E5D4AE"),
parchment-light: rgb("#FFF9E9"),
parchment-accent: rgb("#EEDDB8"),
border: rgb("#C7A967"),
blood: rgb("#7C2348"),
muted: rgb("#786E7E"),
chart-1: rgb("#702A68"), // imperial purple
chart-2: rgb("#C39A3D"), // ceremonial gold
chart-3: rgb("#263F67"), // royal navy
chart-4: rgb("#9A3653"), // court crimson
map-marker: rgb("#1756A3"), // vivid royal blue, legible over Anankar
map-marker-stroke: rgb("#FFF9E9"),
heading: rgb("#61245D"),
heading-accent: rgb("#A97F25"),
heading-subtle: rgb("#655B73"),
emphasis: rgb("#862750"),
link: rgb("#304E79"),
heading-numbering: "1.",
section-symbol: "⚜",
chapter-symbol: "♛",
small-symbol: "✦",
bullet-symbol: "›",
separator-symbol: "❖",
progress-full: "♛",
progress-half: "♕",
progress-void: "♔",
star: "★",
font: "Libertinus Serif",
),
anankar: (
//----- Base colors -----
ink: rgb("#3A3025"),
muted-ink: rgb("#796C59"),
gold: rgb("#B28A45"),
dark-gold: rgb("#80612F"),
parchment: rgb("#F2E5C7"),
parchment-dark: rgb("#E2CFA6"),
parchment-light: rgb("#FBF4DF"),
parchment-accent: rgb("#EAD6AD"),
border: rgb("#CBB98F"),
blood: rgb("#8B4930"),
muted: rgb("#81735E"),
//----- Semantic colors -----
heading: rgb("#715126"),
heading-accent: rgb("#A97E39"),
heading-subtle: rgb("#796C59"),
emphasis: rgb("#8B4930"),
link: rgb("#426E72"),
//----- Heading and decorative symbols -----
heading-numbering: "1.",
section-symbol: "☥",
chapter-symbol: "◇",
small-symbol: "·",
bullet-symbol: "›",
separator-symbol: "◆",
//----- Progress bar and the sort -----
progress-full: "◆",
progress-half: "◈",
progress-void: "◇",
//----- Misc -----
star: "✦",
font: "Libertinus Serif",
),
drekinsteps: (
//----- Base colors -----
ink: rgb("#33251F"),
muted-ink: rgb("#765B4E"),
gold: rgb("#C08A3E"),
dark-gold: rgb("#875722"),
parchment: rgb("#F1DDC5"),
parchment-dark: rgb("#DEC0A0"),
parchment-light: rgb("#FAEBD9"),
parchment-accent: rgb("#E7C9A8"),
border: rgb("#C69D76"),
blood: rgb("#A83224"),
muted: rgb("#7D6557"),
//----- Semantic colors -----
heading: rgb("#8E2C20"),
heading-accent: rgb("#C0782D"),
heading-subtle: rgb("#765B4E"),
emphasis: rgb("#B53B26"),
link: rgb("#9A4325"),
//----- Heading and decorative symbols -----
heading-numbering: "1.",
section-symbol: "◆",
chapter-symbol: "✦",
small-symbol: "•",
bullet-symbol: "›",
separator-symbol: "✧",
//----- Progress bar and the sort -----
progress-full: "◆",
progress-half: "◈",
progress-void: "◇",
//----- Misc -----
star: "★",
font: "Libertinus Serif",
),
draan: (
//----- Base colors -----
// Deep abyssal blue-violet rather than conventional black/brown.
ink: rgb("#25223D"),
muted-ink: rgb("#665E82"),
// Strange "gold": oxidised teal / ancient mineral metal.
// Deliberately avoids the normal warm-gold vocabulary.
gold: rgb("#5F9189"),
dark-gold: rgb("#3F6965"),
//----- Parchment colors -----
// Alien stone / fungal / bruised-paper palette.
// Each layer shifts hue rather than simply changing brightness.
parchment: rgb("#E2DFE8"),
parchment-dark: rgb("#BCCDC5"),
parchment-light: rgb("#F2EDF3"),
parchment-accent: rgb("#D4C1D7"),
border: rgb("#9991A8"),
// Deep violet-magenta accent.
blood: rgb("#713F70"),
muted: rgb("#706A82"),
//----- Semantic colors -----
heading: rgb("#513B72"),
heading-accent: rgb("#4F817B"),
heading-subtle: rgb("#665E82"),
emphasis: rgb("#81477D"),
// Cold turquoise contrasts strongly with the violet ink.
link: rgb("#397A76"),
//----- Heading and decorative symbols -----
heading-numbering: "1.",
section-symbol: "◈",
chapter-symbol: "⬖",
small-symbol: "∙",
bullet-symbol: "›",
separator-symbol: "◇",
//----- Progress bar and the sort -----
progress-full: "⬢",
progress-half: "◐",
progress-void: "⬡",
//----- Misc -----
star: "✦",
font: "Libertinus Serif",
),
)
// Public identifiers accepted by the `theme` build input.
#let theme-names = themes.keys()
//----- Return the complete selected theme -----
#let make-theme(theme-name: default-theme) = {
themes.at(theme-name)
}
//----- Return a safe dynamic theme-variable accessor -----
#let make-theme-variable(theme-name: default-theme) = {
let symfinder(name) = {
if theme-name in themes {
themes.at(theme-name).at(name, default: themes.at("warm").at(name))
} else {
themes.at(default-theme).at(name)
}
}
symfinder
}
//----- THEMATIC LABELS & DIVIDERS -----
#let resolve-table-theme(theme-name) = if theme-name == none {
themes.at(default-theme)
} else {
if theme-name in themes {
themes.at(theme-name)
} else {
themes.at(default-theme)
}
}
//----- LABEL -----
#let fantasy-config = (
// Label
label-size: 7.5pt,
label-weight: "bold",
label-tracking: 0.12em,
// Section
section-spacing: 0.3em,
// Rule
rule-width: 0.65pt,
)
#let fantasy-label(
body,
theme-name: none,
size: none,
weight: none,
tracking: none,
fill: none,
) = {
let t = resolve-table-theme(theme-name)
let size = if size == none {
fantasy-config.label-size
} else {
size
}
let weight = if weight == none {
fantasy-config.label-weight
} else {
weight
}
let tracking = if tracking == none {
fantasy-config.label-tracking
} else {
tracking
}
let fill = if fill == none {
t.dark-gold
} else {
fill
}
text(
size: size,
weight: weight,
fill: fill,
tracking: tracking,
)[
#body
]
}
//----- RULE -----
#let fantasy-rule(
theme-name: none,
stroke-width: none,
stroke: none,
) = {
let t = resolve-table-theme(theme-name)
let stroke-width = if stroke-width == none {
fantasy-config.rule-width
} else {
stroke-width
}
let stroke = if stroke == none {
stroke-width + t.border
} else {
stroke
}
line(
length: 100%,
stroke: stroke,
)
}
//----- SECTION -----
#let fantasy-section(
title,
body,
theme-name: none,
label-size: none,
label-weight: none,
label-tracking: none,
spacing: none,
) = {
let spacing = if spacing == none {
fantasy-config.section-spacing
} else {
spacing
}
fantasy-label(
title,
theme-name: theme-name,
size: label-size,
weight: label-weight,
tracking: label-tracking,
)
v(spacing)
body
}