rstackjs / rstackjs/rspress-plugins

Optimize Mermaid chart rendering style, propose adopting beautiful-mermaid to replace the existing plugin

Open
#23 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
TypeScript
Stars
13
Forks
6
Avg merge
14h 16m
Merged PRs (30d)
4

Description

Problem Description

The Mermaid chart rendering plugin currently integrated into the project yields charts with subpar visual presentation—including monotonous color palettes, messy font typography, rough line styles, and cramped, unaesthetic layouts. This not only conflicts with the project’s overall UI design language but also diminishes the readability and professionalism of the charts.

Scope of Impact

  1. Degraded reading experience for all Mermaid-based charts (flowcharts, sequence diagrams, architecture diagrams, etc.) embedded in documents/pages;
  2. Reduced visual polish of externally facing documents/product pages, harming the project’s brand professionalism;
  3. Increased cognitive load for team collaboration due to the inefficient visual presentation of chart content.

Proposed Solution

Replace the existing Mermaid rendering plugin with beautiful-mermaid, which offers the following core advantages:

  • Pre-built aesthetic color schemes and typography templates tailored to different use cases;
  • Full compatibility with native Mermaid syntax (no need to modify existing chart code);
  • Support for custom style extensions to align with the project’s unique UI style;
  • Lightweight integration with zero additional performance overhead.

Expected Outcomes

  1. Significant improvement in the visual quality of Mermaid charts, aligning with the project’s overall design system;
  2. Enhanced chart readability, lowering the cognitive cost for both internal team collaboration and end-user reading;
  3. Low-cost integration with no need to refactor existing code logic.

Additional References

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing Mermaid rendering plugin and its integration points, then review beautiful-mermaid's compatibility and styling options. Done means Mermaid charts render through the proposed replacement, preserve existing Mermaid syntax, and match the project's visual style without breaking document pages.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.