Custom theming
Deckset 2.0 introduces customization options for slide styles directly within the user interface. In addition to these UI-based controls, you can apply fine-grained styling to individual slides using the customization commands outlined below. Note that command-based styles will always override any styles set in the UI.
Text and Headers
To customize the look and feel of your text and headers, you may add customization commands to text, text-emphasis, text-strong, header, header-emphasis, header-strong, slidenumber-style and footer-style with the desired color, alignment, line-height, text-scale, font and capitalization.
[.text: #000000, alignment(left|center|right), line-height(10), text-scale(2.0), kern(1), Avenir Next Regular]
[.header: #FF0000, alignment(left|center|right), line-height(18), text-scale(3.0), Avenir Next Bold, capitalization(default|upper|title)]
[.footer-style: #2F2F2F, alignment(left|center|right), line-height(8), text-scale(1.5), Avenir Next Regular]
We recommend using Mac’s native Font Book application to search for fonts.
Background color
To customize the background color of your slide, you may use the following customization command:
[.background-color: #FF0000]
Lists
To customize your list styles, you may add customization commands for the list color, bullet-character, alignment, bullet color, text scale, and ordered and unordered bullet indent.
[.list: #000000, bullet-character(Custom String), alignment(left|center|right), bullet-color(#ffcc00), text-scale(1.2), bullet-indent(40), ordered-bullet-indent(20)]
Tables
To customize the style of your tables, you may use the following commands:
[.table-separator: #000000, stroke-width(10)]
[.table: margin(5)]
Code
Deckset automatically picks a random set of colors with high enough contrast against the chosen background color for your code. You may add customization commands for the line-height and font family.
For consistent styles between code blocks and to prevent palette regeneration, use seed number 42 for persistence.
[.code: auto(42), Font Family Name, line-height(4.2)]
Use auto without a seed to regenerate colors on each display:
[.code: auto]
Manual palettes support 1–5 colors. If fewer than five are provided, the list repeats to fill the palette.
[.code: #ffcc00, #1b1b1b, #ffffff]
You can also control alpha code build-in by specifying following command:
[.code: dimmed-opacity(0.2)]
Standard text overrides such as text-scale(...) and alignment(...) also apply to code blocks.
Inline code
Inline code shares the same customization options as code blocks, but only affects inline code spans. If both .code and .inline-code are present, inline code uses the .inline-code override.
[.inline-code: text-scale(0.9), Font Family Name, auto(42)]
Footnotes
To customize the look and feel of footnotes, you may use the following commands:
[.footnote: #000000, alignment(left|center|right), line-height(10), text-scale(2.0), Avenir Next Regular]
Style the horizontal ruler that separates the footnote from the slide content like so:
[.footnote-separator: #001100, height(10), margin(12)]
Formulas
To customize the style of formulas, you may use the following command:
[.formula: text-scale(42), alignment(center), #ff0011]
Links
Link styles can be customized with color, font, line height, text scale, and underline options. The underline style supports none, single, thick, or double, with an optional byWord modifier.
[.link: #00aaff, Avenir Next Regular, line-height(10), text-scale(1.1), underline(single, byWord)]
Quotes
To customize the style of quotes, you may use the following commands:
[.quote: #000000, alignment(left|center|right), line-height(10), text-scale(2.0), Avenir Next Regular]
To customize the style of the quote’s author, use:
[.quote-author: #000000, alignment(left|center|right), line-height(10), text-scale(2.0), Avenir Next Regular]
Presenter notes
Presenter notes accept the same text customization controls as normal text styles.
[.presenter-notes: #333333, alignment(left), line-height(9), text-scale(0.9), Avenir Next Regular]
See also Presenter notes for authoring and preview tips.
Mermaid graphs
Mermaid diagrams use the shared graph customization command so you can pick distinct primary, secondary, and tertiary colors (plus an optional dark‑mode toggle):
[.graph: #ffffff, #aaffff, #000000, dark-mode(false)]
See also Mermaid diagrams for syntax and examples.
Pikchr diagrams
Pikchr diagrams have their own two-color command. The first value controls the diagram foreground (strokes, text, etc.) and the second value is the background fill; omit the second color to fall back to the slide background:
[.pikchr-graph: #f8f8f8, #003366]
See also Pikchr diagrams for syntax examples.
Store theme choice in document
Deckset does store the theme choice as metadata to the file. In some cases, this information can get lost, e.g. in version control systems or when sending the file via email.
To make sure the theme choice doesn’t get lost, you can use the following command theme: Fira.
If you also want to specify the color choice, you can reference the number of the color swatch as it appears within Deckset e.g.:
theme: Fira, 3
Please note that this command can only be used globally, at the top of your Markdown file.