-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
140 lines (135 loc) · 3.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
module.exports = {
purge: ['./src/**/*.html', './src/**/*.vue', './src/**/*.jsx'],
theme: {
container : {
'xl' : 1024,
},
extend: {
backgroundColor: {
'dark-purple': '#272039',
},
screens: {
// Adding one pixel so this only applies to *extra* wide monitors like my ultrawide
'xl': '1281px',
},
boxShadow: {
'shaded': 'inset 0px -80px 70px -30px white',
'soft-border': 'inset 0 0 8px 1px rgba(0, 0, 0, 0.3)',
'inner-and-lg': 'inset 0 2px 4px 0 rgba(0, 0, 0, 0.06), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)'
},
fontFamily: {
'cursive': ['Dancing Script', 'sans-serif'],
'sans': ['Raleway', 'Trebuchet MS', 'Avenir', 'Segoe UI', 'sans‑serif'],
'copy': ['system-ui', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'Noto Sans', 'sans-serif'],
},
width: {
'120': '30rem',
'80': '20rem',
},
maxWidth: {
'leave40rem': 'calc(100% - 40rem)',
'480': '120rem',
'content': 'max-content',
},
height: {
'140': '35rem',
'5-em': '1.25em',
},
maxHeight: {
'160': '40rem',
'256': '64rem',
},
minHeight: {
'64': '16rem',
'80': '20rem',
},
zIndex: {
'-10': '-10',
'-20': '-20',
},
},
},
variants: {
'container': ['responsive'],
},
corePlugins: {
container: false
},
plugins: [
function ({
addUtilities,
}) {
addUtilities({
'.transform-center': {
marginLeft: '50%',
transform: 'translateX(-50%)',
},
});
},
function ({
addComponents
}) {
addComponents({
'.container': {
maxWidth: '100%',
'@screen sm': {
maxWidth: '640px',
},
'@screen md': {
maxWidth: '768px',
},
'@screen lg': {
maxWidth: '1024px',
},
'@screen xl': {
maxWidth: '1024px',
},
}
}, ['responsive']);
},
function ({
addBase,
config
}) {
addBase({
'h1': {
fontSize: config('theme.fontSize.5xl'),
fontWeight: config('theme.fontWeight.bold'),
fontFamily: config('theme.fontFamily.sans').join(', '),
marginBottom: config('theme.margin.4')
},
'h2': {
fontSize: config('theme.fontSize.4xl'),
fontWeight: config('theme.fontWeight.bold'),
fontFamily: config('theme.fontFamily.sans').join(', '),
marginBottom: config('theme.margin.4')
},
'h3': {
fontSize: config('theme.fontSize.3xl'),
fontWeight: config('theme.fontWeight.bold'),
fontFamily: config('theme.fontFamily.sans').join(', '),
marginBottom: config('theme.margin.4')
},
'h4': {
fontSize: config('theme.fontSize.2xl'),
fontWeight: config('theme.fontWeight.bold'),
fontFamily: config('theme.fontFamily.sans').join(', '),
marginBottom: config('theme.margin.4')
},
'h5': {
fontSize: config('theme.fontSize.xl'),
fontWeight: config('theme.fontWeight.bold'),
fontFamily: config('theme.fontFamily.sans').join(', '),
marginBottom: config('theme.margin.4')
},
'h6': {
fontSize: config('theme.fontSize.lg'),
fontWeight: config('theme.fontWeight.bold'),
fontFamily: config('theme.fontFamily.sans').join(', '),
marginBottom: config('theme.margin.4')
},
})
}
],
future: { removeDeprecatedGapUtilities: true, purgeLayersByDefault: true },
}