Rework all typography

This commit is contained in:
Paul Frazee 2023-01-18 11:15:40 -06:00
parent df4acbd683
commit 77580ab6a4
28 changed files with 355 additions and 162 deletions

View file

@ -50,9 +50,9 @@ export function Autocomplete({
key={i}
style={[pal.border, styles.item]}
onPress={() => onSelect(item.handle)}>
<Text style={pal.text}>
<Text type="md-medium" style={pal.text}>
{item.displayName || item.handle}
<Text type="body2" style={pal.textLight}>
<Text type="sm" style={pal.textLight}>
&nbsp;@{item.handle}
</Text>
</Text>

View file

@ -243,12 +243,12 @@ export const ComposePost = observer(function ComposePost({
/>
<View style={styles.replyToPost}>
<TextLink
type="h5"
type="xl-medium"
href={`/profile/${replyTo.author.handle}`}
text={replyTo.author.displayName || replyTo.author.handle}
style={[pal.text]}
/>
<Text style={pal.text} numberOfLines={6}>
<Text type="post-text" style={pal.text} numberOfLines={6}>
{replyTo.text}
</Text>
</View>
@ -408,9 +408,12 @@ const styles = StyleSheet.create({
textInput: {
flex: 1,
padding: 5,
fontSize: 18,
marginLeft: 8,
alignSelf: 'flex-start',
fontSize: 18,
letterSpacing: 0.2,
fontWeight: '400',
lineHeight: 23.4, // 1.3*16
},
replyToLayout: {
flexDirection: 'row',

View file

@ -26,7 +26,7 @@ export function ComposePrompt({
]}
onPress={onPressCompose}>
<View style={styles.textContainer}>
<Text type="h5" style={[pal.textLight, {fontWeight: 'normal'}]}>
<Text type="lg" style={[pal.textLight]}>
{text}
</Text>
</View>