-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
executable file
·71 lines (71 loc) · 1.6 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
64
65
66
67
68
69
70
71
const dark = {}
const light = {}
const pxHelpers = {}
const boxShadow = {}
const pallete = {
yellow: "#FFDE00",
grey: "#F5F5F5"
}
;[...Array(18)].map((_, i) => {
// * dark-05 ~ dark-10 ~ dark-95
const amount = (0.05 + i * 0.05).toFixed(2)
const colorName = amount.split(".")[1]
dark[colorName] = `rgba(0,0,0,${amount})`
light[colorName] = `rgba(255,255,255,${amount})`
if (i < 9) {
// * w-1px h-1px ~ w-9px h-9px | dark-01 ~ dark-02 ~ dark-09
const n = i + 1
const pxName = `${n}px`
dark[`0${n}`] = `rgba(0,0,0,0.0${n})`
light[`0${n}`] = `rgba(255,255,255,0.0${n})`
pxHelpers[pxName] = pxName
}
})
Object.keys(pallete).map((color) => {
const value = pallete[color]
boxShadow[color] = `0 0 0 3px ${value}33`
})
module.exports = {
purge: [
"./pages/**/*.js",
"./pages/*.js",
"./components/**/*.js",
"./components/**/*.mdx"
],
theme: {
extend: {
width: pxHelpers,
height: pxHelpers,
zIndex: {
1: 1
},
boxShadow,
fontFamily: {
poppins: "'Poppins', sans-serif"
}
},
colors: {
white: "#fff",
black: "#000",
dark,
light,
transparent: "transparent",
...pallete
},
fontWeight: {
normal: 400,
bold: 600,
black: 900
}
},
variants: {
backgroundColor: ["responsive", "hover", "focus", "active", "group-hover"],
borderColor: ["responsive", "hover", "focus", "active", "group-hover"],
boxShadow: ["hover", "focus", "active"]
},
plugins: [],
futures: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true
}
}