-
-
Notifications
You must be signed in to change notification settings - Fork 402
Support CSS colors #237
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
base: master
Are you sure you want to change the base?
Support CSS colors #237
Conversation
Oh and PS now GitHub renders CSS colors in comments, lol |
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.
This supports more than just named CSS colors, it'll also work for e.g. HSL colors hsl(10deg 50% 50%)
, short-form hex colors #f00
, etc.
That would be a great new feature. I just had to write my own rgb to hex converter to be able to use the css color variables of my project's theme. |
Co-authored-by: lionel-rowe <lionel.rowe@gmail.com>
Co-authored-by: lionel-rowe <lionel.rowe@gmail.com>
@lionel-rowe thank you, good implementation! |
This adds support for CSS colors like
red
in addition to the existing supported#FF0000
.