-
Notifications
You must be signed in to change notification settings - Fork 3.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
Show inline previews for rgb hex color strings #4678
Comments
This would be amazing. Is it in the roadmap? |
That'd be amazing to have. I really use this feature when working with Tailwind |
Really important feature for me |
This is a very important feature for FE devs as we tend to work with colors. Would appreciate if this is added 👌 |
Was just looking for this myself! +1 on this! |
Going to unify any "color preview" issues and point them at this issue. There is precedent with inlay hints, but I think this is non-trivial to add due to needing to dive into the editor paint/render code. Happy to support the final design of what previews look like if someone builds the feature and opens a PR. |
Looking forward to this one. It's one of the very useful features I had in VSCode that I'm missing on Zed. |
would also be very nice for it to be a per-language togglable feature. |
Any update on this feature? Would be very nice to have this feature during FE development. |
Would be a very nice feature! |
This comment was marked as spam.
This comment was marked as spam.
There are quite a few people watching this topic. Please don't sent out emails/notifications to everyone just to say "me too!" when a simple thumbs-up on the top post would be sufficient. |
Suggestion: I think these colors should show up in CSS and CSS-like languages, but not only that, things like hex colors or 0x notations of colors should show up in basically any language as well. You might want to have it be a setting as well! Someone mentioned something similar here already. Also, a thin underline might work better with the style of zed, but that means it's harder to figure out what that color actually is at times. |
I would absolutely love this feature! |
Please just like the issue, instead of commenting on it. Comment ONLY if you have something to add to it. A few people not following basic common sense like this makes it worse for literally everyone else who wants to add to it. |
Fwiw here is a PR open for the Helix editor that adds color swatches (helix-editor/helix#12308) by supporting the |
Check for existing issues
Describe the feature
Show a color preview for languages like CSS and Tailwind.
If applicable, add mockups / screenshots to help present your vision of the feature
VSCode has this, which it calls "color decorators":
I use a color highlight extension which enables different styles:
The text was updated successfully, but these errors were encountered: