-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
65 lines (53 loc) · 1.33 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
import {nextui} from '@nextui-org/theme'
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}'
],
theme: {
extend: {
backgroundSize: {
'full': '100%', // 将背景图片大小设置为100%以填充整个容器
'large': '120%', // 自定义更大的背景图片大小
'huge': '150%', // 进一步放大背景图片
},
'&:not(:hover)': {
display: 'none',
},
skew: {
'-8': '-8deg',
'-14': '-14deg',
'-16': '-16deg',
'14': '14deg',
'16': '16deg',
'-18': '-18deg',
'-18': '-18deg',
'18': '18deg',
'18': '18deg',
'20': '20deg',
'8': '8deg',
},
backgroundPosition: {
'-5.2': '-5.2rem 50%', // 设置自定义的 bg-position-x 值为 -5.2rem
'-10': '-10rem 50%',
'right-5.2': 'center 5.2rem'
},
width: {
'100': '26rem',
'110': '30rem',
'115': '34rem',
'125': '38rem',
'130': '45rem',
'135': '48rem'
},
height: {
'100': '26rem',
'110': '30rem',
}
},
},
darkMode: "class",
plugins: [nextui()],
}