forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypography.js
More file actions
80 lines (65 loc) · 1.4 KB
/
Typography.js
File metadata and controls
80 lines (65 loc) · 1.4 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
import styled from 'styled-components';
export const H2 = styled.h2`
font-size: 2.5rem;
line-height: 57px;
font-family: ${props => props.theme.homepage.appleFont};
color: ${props => props.theme.homepage.white};
padding: 0;
margin: 0;
margin-bottom: 0.5rem;
font-weight: 500;
${props => props.theme.breakpoints.md} {
font-size: 1.8rem;
line-height: 1.2;
}
`;
export const P = styled.p`
font-weight: normal;
font-size: 1.125rem;
line-height: 1.3;
color: ${props => props.theme.homepage.white};
margin: 0;
margin-bottom: 1rem;
${props =>
props.small &&
`
font-size: 0.875rem;
`}
${props =>
props.big &&
`
font-size: 1.4375rem;
`}
${props =>
props.muted &&
`
color: ${props.theme.homepage.muted};
`}
${props =>
props.center &&
`
text-align: center;
`}
${props => props.big && 'font-size: 1.5rem'};
`;
export const H3 = styled.h3`
font-weight: bold;
font-size: 2rem;
line-height: 39px;
margin: 0;
color: ${props => props.theme.homepage.white};
${props => props.theme.breakpoints.sm} {
font-size: 1.75rem;
}
`;
export const H5 = styled.h5`
font-family: ${props => props.theme.homepage.appleFont};
font-weight: 500;
font-size: 1.4375rem;
line-height: 27px;
margin: 0;
color: ${props => props.theme.homepage.white};
${props => props.theme.breakpoints.sm} {
font-size: 1.25rem;
}
`;