You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: mermaid diagrams don't respect dark mode theme #127
`src/components/mdx/mermaid.tsx` initializes mermaid with `theme: 'default'` (line 19), which always renders light-mode diagrams regardless of the site's current theme. In dark mode, diagrams appear as bright white boxes.
Suggested Fix
Read the current theme from the document (`document.documentElement.dataset.theme` or the Apsara ThemeProvider context)
Initialize mermaid with `theme: 'dark'` when in dark mode
Re-render diagrams on theme change (listen for `data-theme` attribute mutations)
Activity