-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.nextui
115 lines (107 loc) · 2.93 KB
/
tailwind.config.nextui
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import { nextui } from '@nextui-org/react';
const config = {
darkMode: 'class',
content: [
'./app/**/*.{js,ts,jsx,tsx}', // Note the addition of the `app` directory.
'./components/**/*.{js,ts,jsx,tsx}',
'./views/**/*.{js,ts,jsx,tsx}',
'./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}',
'./node_modules/@nextui-org/button/dist/**/*.{js,ts,jsx,tsx}',
'./node_modules/@nextui-org/react/dist/**/*.{js,ts,jsx,tsx}'
],
future: {
hoverOnlyWhenSupported: true
},
theme: {
screens: {
ssm: '480px',
sm: '640px',
// => @media (min-width: 640px) { ... }
md: '768px',
// => @media (min-width: 768px) { ... }
lg: '1024px',
// => @media (min-width: 1024px) { ... }
xl: '1280px',
// => @media (min-width: 1280px) { ... }
'1080p': '1366px',
'1440p': '1440px',
'2xl': '1536px'
// => @media (min-width: 1536px) { ... }
},
extend: {}
},
plugins: [
nextui({
themes: {
light: {
colors: {
background: '#FFFFFF', // 背景色
foreground: '#11181C', // 前景色
// foreground: '#00BBFF',
focus: '#00BBFF',
primary: {
// ... 50 to 900 range
DEFAULT: '#00BBFF',
foreground: '#FFFFFF'
},
success: {
// ... 50 to 900 range
DEFAULT: '#7AB50E',
foreground: '#FFFFFF'
},
info: {
// ... 50 to 900 range
DEFAULT: '#2EB6F4',
foreground: '#FFFFFF'
},
warning: {
// ... 50 to 900 range
DEFAULT: '#FFD91E',
foreground: 'rgb(132, 94, 29)'
},
danger: {
// ... 50 to 900 range
DEFAULT: '#FF413A',
foreground: '#FFFFFF'
}
},
layout: {}
},
dark: {
colors: {
background: '#000000', // 背景色
foreground: '#ECEDEE', // 前景色
// foreground: '#00BBFF',
focus: '#00BBFF',
primary: {
// ... 50 to 900 range
DEFAULT: '#00BBFF',
foreground: '#FFFFFF'
},
success: {
// ... 50 to 900 range
DEFAULT: '#7AB50E',
foreground: '#FFFFFF'
},
info: {
// ... 50 to 900 range
DEFAULT: '#2EB6F4',
foreground: '#FFFFFF'
},
warning: {
// ... 50 to 900 range
DEFAULT: '#FFD91E',
foreground: 'rgb(132, 94, 29)'
},
danger: {
// ... 50 to 900 range
DEFAULT: '#FF413A',
foreground: '#FFFFFF'
}
}
}
}
})
]
};
export default config;