-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Open
Labels
Good first issue!Status: ApprovedIs ready to be worked onIs ready to be worked onType: EnhancementNew feature or requestNew feature or request
Description
Proposal
Please consider adding support for using CSS variables in themes.
Example:
Mermaid:
config:
themeVariables:
git1: --danger
CSS:
:root {
--danger: red;
}
[data-theme='dark'] {
--danger: orange;
}
Use case:
For sites that already support multiple themes (such as light/dark modes) through a system of CSS variables, allowing Mermaid to reference these variables would significantly improve visual consistency between Mermaid diagrams and the rest of the site. It would also enable diagrams to automatically adapt when the user switches themes — something that is not currently customizable.
Colors
Support CSS variables for all colors.
Screenshots
No response
Metadata
Metadata
Assignees
Labels
Good first issue!Status: ApprovedIs ready to be worked onIs ready to be worked onType: EnhancementNew feature or requestNew feature or request