Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: theme-default new mdx container color #818

Open
sumy7 opened this issue Mar 19, 2024 · 3 comments
Open

[Feature]: theme-default new mdx container color #818

sumy7 opened this issue Mar 19, 2024 · 3 comments

Comments

@sumy7
Copy link
Contributor

sumy7 commented Mar 19, 2024

What problem does this feature solve?

Currently, there are four types of container backgrounds:
image
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:

  1. Introduce a new 'success' state that utilizes the green color. The 'success' state can be used to indicate successful operations or positive outcomes.
  2. 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
:::
@10Derozan
Copy link
Member

I think provide a success state is good idea, tip and info can be treated it as the same state.

@sumy7
Copy link
Contributor Author

sumy7 commented Mar 19, 2024

can it use blue color for “tip” and “info” state?

@10Derozan
Copy link
Member

sure, but it may change the current docsite which is built by rspress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants