๐Ÿ“ฆ hyoban / tailwindcss-classname-highlight

Highlight valid Tailwind CSS class names in your code.

โ˜… 33 stars โ‘‚ 3 forks ๐Ÿ‘ 33 watching โš–๏ธ MIT License
highlighttailwindcssvscode-extension
๐Ÿ“ฅ Clone https://github.com/hyoban/tailwindcss-classname-highlight.git
HTTPS git clone https://github.com/hyoban/tailwindcss-classname-highlight.git
SSH git clone git@github.com:hyoban/tailwindcss-classname-highlight.git
CLI gh repo clone hyoban/tailwindcss-classname-highlight
github-actions[bot] github-actions[bot] chore: release v0.6.13 414f9bc 7 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ .vscode
๐Ÿ“ res
๐Ÿ“ src
๐Ÿ“ test
๐Ÿ“„ .gitignore
๐Ÿ“„ .npmrc
๐Ÿ“„ .release-it.json
๐Ÿ“„ .vscodeignore
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ eslint.config.mjs
๐Ÿ“„ LICENSE.md
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ tsup.config.ts
๐Ÿ“„ README.md

Tailwind CSS ClassName Highlight

Visual Studio Marketplace Version

ScreenShot 2024-02-08 15 11 36

Highlight valid Tailwind CSS class names in your code, idea from UnoCSS VS Code Extension

Q & A

[!NOTE]
You may need reload the plugin after installing dependencies or changing configuration.

I don't see any highlighting?

I see highlighting but some classes should not be highlighted?

This is how Tailwind works when detecting in your code. And we have already applied the same filtering strategy as UnoCSS.

Does it support Tailwind V4?

Yes, it does.

Does it work with monorepo?

Yes. It will detect all tailwind configurations in your workspace and use different configurations for different packages.

Currently, it does not support tailwind V4.

limitation

This extension can not detect valid className that doesn't generate any CSS. Like group, prose.