tailwindcss-intellisense icon indicating copy to clipboard operation
tailwindcss-intellisense copied to clipboard

Add color format options (rgb, hex)

Open flostellbrink opened this issue 2 years ago • 13 comments

Formats are displayed in completions and as comments in hovered css. This helps with comparing code to designs.

This is basically an up to date version of #416 and fixes #418.

Makes it trivial to add more color formats going forward if people need them.

Settings:

image

Completions:

image

Hovers:

image

flostellbrink avatar Jul 20 '23 12:07 flostellbrink

I would absolutely LOVE this!

joaoprocopio avatar Jul 23 '23 15:07 joaoprocopio

Any feedback would be much appreciated @bradlc!

flostellbrink avatar Aug 06 '23 10:08 flostellbrink

Any update? Bump. This is really needed feature.

xsjcTony avatar Aug 18 '23 09:08 xsjcTony

image I don't understand why this feature is shown here (README) even though it doesn't exist. Or is there a hidden configuration option?

AlexF090 avatar Sep 11 '23 06:09 AlexF090

I took the latest version (0.10.0) of this extension, applied this PR, and published it as a new vscode extension. I don't plan on maintaining it long term but my team couldn't wait any longer for this feature. Thought I'd post it here in case it helps anyone else.

https://marketplace.visualstudio.com/items?itemName=numso.vscode-tailwindcss-with-hex-colors

(aside: wouldn't it be amazing if you could use https://www.npmjs.com/package/patch-package on vscode extensions??)

numso avatar Sep 23 '23 23:09 numso

mark

UNDERCOVERj avatar Sep 25 '23 13:09 UNDERCOVERj

Very helpful

Molunerfinn avatar Oct 11 '23 09:10 Molunerfinn

@thecrypticace Hope to merge this PR, it's very helpful

Molunerfinn avatar Nov 01 '23 02:11 Molunerfinn

When will this be merged?

GustavoSmith avatar Jan 02 '24 20:01 GustavoSmith

+1, we need this please!!

federicocappellotto97 avatar Jan 09 '24 15:01 federicocappellotto97

Someone merge the PR, please

saymondamasio avatar Jan 17 '24 14:01 saymondamasio

@flostellbrink resolve the conflicts please 🙏 UP!

gustavo-mvp avatar Jan 19 '24 04:01 gustavo-mvp

Unfortunately a rebase is out of the questions at the moment. I need to test the changes, and master has been broken for three weeks straight now.

Either way I have no reason to believe anyone at tailwind actually wants this. Only leaving the PR open to avoid duplicate work.

flostellbrink avatar Jan 28 '24 22:01 flostellbrink

Hey, I'm going to be adding support for this but in a slightly different form. I think we can get rid of the color format option as well as simplify some things.

We're working on v4 right now but I expect I'll pick this back up possibly next week unless I happen to get to it sooner.

thecrypticace avatar Feb 26 '24 13:02 thecrypticace

This has been merged and should be available in the pre-release build shortly. Thanks!

thecrypticace avatar Mar 11 '24 17:03 thecrypticace