25 lines
842 B
Plaintext
25 lines
842 B
Plaintext
//----- Theme constructors -----
|
|
#import "themes.typ" as th
|
|
#import "../build_config.typ": build-config, document-config
|
|
// make-theme, make-theme-variable, fantasy-label,fantasy-rule,fantasy-section
|
|
|
|
//----- Project metadata -----
|
|
#let ravenous = (
|
|
name: document-config.name,
|
|
title: document-config.title,
|
|
copyright: document-config.copyright,
|
|
date: document-config.date,
|
|
)
|
|
|
|
//----- Select the active color scheme -----
|
|
#let color_scheme = build-config.theme
|
|
#assert(
|
|
color_scheme in th.theme-names,
|
|
message: "Unknown theme '" + color_scheme + "'. Available themes: " + th.theme-names.join(", "),
|
|
)
|
|
|
|
//----- Build the active theme and its variable form -----
|
|
#let theme = th.make-theme(theme-name: color_scheme)
|
|
#let theme-var = th.make-theme-variable(theme-name: color_scheme)
|
|
#let resolve-table-theme = th.resolve-table-theme
|