-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.js
More file actions
85 lines (74 loc) · 1.25 KB
/
theme.js
File metadata and controls
85 lines (74 loc) · 1.25 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
import { css } from 'styled-components';
import { darken } from 'polished';
export const colors = {
babyBlue: '#34cdfd',
skyBlue: '#1d396a',
oceanBlue: '#111f35',
yellow: '#fff54f',
purple: '#130a2f',
darkGray: '#1e2124',
};
export const theme = {
colors,
font: {
family: {
heading: 'cubano, sans-serif',
bread: 'futura-pt, sans-serif',
},
size: {
heading: '5rem',
title: '3rem',
large: '2.8rem',
regular: '2.4rem',
},
weight: {
regular: '400',
bold: '700',
},
},
site: {
width: '1070px',
padding: '10px',
},
};
export const globals = css`
html {
font: 10px/10px ${theme.font.family.bread};
height: 100%;
position: relative;
}
body {
color: #fff;
font-size: ${theme.font.size.regular};
-webkit-font-smoothing: antialiased;
background-color: rgb(17, 30, 49);
}
p {
line-height: 2.8rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: ${theme.font.family.heading};
font-weight: ${theme.font.weight.regular};
}
h1 {
font-size: ${theme.font.size.heading};
}
button,
a {
cursor: pointer;
}
p a {
color: ${colors.yellow};
font-weight: ${theme.font.weight.bold};
transition: color 0.15s ease;
&:hover {
color: ${darken(0.25, colors.yellow)};
}
}
`;
export default theme;