-
-
Notifications
You must be signed in to change notification settings - Fork 173
/
tailwind.config.js
110 lines (110 loc) · 2.23 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
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
100
101
102
103
104
105
106
107
108
109
110
module.exports = {
corePlugins: {
preflight: false,
},
content: ['./components/**/*.js', './lib/**/*.js', './pages/**/*.js'],
safelist: [
{
pattern: /grid-cols-/,
variants: ['xs', 'sm', 'md', 'lg', 'xl'],
},
{
pattern: /col-span-/,
variants: ['xs', 'sm', 'md', 'lg', 'xl'],
},
{
pattern: /col-start-/,
variants: ['xs', 'sm', 'md', 'lg', 'xl'],
},
{
pattern: /justify-self-/,
variants: ['xs', 'sm', 'md', 'lg', 'xl'],
},
{
pattern: /self-/,
variants: ['xs', 'sm', 'md', 'lg', 'xl'],
},
{
pattern: /max-w-/,
},
{
pattern: /bg-/,
},
{
pattern: /text-/,
},
],
theme: {
screens: {
xs: '480px',
sm: '768px',
md: '940px',
lg: '1200px',
xl: '1600px',
},
colors: {
inherit: 'inherit',
transparent: 'transparent',
current: 'currentColor',
black: '#000000',
white: '#FFFFFF',
pageBG: 'var(--pageBG)',
pageText: 'var(--pageText)',
},
fontSize: new Array(201)
.fill()
.map((_, i) => i)
.reduce((acc, val) => {
acc[val] = `${val / 10}rem`
return acc
}, {}),
lineHeight: new Array(161)
.fill()
.map((_, i) => i)
.reduce((acc, val) => {
acc[val] = val / 100
return acc
}, {}),
spacing: new Array(351)
.fill()
.map((_, i) => i)
.reduce((acc, val) => {
acc[val] = `${val / 10}rem`
return acc
}, {}),
opacity: new Array(21)
.fill()
.map((_, i) => i * 5)
.reduce((acc, val) => {
acc[val] = `${val / 100}`
return acc
}, {}),
zIndex: new Array(11)
.fill()
.map((_, i) => i)
.reduce((acc, val) => {
acc[val] = val
return acc
}, {}),
extend: {
fontFamily: {
inherit: 'inherit',
},
maxWidth: {
xs: '20rem',
sm: '30rem',
md: '40rem',
lg: '50rem',
xl: '60rem',
'2xl': '70rem',
'3xl': '80rem',
'4xl': '90rem',
'5xl': '100rem',
'6xl': '115rem',
'7xl': '130rem',
prose: '100ch',
},
},
},
plugins: [],
}