# Allow individual corner radii on containers, images, and drop shadows \(\#2841\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5ce7ccac3264809c77404494108aeb604a824b45

Requested commit: 5ce7ccac3264809c77404494108aeb604a824b45

Commit: 5ce7ccac3264809c77404494108aeb604a824b45

Tree: c0a01fa4f14e44db44ee4a0b49ede22ff09cb1f5

Author: Mikayla Maki

Committer: GitHub

## Message

````
Allow individual corner radii on containers, images, and drop shadows (#2841)

Here's an example in `crates/gpui/examples/corner_radii.rs`

![CleanShot 2023-08-12 at 11 06
09@2x](https://github.com/zed-industries/zed/assets/1789/1b5992ac-f7ef-45d8-b8c2-f0e677b07dd9)

@iamnbutler, in the themes, anywhere we have a container style can now
take either a `corner_radius` or a `corner_radii` field, both of these
fields can either have 1 number (for all 4 corners) or a an object like:

```
{
  top_left?: number,
  top_right?: number,
  bottom_left?: number, 
  bottom_right?:number 
} 
```

Fields that are not included in this second representation default to 0
corner radius.
````

## Parents

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

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

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