This repository has been archived by the owner on Feb 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
116 lines (116 loc) · 2.78 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
// Defaults: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
module.exports = {
purge: {
content: ['./**/*.tsx', './**/*.html'],
layers: ['components', 'utilities'],
mode: 'layers',
},
theme: {
extend: {
borderRadius: {
'6xl': '3rem',
},
flex: {
2: '2 2 0%',
},
fontFamily: {
sans: [
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'"Noto Sans"',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
],
serif: [
'Palatino',
'"Palatino Linotype"',
'"Palatino LT STD"',
'"Book Antiqua"',
'Georgia',
'serif',
],
},
fontSize: {
'rel-2xl': '1.5em',
'rel-2xs': '0.5em',
'rel-3xl': '1.875em',
'rel-3xs': '0.33em',
'rel-4xl': '2.25em',
'rel-4xs': '0.25em',
'rel-5xl': '3em',
'rel-6xl': '4em',
'rel-lg': '1.125em',
'rel-sm': '0.875em',
'rel-xl': '1.25em',
'rel-xs': '0.75em',
},
inset: (theme, {negative}) => ({
auto: 'auto',
...theme('spacing'),
...negative(theme('spacing')),
'1/2': '50%',
'1/3': '33.333333%',
'2/3': '66.666667%',
'1/4': '25%',
'2/4': '50%',
'3/4': '75%',
full: '100%',
'-1/2': '-50%',
'-1/3': '-33.333333%',
'-2/3': '-66.666667%',
'-1/4': '-25%',
'-2/4': '-50%',
'-3/4': '-75%',
'-full': '-100%',
}),
maxHeight: theme => ({
...theme('height'),
}),
maxWidth: theme => ({
...theme('width'),
}),
minHeight: theme => ({
...theme('height'),
}),
minWidth: theme => ({
...theme('width'),
}),
spacing: {
96: '24rem',
128: '32rem',
'rel-1': '0.25em',
'rel-2': '0.5em',
'rel-3': '0.75em',
'rel-4': '1em',
'rel-5': '1.25em',
'rel-6': '1.5em',
'rel-8': '2em',
'rel-10': '2.5em',
'rel-12': '3em',
'rel-16': '4em',
'rel-20': '5em',
'rel-24': '6em',
'rel-32': '8em',
'rel-40': '10em',
'rel-48': '12em',
'rel-56': '14em',
'rel-64': '16em',
'rel-96': '24em',
'rel-128': '32em',
},
},
},
variants: {
backgroundColor: ['responsive', 'hover', 'focus', 'active', 'odd', 'even'],
scale: ['responsive', 'hover', 'focus', 'active'],
visibility: ['responsive', 'group-hover'],
},
};