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

feat(theme): containers: add the success custom block #4228

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lifehackerhansol
Copy link

Description

This adds a custom block with the success keyword, which is a green container.

The colours for this container already exist in vars.css (--vp-c-success*), which, before this commit, is completely unused outside of generating a diff.

For example, this can be used for messages such as:

::: success

You have completed the walkthrough!

:::

Linked Issues

N/A

Additional Context

That success text in Chinese may not be accurate; I transliterated the meaning of success from Korean to Standard Mandarin. It should probably be checked.


Tip

The author of this PR can publish a preview release by commenting /publish below.

This adds a custom block with the `success` keyword, which is a green
container.

The colours for this container already exist in vars.css
(--vp-c-success*), which, before this commit, is completely unused
outside of generating a diff.

For example, this can be used for messages such as:
```
::: success

You have completed the walkthrough!

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

Successfully merging this pull request may close these issues.

1 participant