-
Notifications
You must be signed in to change notification settings - Fork 195
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
Intellisense not showing colour preview swatches #113
Comments
Hey @mjbates7. This is because of the new opacity modifiers in Tailwind 1.4: /* Before */
.bg-red-500 {
background-color: #f56565
}
/* Now */
.bg-red-500 {
--bg-opacity: 1;
background-color: #f56565;
background-color: rgba(245, 101, 101, var(--bg-opacity));
} Currently the logic for plucking the color out of the styles is roughly "is there a single CSS property and is the value a color?" I'm in the process of improving the logic which will fix this. I'll hopefully release a new alpha version this weekend with this included. |
Great - thanks for the quick response and clearing that up. I did wonder if it was 1.4 that had changed as I had just tried a 1.2/1.3 and it worked fine |
Fixed in |
Installed |
thanks! works like a charm 👍 |
How do I update to the new |
You can access it in the releases page: How to install downloaded extension manually: |
Hi I thought it was a VSCode bug, but glad I could solve it here https://stackoverflow.com/questions/62158642/problem-to-see-the-color-preview-when-autocomplete |
|
Hello,
Is there any reason why I wouldn't be seeing the colour preview swatches in the intellisense that pops up? I have all the class names available, but the colour swatches aren't appearing?
Transparent is the only one showing.
version info
tailwind 1.4.0
extension 0.2.0
vscode:
Version: 1.45.0-insider (user setup)
Date: 2020-05-01T05:22:54.431Z
Electron: 7.2.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363
I've reinstalled the plugin too and restarted vscode.
Many thanks
The text was updated successfully, but these errors were encountered: