Skip to content

Commit

Permalink
remove depreacted typography API
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs committed Aug 9, 2024
1 parent 447e6b6 commit 238dfd3
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 1,441 deletions.
53 changes: 53 additions & 0 deletions .changeset/fluffy-peaches-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
'@guardian/source': major
---

Removes deprecated typography API.

In `@guardian/[email protected]` (2024-04-07), we added new [web typography presets](https://guardian.github.io/storybooks/?path=/story/source_foundations-typography--presets) to standardise on the typographic language used by Design, and deprecated the old typography API.

This release removes that old API, in order to simplify the ongoing maintenance of the library.

The following exports have been removed:

- `titlepiece`
- `headline`
- `body`
- `textSans`
- `titlepieceSizes`
- `headlineSizes`
- `bodySizes`
- `textSansSizes`
- `remTitlepieceSizes`
- `remHeadlineSizes`
- `remBodySizes`
- `remTextSansSizes`
- `fonts`
- `fontWeights`
- `lineHeights`
- `bodyObjectStyles`
- `headlineObjectStyles`
- `textSansObjectStyles`
- `titlepieceObjectStyles`

along with the following `type` exports:

- `ScaleUnit`
- `Category`
- `LineHeight`
- `FontWeight`
- `FontStyle`
- `FontWeightDefinition`
- `Option`
- `TypographySizes`
- `TypographyStyles`
- `TitlepieceSizes`
- `HeadlineSizes`
- `BodySizes`
- `TextSansSizes`
- `Fs`
- `FontScaleFunction`
- `FontScaleFunctionStr`
- `FontScaleArgs`

_If you cannot map existing uses of the old API to the new presets, please check which preset you should use with a designer._

This file was deleted.

This file was deleted.

Loading

0 comments on commit 238dfd3

Please sign in to comment.