rspress
rspress copied to clipboard
[Feature]: theme-default new mdx container color
What problem does this feature solve?
Currently, there are four types of container backgrounds:
among which the 'tip' and 'info' states share the same color - green.
This can sometimes lead to confusion as users may not be able to distinguish between 'tip' and 'info' states based on color alone. Therefore, I would like to propose the following changes:
- Introduce a new 'success' state that utilizes the green color. The 'success' state can be used to indicate successful operations or positive outcomes.
- Consider changing the colors for 'tip' and 'info' states to other distinct colors. This would help users to differentiate between the two states more easily.
Please considering this request, thx.
What does the proposed API look like?
::: success
a success block
:::
I think provide a success state is good idea, tip and info can be treated it as the same state.
can it use blue color for βtipβ and βinfoβ state?
sure, but it may change the current docsite which is built by rspress.
This is already implemented, see https://rspress.dev/guide/basic/use-mdx#custom-container.