-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyles.ts
More file actions
125 lines (123 loc) · 2.21 KB
/
styles.ts
File metadata and controls
125 lines (123 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import { Platform } from 'react-native';
import type { StyleMap } from '../types/style';
export const styles: StyleMap = {
root: {},
heading1: {
fontSize: 48,
fontWeight: 'bold',
},
heading2: {
fontSize: 36,
fontWeight: 'semibold',
},
heading3: {
fontSize: 32,
fontWeight: 'semibold',
},
heading4: {
fontSize: 28,
fontWeight: 'semibold',
},
heading5: {
fontSize: 24,
fontWeight: 'semibold',
},
heading6: {
fontSize: 20,
fontWeight: 'semibold',
},
paragraph: {
marginVertical: 8,
flexWrap: 'wrap',
flexDirection: 'row',
alignItems: 'flex-start',
justifyContent: 'flex-start',
width: '100%',
},
strong: {
fontWeight: 'bold',
},
emphasis: {
fontStyle: 'italic',
},
text: {},
thematicBreak: {
flex: 1,
height: 1,
backgroundColor: '#0000006c',
marginVertical: 8,
},
blockquote: {
backgroundColor: '#f5f5f5',
borderColor: '#3840ba',
borderLeftWidth: 4,
paddingHorizontal: 5,
marginVertical: 8,
},
code: {
backgroundColor: '#f0f0f0',
padding: 8,
// borderRadius: 4,
// fontSize: 16,
color: '#1c1c1c',
...Platform.select({
ios: {
fontFamily: 'Courier',
},
android: {
fontFamily: 'monospace',
},
}),
},
inlineCode: {
...Platform.select({
ios: {
fontFamily: 'Courier',
},
android: {
fontFamily: 'monospace',
},
}),
backgroundColor: '#f0f0f0',
},
link: {
transform: [
{
translateY: 2, // Adjust vertical alignment for links
},
],
fontSize: 16,
color: '#1e90ff',
textDecorationLine: 'underline',
},
image: {
width: '100%',
height: 300,
aspectRatio: 1,
resizeMode: 'cover',
// borderRadius: 8,
// marginVertical: 8,
backgroundColor: '#f0f0f0',
overflow: 'hidden',
},
list: {
flex: 1,
},
listItem: {
flexDirection: 'row',
alignItems: 'baseline',
justifyContent: 'flex-start',
gap: 8,
},
listBullet: {
fontSize: 16,
fontWeight: 'black',
},
listItemContent: {
flex: 1,
flexWrap: 'wrap',
},
delete: {
textDecorationLine: 'line-through',
},
};