Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why I can't see the color preview box in VS Code?

I have been using Tailwind CSS in VS Code. But suddenly I did notice I can't see the color preview.. A screenshot

I opened the laptop and started working again in the project.

I disabled all the extensions and reenabled again. . I restarted the laptop. In the input.css file when I switch the language mode to CSS . I can see it. But when I switch it back to postCSS , I can't see it again .

(

@tailwind base; 
@tailwind components;
@tailwind utilities;

) throws an unknown error.

I am expecting to see the color preview boxes on the left side again


2 Answers

Try enabling this setting:

Editor: Default Color Decorators    // set to true

See more at Visual studio code color picker

like image 165
Mark Avatar answered Oct 14 '25 10:10

Mark


You need to change the "Editor: Default Color Decorators" to "always".

enter image description here

like image 27
maximiliem Avatar answered Oct 14 '25 10:10

maximiliem