Skip to content

docs: centralized crucible-themed mermaid diagrams#171

Merged
joshua-temple merged 2 commits into
mainfrom
docs/mermaid-crucible-theme
Jun 15, 2026
Merged

docs: centralized crucible-themed mermaid diagrams#171
joshua-temple merged 2 commits into
mainfrom
docs/mermaid-crucible-theme

Conversation

@joshua-temple

Copy link
Copy Markdown
Collaborator

Mermaid diagrams across the docs were unthemed (generic dark), so they didn't read as crucible.

This introduces one source-of-truth palette in docs/src/mermaid-theme.mjs, wired into docs/astro.config.mjs, that themes every diagram the docs site renders (all 28 stateDiagram-v2 + flowchart blocks, plus the diagrams generated by tools/docsgen). GitHub ignores the astro config, so the 4 README diagrams carry the same palette via matching %%{init}%% directives.

Brand: molten ember/copper accents over a deep steel/charcoal base, kept in sync with crucible.css. Built on mermaid's base theme (the only one that honors themeVariables); the docs site builds clean and all mermaid blocks render.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple joshua-temple merged commit f0ed799 into main Jun 15, 2026
12 checks passed
@joshua-temple joshua-temple deleted the docs/mermaid-crucible-theme branch June 15, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant