-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
63 lines (56 loc) · 1.51 KB
/
tailwind.config.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
// Custom spacing
const spacingMap = [ 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 32, 36, 40, 42, 44, 48, 52, 56, 60, 64, 68, 70, 72, 80, 96, 112 ]
const spacing = spacingMap.reduce((acc, item) => {
acc[item.toString()] = `${item}rem`
return acc
}, {})
// Custom width/height
const sizeMap = [ 8, 12, 14, 16, 20, 28, 32, 40, 44, 48, 62, 64 ]
const sizes = sizeMap.reduce((acc, size) => {
acc.height[size.toString()] = `${size}rem`
acc.width[size.toString()] = `${size}rem`
return acc
}, {
height: {},
width: {}
})
module.exports = {
content: [
"./src/**/*.{ts,tsx}",
],
theme: {
extend: {
spacing,
...sizes,
colors: {
'black': '#1D1617',
'white': '#FFFFFF',
'gray-1': '#7B6F72',
'gray-2': '#ADA4A5',
'gray-3': '#DDDADA',
'border-color': '#F7F8F8',
'white-30': 'rgba(255, 255, 255, 0.3)'
},
fontSize: {
// some styles are in globals.scss
'caption': ['10rem', '15rem'],
},
borderRadius: {
32: '32rem',
50: '50rem',
},
backgroundImage: {
"brand-gradient": 'linear-gradient(274.42deg, #92A3FD 0%, #9DCEFF 124.45%)',
'header-1': "url('../assets/images/backgrounds/header-bg-1.jpg')",
'header-2': "url('../assets/images/backgrounds/header-bg-2.jpg')",
},
boxShadow: {
"blue": "0 10rem 22rem rgba(149, 173, 254, 0.3)",
},
dropShadow: {
"blue": "0px 4px 6px #D2E0FF"
}
},
},
plugins: [],
}