forked from ciampo/offbeat-appetite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.shared.js
99 lines (97 loc) · 1.94 KB
/
tailwind.shared.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
94
95
96
97
98
99
// Repeating a few variables (even if they are the same as the default config)
// because it saves a huge amount of space in the front end code
// compared to importing the whole config + config parser
const screens = {
'3xsm': '360px',
'2xsm': '400px',
// Potentially change to 512?
xsm: '480px',
sm: '640px',
md: '840px',
lg: '1024px',
xl: '1280px',
};
const sharedTheme = {
screens,
spacing: {
// '0': '0',
// '1': '0.25rem',
'1half': '0.375rem',
// '2': '0.5rem',
// '3': '0.75rem',
// '4': '1rem',
// '5': '1.25rem',
6: '1.5rem',
7: '1.75rem',
8: '2rem',
// '10': '2.5rem',
12: '3rem',
16: '4rem',
20: '5rem',
// '24': '6rem',
// '32': '8rem',
// '40': '10rem',
// '48': '12rem',
// '56': '14rem',
// '64': '16rem',
72: '20rem',
80: '24rem',
88: '28rem',
96: '32rem',
// px: '1px',
},
maxWidth: {
// none: 'none',
xs: '20rem',
// sm: '24rem',
md: '28rem',
lg: '32rem',
xl: '38rem',
'2xl': '42rem',
'3xl': '48rem',
// '4xl': '56rem',
// '5xl': '64rem',
'6xl': '80rem',
// full: '100%',
'screen-xsm': screens.xsm,
'screen-sm': screens.sm,
'screen-md': screens.md,
'screen-lg': screens.lg,
'screen-xl': screens.xl,
},
colors: {
olive: {
darker: '#546050',
dark: '#6D7E67',
medium: '#E3E7DA',
light: '#F3F5F0',
lighter: '#FDFDFC',
},
pink: {
darker: '#B15D5D',
dark: '#BE6A6A',
medium: '#CE8A7E',
light: '#FBF5F3',
lighter: '#FEFBFA',
},
gray: {
darker: '#171717',
dark: '#4E4E4E',
medium: '#ccc',
light: '#f4f4f4',
lighter: '#f8f8f8',
white: '#fff',
},
share: {
mail: '#444',
facebook: '#3b5998',
twitter: '#55acee',
whatsapp: '#25d366',
pocket: '#ef3f56',
pinterest: '#bd081c',
},
},
};
module.exports = {
sharedTheme,
};