Skip to content

Commit

Permalink
fix: correct android font (#3184)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak authored May 24, 2022
1 parent e5dbcb6 commit b833a69
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
20 changes: 10 additions & 10 deletions example/src/Examples/TextExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,6 @@ const TextExample = () => {
Title Small
</Text>

<Text style={styles.text} variant="bodyLarge">
Body Large
</Text>
<Text style={styles.text} variant="bodyMedium">
Body Medium
</Text>
<Text style={styles.text} variant="bodySmall">
Body Small
</Text>

<Text style={styles.text} variant="labelLarge">
Label Large
</Text>
Expand All @@ -77,6 +67,16 @@ const TextExample = () => {
<Text style={styles.text} variant="labelSmall">
Label Small
</Text>

<Text style={styles.text} variant="bodyLarge">
Body Large
</Text>
<Text style={styles.text} variant="bodyMedium">
Body Medium
</Text>
<Text style={styles.text} variant="bodySmall">
Body Small
</Text>
</>
)}
</View>
Expand Down
3 changes: 3 additions & 0 deletions src/styles/themes/v3/tokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,19 +182,22 @@ export const typescale = {
bodyLarge: {
...mediumType,
weight: '400',
font: ref.typeface.brandRegular,
lineHeight: 24,
size: 16,
},
bodyMedium: {
...mediumType,
weight: '400',
font: ref.typeface.brandRegular,
tracking: 0.25,
lineHeight: 20,
size: 14,
},
bodySmall: {
...mediumType,
weight: '400',
font: ref.typeface.brandRegular,
tracking: 0.4,
lineHeight: 16,
size: 12,
Expand Down

0 comments on commit b833a69

Please sign in to comment.