-
Notifications
You must be signed in to change notification settings - Fork 0
Themes PHB 24
Layout and styling inspired by the D&D 2024 Player's Handbook — a second, alternate look alongside 5.5e, sharing the same fonts and color palette. This page only covers what's different from 5.5e; anything not mentioned here (color classes, tables, monster/item cards, roll tables, …) works exactly the same way — see 5.5e for those.
Same font files as 5.5e, copied as-is — no new licensing to track. The decorative images specific to this theme (the chapter title's underline rule and label flourishes) are original artwork, generated for MPX rather than sourced from anywhere third-party.
Add a data-chapter attribute to a top-level heading to get the full chapter-title treatment: a small uppercase label above the title (flanked by a pair of gold flourishes), the title itself in a dark-to-pale signature-color gradient, and a decorative rule underneath.
# Spells {data-chapter="Chapter 7"}
A plain # Heading with no data-chapter attribute renders as a normal (if larger than 5.5e's) heading — the label and flourishes only appear when the attribute is present.
The paragraph immediately after a chapter H1 automatically gets a large gold drop-cap letter (same font as the title, bold, with a thin dark-gold outline) and its first line is always rendered in small caps — no markup needed beyond writing the paragraph right after the heading:
# Spells {data-chapter="Chapter 7"}
This chapter provides the rules for casting spells, and it includes
descriptions of sample spells used by many magic items, monsters, and
class features.
Add .no-fancy to a paragraph right after an H1 to opt it out of the drop cap (the small-caps first line still applies to any paragraph directly after an H1, with or without .no-fancy).
.paper and .flavortext are not supported in this theme (they render as an unstyled default blockquote if used) — every other variant from 5.5e (.read, .large-quote, .flowchart) works the same. The mpx-paper/mpx-flavortext authoring snippets are hidden automatically while a project is on this theme.
An addition to 5.5e's .caption: instead of rendering below the image, .caption-over places the caption directly on top of it, anchored to the bottom edge, in a pale gray-white with a dark text shadow for legibility over any image content.
{.caption-over}
Sets the paragraph in --font-data (the theme's data/label font) with a hanging indent: the first line starts flush left, every line after it is indented.
Str 18 (+4). Dex 12 (+1). Con 16 (+3). This creature's saving throw
bonuses assume proficiency in the listed abilities only.
{.text-data}
A few base (no-class) elements use different default colors than 5.5e:
- Plain blockquote background:
#e8d7c4(was#e0e4c3). -
.readblockquote background:#dae8ed(was#edebe8). - Table row background:
#dae8ed(was#e0e4c3), with no border line on the base (uncolored) table — a colored table variant (.blue,.green, …) still shows its own accent-colored border, same as 5.5e.
H2 is also larger by default (3.4rem vs 5.5e's 2.9rem).