-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththeme.js
40 lines (37 loc) · 960 Bytes
/
theme.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
// Prenton X Height
// const xHeight = 7.97px -> approx 1/2 em
const scale = (base, scalar, length = 7) =>
Array(length)
.fill(base)
.map((x, i) => x * Math.pow(scalar, i))
const desktopFontSizes = scale(1.6, 1.25).map(x => `${x}ex`)
// const mobileFontSizes = scale(1.3, 1.3).map(x => `${x}ex`)
export default {
breakpoints: ['48rem', '60rem', '80rem'],
// This makes a fibonacci sequences with 1ex, but replaces 1ex with 0.5rem so local font-size doesn't affect it.
space: [
0,
'0.25rem',
'0.5rem',
'1rem',
'1.5rem',
'2.5rem',
'4rem',
'6.5rem',
'10.5rem',
'17rem',
'27.5rem',
],
fontSizes: desktopFontSizes,
colors: {
green: '#009B72',
greenDark: '#007B5B',
greenDark2: '#004936',
greenLight: '#C5E8DF',
grays: ['#1E1E1E', '#383D41', '#555E68', '#888F96', '#BFC2C6'],
offwhite: '#F9F9F9',
blue: '#1C7ED6',
yellow: '#FFE349',
},
lineHeights: ['3ex'],
}