-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
68 lines (66 loc) · 1.53 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
/** @type {import('tailwindcss').Config} */
const colors = require('tailwindcss/colors')
const plugin = require('tailwindcss/plugin')
export default {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
corePlugins: {
preflight: false
},
theme: {
extend: {
colors: {
...colors,
primary: '#6102fd',
fontPrimary: '#6a6d82'
}
}
},
plugins: [
plugin(function ({ addUtilities }) {
const newUtilities = {
'.table-btn': {
marginRight: '10px',
display: 'block',
userSelect: 'none',
fontWeight: 'bold',
fontSize: '12px',
color: '#6102fd',
cursor: 'pointer',
'&:hover': {
opacity: '0.6'
}
},
'.table-btn-danger': {
marginRight: '16px',
display: 'block',
color: 'red',
userSelect: 'none',
fontWeight: 'bold',
fontSize: '12px',
cursor: 'pointer',
'&:hover': {
color: 'red',
opacity: '0.6'
}
},
'.last': {
marginRight: 0,
paddingRight: 0
},
'.ell': {
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
wordBreak: 'keep-all'
},
'.wh-100': {
width: '100%',
height: '100%',
minWidth: '100vw',
minHeight: '100vh'
}
}
addUtilities(newUtilities, ['responsive', 'hover'])
})
]
}