# Break typography styles out of \`StyledExt\` \(\#11013\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 366d7e77281dde3e029fcb01f7fc9f3ec79543ee

Requested commit: 366d7e77281dde3e029fcb01f7fc9f3ec79543ee

Commit: 366d7e77281dde3e029fcb01f7fc9f3ec79543ee

Tree: 564ad5261ad4a9258077842a743e63043efe7417

Author: Nate Butler

Committer: GitHub

## Message

```
Break typography styles out of `StyledExt` (#11013)

- Centralizes typography-related UI styles and methods in
`styles/typography.rs`
- Breaks the typography-related styles out of `StyledExt`. This means we
add a `StyledTypography` trait – this should more or less be an
invisible change as we publish it in the prelude.
- adds the ability to easily grab the UI or Buffer font sizes
(`ui_font_size`, `buffer_font_size`) with `TextSize::UI`,
`TextSize::Editor`

Release Notes:

- N/A
```

## Parents

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

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