-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
50 lines (50 loc) · 1.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
const plugin = require('tailwindcss/plugin');
module.exports = {
corePlugins: {
preflight: false,
},
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {
screens: {
mobile: '375px',
tablet: '640px',
laptop: '1024px',
desktop: '1280px',
desktopL: '1440px',
desktopXL: '1980px',
'4k': '2560px',
},
zIndex: {
scroller: '100',
dropdown: '200',
modal: '1000',
popup: '1001',
},
},
},
plugins: [
plugin(function ({ addVariant, addUtilities }) {
addVariant('children', '& > *');
addVariant('svg', '& > svg');
addVariant('input', '& > input');
addUtilities({
'.shadow-es': {
'box-shadow': '0px 4px 12px rgba(29, 29, 32, 0.08)',
},
'.shadow-es-l': {
'box-shadow': '-4px 0px 5px 0px rgba(29, 29, 32, 0.08)',
},
'.shadow-es-r': {
'box-shadow': '4px 0px 5px 0px rgba(29, 29, 32, 0.08)',
},
'.shadow-es-t': {
'box-shadow': '1px -2px 4px 0px rgba(29, 29, 32, 0.08)',
},
'.shadow-es-b': {
'box-shadow': '2px 4px 5px 0px rgba(29, 29, 32, 0.08)',
},
});
}),
],
};