Skip to content

Commit

Permalink
feat(foundation/typography): added new size of Typography, font-size:…
Browse files Browse the repository at this point in the history
… 22px; line-height: 28px;
  • Loading branch information
npbg committed Dec 9, 2021
1 parent f698ddb commit 9a9e0e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/foundation/Typography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export enum TypoAbsoluteNumber {
Typo15 = 15,
Typo16 = 16,
Typo18 = 18,
Typo22 = 22,
Typo24 = 24,
}

Expand All @@ -18,6 +19,7 @@ export enum LineHeightAbsoluteNumber {
Lh20 = 20,
Lh22 = 22,
Lh24 = 24,
Lh28 = 28,
Lh32 = 32,
}

Expand Down Expand Up @@ -58,6 +60,12 @@ const Size18 = css`
line-height: ${LineHeightAbsoluteNumber.Lh24}px;
`

const Size22 = css`
font-size: ${TypoAbsoluteNumber.Typo22}px;
line-height: ${LineHeightAbsoluteNumber.Lh28}px;
letter-spacing: -0.4px;
`

const Size24 = css`
font-size: ${TypoAbsoluteNumber.Typo24}px;
line-height: ${LineHeightAbsoluteNumber.Lh32}px;
Expand All @@ -74,5 +82,6 @@ export const Typography = {
Size15,
Size16,
Size18,
Size22,
Size24,
}

0 comments on commit 9a9e0e0

Please sign in to comment.