Question: What would be the best way to support themes? #679

Closed
opened 2026-01-29 14:42:49 +00:00 by claunia · 1 comment
Owner

Originally created by @michaelstonis on GitHub (May 16, 2024).

What would be the best way to approach automatically supporting a dark mode or other theme for the generated output? Would that require a custom renderer or extension to modify the output HTML and add additional CSS classes?

Originally created by @michaelstonis on GitHub (May 16, 2024). What would be the best way to approach automatically supporting a dark mode or other theme for the generated output? Would that require a custom renderer or extension to modify the output HTML and add additional CSS classes?
claunia added the question label 2026-01-29 14:42:49 +00:00
Author
Owner

@xoofx commented on GitHub (May 16, 2024):

What would be the best way to approach automatically supporting a dark mode or other theme for the generated output? Would that require a custom renderer or extension to modify the output HTML and add additional CSS classes?

Nope. Any rendering related topics are delegated to CSS, especially dark mode that is usually implemented differently by the different CSS framework providers (CSS variables, SCSS...etc.) requiring often additional JavaScript.

@xoofx commented on GitHub (May 16, 2024): > What would be the best way to approach automatically supporting a dark mode or other theme for the generated output? Would that require a custom renderer or extension to modify the output HTML and add additional CSS classes? Nope. Any rendering related topics are delegated to CSS, especially dark mode that is usually implemented differently by the different CSS framework providers (CSS variables, SCSS...etc.) requiring often additional JavaScript.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#679