-
Notifications
You must be signed in to change notification settings - Fork 5
/
tailwind.config.js
132 lines (132 loc) · 3.65 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
module.exports = {
mode: 'jit',
purge: {
mode: 'all',
preserveHtmlElements: true,
content: [
'./templates/**/*.njk',
'./scripts/**/*.js',
'./.eleventy.js',
'./lib/serializers.js',
],
},
darkMode: false,
theme: {
fontFamily: {
sans: 'sans-serif',
serif: 'serif',
mono: 'monospace',
},
screens: {
'2xs': '375px',
xs: '400px',
s: '650px',
m: '768px',
l: '1024px',
xl: '1280px',
'2xl': '1536px',
},
colors: {
white: '#FFF',
black: '#000',
current: 'currentColor',
transparent: 'transparent',
},
fontSize: {
...new Array(201)
.fill()
.map((_, i) => i)
.reduce((acc, val) => {
acc[val] = `${val / 10}rem`
return acc
}, {}),
},
lineHeight: {
...new Array(61)
.fill()
.map((_, i) => i)
.reduce((acc, val) => {
acc[100 + val] = (100 + val) / 100
return acc
}, {}),
},
spacing: {
...new Array(51)
.fill()
.map((_, i) => i)
.reduce((acc, val) => {
acc[val] = `${val / 10}rem`
return acc
}, {}),
...new Array(50)
.fill()
.map((_, i) => (11 + i) * 5)
.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
}, {}),
},
transitionTimingFunction: {
DEFAULT: 'cubic-bezier(0.23, 1, 0.32, 1)',
'in-quad': 'cubic-bezier(0.55, 0.085, 0.68, 0.53)',
'in-cubic': 'cubic-bezier(0.55, 0.055, 0.675, 0.19)',
'in-quart': 'cubic-bezier(0.895, 0.03, 0.685, 0.22)',
'in-quint': 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
'in-sine': 'cubic-bezier(0.47, 0, 0.745, 0.715)',
'in-expo': 'cubic-bezier(0.95, 0.05, 0.795, 0.035)',
'in-circ': 'cubic-bezier(0.6, 0.04, 0.98, 0.335)',
'in-back': 'cubic-bezier(0.6, -0.28, 0.735, 0.045)',
'out-quad': 'cubic-bezier(0.25, 0.46, 0.45, 0.94)',
'out-cubic': 'cubic-bezier(0.215, 0.61, 0.355, 1)',
'out-quart': 'cubic-bezier(0.165, 0.84, 0.44, 1)',
'out-quint': 'cubic-bezier(0.23, 1, 0.32, 1)',
'out-sine': 'cubic-bezier(0.39, 0.575, 0.565, 1)',
'out-expo': 'cubic-bezier(0.19, 1, 0.22, 1)',
'out-circ': 'cubic-bezier(0.075, 0.82, 0.165, 1)',
'out-back': 'cubic-bezier(0.175, 0.885, 0.32, 1.275)',
'in-out-quad': 'cubic-bezier(0.455, 0.03, 0.515, 0.955)',
'in-out-cubic': 'cubic-bezier(0.645, 0.045, 0.355, 1)',
'in-out-quart': 'cubic-bezier(0.77, 0, 0.175, 1)',
'in-out-quint': 'cubic-bezier(0.86, 0, 0.07, 1)',
'in-out-sine': 'cubic-bezier(0.445, 0.05, 0.55, 0.95)',
'in-out-expo': 'cubic-bezier(1, 0, 0, 1)',
'in-out-circ': 'cubic-bezier(0.785, 0.135, 0.15, 0.86)',
'in-out-back': 'cubic-bezier(0.68, -0.55, 0.265, 1.55)',
},
stroke: (theme) => ({
white: theme('colors.white'),
black: theme('colors.black'),
current: theme('colors.current'),
transparent: theme('colors.transparent'),
}),
fill: (theme) => ({
white: theme('colors.white'),
black: theme('colors.black'),
current: theme('colors.current'),
transparent: theme('colors.transparent'),
}),
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}