Visual Studio Code extension that adds inline color decorators for TailwindCSS hex colors inside .svelte files. I made this because the popular Tailwind CSS IntelliSense extension shows color decorators but are not editable in .svelte files for some reason.
text-[#f87171]bg-[#1d4ed8]border-[#10b981].svelte files.Make sure you have vsce installed:
npm install -g @vscode/vsce
Package the extension:
vsce package
Install the resulting .vsix file in VS Code:
Ctrl+Shift+P)Extensions: Install from VSIX....vsix fileThis extension currently supports Tailwind color utility classes that use custom hex values, such as:
<div class="bg-[#1d4ed8] text-[#f87171ba] border-[#abc]">Colorful!</div>
bg-red-500