Skip to content

Update project readme #1364

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

Merged
merged 8 commits into from
May 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clarify that tailwindCSS.classFunctions are regex patterns
  • Loading branch information
thecrypticace committed May 13, 2025
commit b95ca85d7997b838223345d08fe48b6454c6427d
5 changes: 4 additions & 1 deletion packages/vscode-tailwindcss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ The HTML attributes for which to provide class completions, hover previews, lint

Functions in which to provide completions, hover previews, linting etc. Currently, this works for both function calls and tagged template literals in JavaScript / TypeScript.

Each entry is treated as regex pattern that matches on a function name. You *cannot* match on content before or after the function name — matches are anchored to function names only.

Example:

```json
{
"tailwindCSS.classFunctions": ["tw", "clsx"]
"tailwindCSS.classFunctions": ["tw", "clsx", "tw\\.[a-z-]+"]
}
```

Expand All @@ -108,6 +110,7 @@ let classes2 = clsx([
"flex bg-red-500",
{ "text-red-500": true }
])
let element = tw.div`flex bg-red-500`
```

### `tailwindCSS.colorDecorators`
Expand Down