|
1 |
| -import{injectGlobal}from'react-emotion'; |
| 1 | +import{injectGlobal}from"@emotion/css"; |
2 | 2 |
|
3 | 3 | exportconstunit=8;
|
4 | 4 | exportconstcolors={
|
5 |
| -primary:'#220a82', |
6 |
| -secondary:'#14cbc4', |
7 |
| -accent:'#e535ab', |
8 |
| -background:'#f7f8fa', |
9 |
| -grey:'#d8d9e0', |
10 |
| -text:'#343c5a', |
11 |
| -textSecondary:'#747790' |
| 5 | +primary:"#220a82", |
| 6 | +secondary:"#14cbc4", |
| 7 | +accent:"#e535ab", |
| 8 | +background:"#f7f8fa", |
| 9 | +grey:"#d8d9e0", |
| 10 | +text:"#343c5a", |
| 11 | +textSecondary:"#747790", |
12 | 12 | };
|
13 | 13 |
|
14 |
| -exportdefault()=>injectGlobal({ |
15 |
| -[['html','body']]:{ |
16 |
| -height:'100%', |
17 |
| -}, |
18 |
| -body:{ |
19 |
| -margin:0, |
20 |
| -padding:0, |
21 |
| -fontFamily:"'Source Sans Pro', sans-serif", |
22 |
| -backgroundColor:colors.background, |
23 |
| -color:colors.text, |
24 |
| -}, |
25 |
| -'#root':{ |
26 |
| -display:'flex', |
27 |
| -flexDirection:'column', |
28 |
| -minHeight:'100%', |
29 |
| -}, |
30 |
| -'*':{ |
31 |
| -boxSizing:'border-box', |
32 |
| -}, |
33 |
| -[['h1','h2','h3','h4','h5','h6']]:{ |
34 |
| -margin:0, |
35 |
| -fontWeight:600, |
36 |
| -}, |
37 |
| -h1:{ |
38 |
| -fontSize:48, |
39 |
| -lineHeight:1, |
40 |
| -}, |
41 |
| -h2:{ |
42 |
| -fontSize:40, |
43 |
| -}, |
44 |
| -h3:{ |
45 |
| -fontSize:36, |
46 |
| -}, |
47 |
| -h5:{ |
48 |
| -fontSize:16, |
49 |
| -textTransform:'uppercase', |
50 |
| -letterSpacing:4, |
51 |
| -} |
52 |
| -}); |
| 14 | +conststyles=()=> |
| 15 | +injectGlobal({ |
| 16 | +[["html","body"]]:{ |
| 17 | +height:"100%", |
| 18 | +}, |
| 19 | +body:{ |
| 20 | +margin:0, |
| 21 | +padding:0, |
| 22 | +fontFamily:"'Source Sans Pro', sans-serif", |
| 23 | +backgroundColor:colors.background, |
| 24 | +color:colors.text, |
| 25 | +}, |
| 26 | +"#root":{ |
| 27 | +display:"flex", |
| 28 | +flexDirection:"column", |
| 29 | +minHeight:"100%", |
| 30 | +}, |
| 31 | +"*":{ |
| 32 | +boxSizing:"border-box", |
| 33 | +}, |
| 34 | +[["h1","h2","h3","h4","h5","h6"]]:{ |
| 35 | +margin:0, |
| 36 | +fontWeight:600, |
| 37 | +}, |
| 38 | +h1:{ |
| 39 | +fontSize:48, |
| 40 | +lineHeight:1, |
| 41 | +}, |
| 42 | +h2:{ |
| 43 | +fontSize:40, |
| 44 | +}, |
| 45 | +h3:{ |
| 46 | +fontSize:36, |
| 47 | +}, |
| 48 | +h5:{ |
| 49 | +fontSize:16, |
| 50 | +textTransform:"uppercase", |
| 51 | +letterSpacing:4, |
| 52 | +}, |
| 53 | +}); |
| 54 | + |
| 55 | +exportdefaultstyles; |