# Extend RGBA hex color parsing to support 3-value and 4-value variants \(\#3295\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8bd02fdadc3fda0bb8225287a608a4bc86aaf517

Requested commit: 8bd02fdadc3fda0bb8225287a608a4bc86aaf517

Commit: 8bd02fdadc3fda0bb8225287a608a4bc86aaf517

Tree: 83ca79e0f0fa72287fbd4682f2cab904596939c9

Author: Marshall Bowers

Committer: GitHub

## Message

```
Extend RGBA hex color parsing to support 3-value and 4-value variants (#3295)

This PR extends our support for parsing hex color codes to `Rgba` to
additionally support 3-value (`#rgb`) and 4-value (`#rgba`) formats.

See [here](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)
for more details on these hex color variants.

Release Notes:

- N/A
```

## Parents

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

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

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