-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
92 lines (90 loc) · 2.14 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
const plugin = require('tailwindcss/plugin')
const FormKitVariants = require('@formkit/themes/tailwindcss')
module.exports = {
mode: 'jit',
content: [
'./index.html',
'./components/**/*.{vue,ts}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./node_modules/@formkit/themes/dist/tailwindcss/genesis/index.cjs'
],
safelist: [],
theme: {
extend: {}
},
plugins: [
FormKitVariants,
require('@tailwindcss/container-queries'),
function ({ addUtilities }) {
const additional = {
'.cmt-2 + .cmt-2': {
marginTop: '.5rem'
},
'.cmt-4 + .cmt-4': {
marginTop: '1rem'
},
'.cmt-8 + .cmt-8': {
marginTop: '2rem'
},
'.cmt-16 + .cmt-16': {
marginTop: '4rem'
},
'.cmt-1 + .cmt-1': {
marginTop: '.25rem'
},
'.position-below': {
bottom: '0',
transform: 'translateY(100%)'
},
'.flex-center': {
display: 'flex',
justifyContent: 'center',
alignItems: 'center'
},
'.pin-vert-center': {
top: '50%',
transform: 'translateY(-50%)'
},
'.pin-horz-center': {
left: '50%',
transform: 'translateX(-50%)'
},
'.hyphens': {
hyphens: 'auto',
hyphenLimitChars: '6 3 2'
},
'.no-hyphens': {
hyphens: 'manual'
},
'.blur-3': {
filter: 'blur(3px)'
},
'.container': {
width: '100%',
minWidth: '320px',
maxWidth: '900px'
},
'.container-small': {
width: '100%',
minWidth: '320px',
maxWidth: '768px'
},
'.hide-scrollbar': {
'-ms-overflow-style': 'none',
'scrollbar-width': 'none'
},
'.hide-scrollbar::-webkit-scrollbar': {
display: 'none'
},
'.last-mb-no > :last-child': {
marginBottom: '0'
},
'.separator-pipe:not(:last-child):after': {
content: '" / "'
}
}
addUtilities(additional)
}
]
}