-
Notifications
You must be signed in to change notification settings - Fork 230
/
tailwind.config.js
52 lines (52 loc) · 1.28 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
const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: ['./index.html', './src/**/*.{vue,ts}'],
theme: {
minHeight: {
'8': '2rem',
'600': '600px',
'full': '100%'
},
extend: {
cursor:{
'r-resize': 'row-resize',
'c-resize': 'col-resize',
grab: 'grab',
},
lineHeight: {
'16': '4rem',
'12': '3rem',
},
minWidth: {
'1256': '1256px'
},
spacing: {
'100': '25rem',
'24': '6rem',
'34': '8.5rem',
'22': '5.5rem'
}
}
},
plugins: [
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/line-clamp'),
require('@tailwindcss/typography'),
require('@tailwindcss/forms'),
plugin(function ({ addVariant, e, postcss }) {
addVariant('firefox', ({ container, separator }) => {
const isFirefoxRule = postcss.atRule({
name: '-moz-document',
params: 'url-prefix()',
})
isFirefoxRule.append(container.nodes)
container.append(isFirefoxRule)
isFirefoxRule.walkRules((rule) => {
rule.selector = `.${e(`firefox${separator}${rule.selector.slice(1)}`)}`
})
})
})
]
};