-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
55 lines (53 loc) · 1.37 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
const plugin = require('tailwindcss/plugin')
module.exports = {
content: [
'./components/**/*.{vue,js,ts,jsx,tsx}',
'./directives/**/*.{vue,js,ts,jsx,tsx}',
'./plugins/**/*.{vue,js,ts,jsx,tsx}',
'./docs/**/*.{vue,js,ts,jsx,tsx}'
],
presets: [
require('./tailwind.base.js'),
],
plugins: [
plugin(({ addUtilities }) => {
const newUtilities = {
'.scroll-snap-none': {
'scroll-snap-type': 'none',
},
'.scroll-snap-x': {
'scroll-snap-type': 'x mandatory',
},
'.scroll-snap-y': {
'scroll-snap-type': 'y mandatory',
},
'.scroll-behavior-auto': {
'scroll-behavior': 'auto',
},
'.scroll-behavior-smooth': {
'scroll-behavior': 'smooth',
},
'.scroll-behavior-unset': {
'scroll-behavior': 'unset',
},
'.scroll-snap-start': {
'scroll-snap-align': 'start',
},
'.scroll-snap-center': {
'scroll-snap-align': 'center',
},
'.scroll-snap-end': {
'scroll-snap-align': 'end',
},
'.scrollbar-none': {
'scrollbar-width': 'none',
'-ms-overflow-style': 'none',
'&::-webkit-scrollbar': {
display: 'none'
},
},
}
addUtilities(newUtilities, ['responsive'])
}),
],
}