-
Notifications
You must be signed in to change notification settings - Fork 1
/
Typography.js
75 lines (63 loc) · 1.53 KB
/
Typography.js
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
import styled, { createGlobalStyle } from 'styled-components'
import fontBold from '../assets/fonts/Ubuntu-Bold.ttf'
import fontBoldItalic from '../assets/fonts/Ubuntu-Bold.ttf'
import fontRegular from '../assets/fonts/Ubuntu-Regular.ttf'
import fontItalic from '../assets/fonts/Ubuntu-Italic.ttf'
import fontLight from '../assets/fonts/Ubuntu-Light.ttf'
import fontLightItalic from '../assets/fonts/Ubuntu-LightItalic.ttf'
const Typography = createGlobalStyle`
@font-face {
font-family: 'Ubuntu';
src: url(${fontBold});
font-style: normal;
font-weight: 600;
}
@font-face {
font-family: 'Ubuntu';
src: url(${fontBoldItalic});
font-style: italic;
font-weight: 600;
}
@font-face {
font-family: 'Ubuntu';
src: url(${fontRegular});
font-style: normal;
font-weight: 400;
}
@font-face {
font-family: 'Ubuntu';
src: url(${fontItalic});
font-style: italic;
font-weight: 400;
}
@font-face {
font-family: 'Ubuntu';
src: url(${fontLight});
font-style: normal;
font-weight: 200;
}
@font-face {
font-family: 'Ubuntu';
src: url(${fontLightItalic});
font-style: italic;
font-weight: 200;
}
`
const Headline = styled.h1`
font-size: 3em;
font-weight: 600;
`
const Title = styled.h2`
font-size: 1.5em;
font-weight: 600;
`
const Subtitle = styled.h3`
font-size: 1em;
font-weight: 400;
text-transofrm: uppercase;
`
const Paragraph = styled.p`
font-size: 0.8em;
font-weight: 400;
`
export { Typography, Headline, Title, Subtitle, Paragraph }