forked from opencollective/opencollective-emails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opencollective.stylesheet.js
93 lines (79 loc) · 1.7 KB
/
opencollective.stylesheet.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
const fontFamily = '"Helvetica Neue", Helvetica, Arial, sans-serif';
const fontSize = '12px';
const headlineFontSize = '20px';
const colors = {
white: '#ffffff',
black: '#000000',
darkGrey: '#4B4E52',
darkerGrey: '#2A2C2E',
lightGrey: '#969BA3',
orange: '#ffaa33',
blue: '#1f87ff',
red: '#ff0044',
};
const stylesheet = {
fontFamily,
fontSize,
headlineFontSize,
colors,
maxWidth: '460',
textWidth: '408',
imageWidth: '360', // 400 (textWidth) - 20 (paddingLeft) - 20 (paddingRight)
borderRadius: '20px',
backgroundColor: '#FFF',
};
stylesheet.headline1 = {
fontFamily: fontFamily,
color: colors.darkerGrey,
fontSize: headlineFontSize,
lineHeight: '24px',
fontWeight: 800,
letterSpacing: '-0.2px',
textAlign: 'center',
};
stylesheet.subheadline1 = {
fontFamily: fontFamily,
color: colors.lightGrey,
fontSize: '14px',
lineHeight: '24px',
fontWeight: 500,
letterSpacing: '-0.2px',
textAlign: 'center',
};
stylesheet.headline2 = {
fontFamily: fontFamily,
color: colors.darkerGrey,
fontSize: '16px',
lineHeight: '24px',
fontWeight: 400,
textAlign: 'center',
};
stylesheet.headline3 = {
fontFamily: fontFamily,
color: colors.darkGrey,
fontSize: '14px',
fontWeight: 700,
lineHeight: '18px',
letterSpacing: '-0.2px',
};
stylesheet.copy = {
fontFamily: fontFamily,
color: colors.darkGrey,
fontSize: '16px',
lineHeight: '24px',
fontWeight: 400,
letterSpacing: '0.2px',
};
stylesheet.link = {
color: colors.blue,
};
stylesheet.button = {
fontFamily: fontFamily,
color: colors.white,
backgroundColor: colors.blue,
fontSize: '14px',
lineHeight: '24px',
fontWeight: 500,
letterSpacing: '-0.2px',
};
module.exports = stylesheet;