-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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(std/fmt): add bright color variations #7241
feat(std/fmt): add bright color variations #7241
Conversation
483805a
to
acf6e06
Compare
return brightBlack(str); | ||
} | ||
|
||
export function brightBlack(str: string): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is change to gray
intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, did not want to remove any identifiers here but gray was returning 90 which is "bright black" so grey becomes an alias of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference, Wikipedia has a pretty color table https://en.wikipedia.org/wiki/ANSI_escape_code#Terminal_output_sequences
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @caspervonb
This adds bright colors variations of the colors defined in std/fmt/colors.ts.
Closes #7240