dewdrop-theme
dewdrop-theme(aspect-ratio: "16-9", navigation: "sidebar", sidebar, mini-slides, footer: none, footer-right, primary: rgb("#0c4842"), alpha: 60%, subslide-preamble, ..args, body)(source)Touying dewdrop theme.
Example:
#show: dewdrop-theme.with(aspect-ratio: "16-9", config-colors(primary: blue))`
The default colors:
config-colors(
neutral-darkest: rgb("#000000"),
neutral-dark: rgb("#202020"),
neutral-light: rgb("#f3f3f3"),
neutral-lightest: rgb("#ffffff"),
primary: rgb("#0c4842"),
)
aspect-ratio : string default: "16-9"
The aspect ratio of the slides. Default is 16-9.
navigation : string default: "sidebar"
The navigation of the slides. You can choose from "sidebar", "mini-slides", and none. Default is "sidebar".
sidebar : dictionary
The configuration of the sidebar. You can set the width, filled, numbered, indent, and short-heading of the sidebar. Default is (width: 10em, filled: false, numbered: false, indent: .5em, short-heading: true). - width (string): The width of the sidebar. - filled (boolean): Whether the outline in the sidebar is filled. - numbered (boolean): Whether the outline in the sidebar is numbered. - indent (length): The indent of the outline in the sidebar. - short-heading (boolean): Whether the outline in the sidebar is short.
mini-slides : dictionary
The configuration of the mini-slides. You can set the height, x, display-section, display-subsection, and short-heading of the mini-slides. Default is (height: 4em, x: 2em, display-section: false, display-subsection: true, linebreaks: true, short-heading: true). - height (length): The height of the mini-slides. - x (length): The x position of the mini-slides. - display-section (boolean): Whether the slides of sections are displayed in the mini-slides. - display-subsection (boolean): Whether the slides of subsections are displayed in the mini-slides. - linebreaks (boolean): Whether line breaks are in between links for sections and subsections in the mini-slides. - short-heading (boolean): Whether the mini-slides are short. Default is true. - inline (boolean): Whether the mini-slides are displayed right after the section or subsection link, or on a new line. Default is false.
footer : content | function default: none
The footer of the slides. Default is none.
footer-right : content | function
The right part of the footer. Default is context utils.slide-counter.display() + " / " + utils.last-slide-number.
primary : color default: rgb("#0c4842")
The primary color of the slides. Default is rgb("#0c4842").
alpha : fraction | float default: 60%
The alpha of transparency. Default is 60%.
outline-title : content | function
The title of the outline. Default is utils.i18n-outline-title.
subslide-preamble : content | function
The preamble of the subslide. Default is self => block(text(1.2em, weight: "bold", fill: self.colors.primary, utils.display-current-heading(depth: self.slide-level))).