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

Accessibility: Render CLI's kind output in a specific color instead of ANSI color #554

Merged
merged 4 commits into from
Oct 1, 2023

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Sep 30, 2023

When used ANSI color to both of the text color and background, the content may be inaccessible color depending on the terminal theme choosed by the user. If the terminal was supported 256 colors and more, Marp CLI tries to use a specific color instead of ANSI colors. If not, fallback to simple color inverse ESC[48m.

Fix #552.

If the terminal was supported 256 colors and more, Marp CLI tries to use
a specific color instead of ANSI colors. If not, fallback to simple
color inverse `ESC[48m`.
@yhatt yhatt changed the title Render CLI output kind in a specific color instead of ANSI color Accessibility: Render CLI's kind output in a specific color instead of ANSI color Oct 1, 2023
@yhatt yhatt merged commit d54fd27 into main Oct 1, 2023
1 check passed
@yhatt yhatt deleted the color-a11y-cli-kind-output branch October 1, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The coloring of CLI output is not accessible
1 participant