# Add Tailwind CSS support for Gleam \(\#43968\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 19aba43f3ec83c7d897dc82a58af655767fd3305

Requested commit: 19aba43f3ec83c7d897dc82a58af655767fd3305

Commit: 19aba43f3ec83c7d897dc82a58af655767fd3305

Tree: d528da210df6aca62917a5c84e66305d82688ef3

Author: Arjun Bajaj

Committer: GitHub

## Message

````
Add Tailwind CSS support for Gleam (#43968)

Currently, Zed does not provide suggestions and validations for Gleam,
as it is only available for languages specified in `tailwind.rs`. This
pull-request adds Gleam to that list of languages.

After this, if Tailwind is configured to work with Gleam, suggestions
and validation appear correctly.

Even after this change, Tailwind will not be able to detect and give
suggestions in Gleam directly. Below is the config required for Tailwind
classes to be detected in all Gleam strings.


<details><summary>Zed Config for Tailwind detection in Gleam</summary>
<p>

```
{
  "languages": {
    "Gleam": {
      "language_servers": [
        "gleam",
        "tailwindcss-language-server"
      ]
    }
  },
  "lsp": {
    "tailwindcss-language-server": {
      "settings": {
        "experimental": {
          "classRegex": [
            "\"([^\"]*)\""
          ]
        }
      }
    }
  }
}
```

The `classRegex` will match all Gleam strings, making it work seamlessly
with Lustre templates and plain string literals.

</p>
</details> 

Release Notes:

- Added support for Tailwind suggestions and validations for the [Gleam
programming language](https://gleam.run/).
````

## Parents

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

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