# languages: Add Tailwind CSS support for TypeScript \(\#38254\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/a01a2ed0e0844ded77bb386616d608220e9c33db)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: a01a2ed0e0844ded77bb386616d608220e9c33db

Requested commit: a01a2ed0e0844ded77bb386616d608220e9c33db

Commit: a01a2ed0e0844ded77bb386616d608220e9c33db

Tree: 196e320c6558d3e02f74c186c7d900d3a685b695

Author: Smit Barmase

Committer: GitHub

## Message

```
languages: Add Tailwind CSS support for TypeScript (#38254)

Closes #37028

I noticed many projects use Tailwind in plain TypeScript (.ts) files, so
it makes sense to support them out of the box, alongside .js and .tsx
files we already handle. For example, see
[supabase](https://github.com/supabase/supabase/blob/master/packages/ui/src/lib/theme/defaultTheme.ts).

Note: You’ll still need to add `"classFunctions": ["cva", "cx"],`
manually for Tailwind completions to work in `cva` type methods. This is
because you don’t want completions on every string, only in specific
methods or regex matches. This is documented.

Release Notes:

- Added out-of-the-box support for Tailwind completions in `.ts` files.
```

## Parents

- [af3bc45a2657a6a924f09d4ffc62c209b2d08600](https://git.cafe/gitcafe/zed/commit/af3bc45a2657a6a924f09d4ffc62c209b2d08600?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/a01a2ed0e0844ded77bb386616d608220e9c33db?format=markdown)
