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

Add support for color visualization in inline code blocks #6

Open
Felix-CodingClimber opened this issue Dec 22, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Felix-CodingClimber
Copy link
Owner

Felix-CodingClimber commented Dec 22, 2024

Supported color models
Call out colors within a sentence by using backticks. A supported color model within backticks will display a visualization of the color.

The background color is #ffffff for light mode and #000000 for dark mode.
Screenshot of rendered GitHub Markdown showing how HEX values within backticks create small circles of color. #ffffff shows a white circle, and #000000 shows a black circle.

Here are the currently supported color models.

Color Syntax Example Output
HEX #RRGGBB #0969DA Screenshot of rendered GitHub Markdown showing how HEX value #0969DA appears with a blue circle.
RGB rgb(R,G,B) rgb(9, 105, 218) Screenshot of rendered GitHub Markdown showing how RGB value 9, 105, 218 appears with a blue circle.
HSL hsl(H,S,L) hsl(212, 92%, 45%) Screenshot of rendered GitHub Markdown showing how HSL value 212, 92%, 45% appears with a blue circle.
Note

A supported color model cannot have any leading or trailing spaces within the backticks.

@Felix-CodingClimber Felix-CodingClimber added the enhancement New feature or request label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant