-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
53 additions
and
1,441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
'@guardian/source': major | ||
--- | ||
|
||
Removes deprecated typography API. | ||
|
||
In `@guardian/source-foundations@14.2.0` (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._ |
86 changes: 0 additions & 86 deletions
86
libs/@guardian/source/src/foundations/__deprecated__/typography/api.ts
This file was deleted.
Oops, something went wrong.
256 changes: 0 additions & 256 deletions
256
libs/@guardian/source/src/foundations/__deprecated__/typography/data.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.