-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.ts
97 lines (97 loc) · 2.04 KB
/
tailwind.config.ts
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
93
94
95
96
97
const { nextui } = require('@nextui-org/react');
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}',
],
theme: {
screens: {
sm: '640px',
md: '780px',
lg: '1024px',
xl: '1280px',
},
opacity: {
'0': '0',
'20': '0.2',
'40': '0.4',
'60': '0.6',
'80': '0.8',
'100': '1',
},
fontFamily: {
sans: [
'Roboto',
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'PingFang',
'"Noto Sans"',
'"Helvetica Neue"',
'Arial',
'sans-serif',
],
},
extend: {
colors: {
//fix颜色通常用于主题改变时颜色也不会发生改变,如底部信息栏的文字以及背景色
fixwhite: '#fafafa',
fixblue: '#291F64',
},
spacing: {
4.5: '18px',
5.5: '22px',
6.5: '26px',
7.5: '30px',
8.5: '34px',
9.5: '38px',
10.5: '42px',
11.5: '46px',
12.5: '50px',
13: '52px',
13.5: '54px',
14.5: '58px',
15: '60px',
15.5: '62px',
17: '68px',
18: '72px',
19: '76px',
21: '84px',
22: '88px',
23: '92px',
},
},
},
darkMode: 'class',
plugins: [
nextui({
themes: {
//日间配色
light: {
layout: {},
colors: {
text: '#0C0725',
background: '#FDFDFD',
primary: '#291F64',
secondary: '#F3F2F6',
accent: '#7C0000',
},
},
//夜间配色
dark: {
layout: {},
colors: {
text: '#fafafa',
background: '#050505',
primary: '#291F64',
secondary: '#1e1a29',
accent: '#ff6666',
},
},
},
}),
],
};