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

Inline color Improvements #2223

Merged
merged 3 commits into from
Mar 10, 2020

Conversation

RunDevelopment
Copy link
Member

This adds a background image for color previews, so transparent colors can be identified as such.

image


This also adds the transparent color to CSS Extras. No idea why it wasn't included. I vaguely remember that transparent isn't technically a color (even though it behaves like one), but don't quote me on that.

I also fixed the parseHexColor function which didn't group channels correctly. No idea why I thought the regex could work. Well, the function does now.

@RunDevelopment RunDevelopment merged commit 8d2c5a3 into PrismJS:master Mar 10, 2020
@RunDevelopment RunDevelopment deleted the inline-color-update branch March 10, 2020 14:11
quentinvernot pushed a commit to TankerHQ/prismjs that referenced this pull request Sep 11, 2020
…ments (PrismJS#2223)

- This changes the inline preview to include a background image, so (semi-)transparent colors can be identified as such instead of blending with the background color of the current theme.
- The black outline is now more transparent to better blend in with light themes.
- The `transparent` color was added to CSS Extras.
- This fixes the `parseHexColor` function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant