# Add the \`color\` crate \(\#4063\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 19c488b378770af2974a1624788b708532417383

Requested commit: 19c488b378770af2974a1624788b708532417383

Commit: 19c488b378770af2974a1624788b708532417383

Tree: dbdfde4679530ad78889f221facbba2f95dedd13

Author: Nate Butler

Committer: GitHub

## Message

```
Add the `color` crate (#4063)

This PR adds the `color` crate, which will be the home of a number of
color-related utilities, and also acts as an interface between
[`palette`](https://crates.io/crates/palette) and the way `gpui` colors
work.

The goal of this crate is to centralize color utilities like mixing and
blending, building color ramps and sets of colors for state and more.

## Todo:

- [x] hex -> Color
- [x] Color mixing
- [x] Color blending using blend modes (overlay, multiply, etc)
- [ ] ~~Build color ramp from color~~
- [x] Build state set from color
- [ ] ~~Update Theme to use the color crate~~

Release Notes:

- None (Internal changes: Adds the `color` crate for working with
colors.)
```

## Parents

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

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

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