forked from netease-youdao/LobsterAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
189 lines (189 loc) · 5.76 KB
/
tailwind.config.js
File metadata and controls
189 lines (189 loc) · 5.76 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
darkMode: 'class',
theme: {
extend: {
colors: {
// Cold modern color palette
claude: {
// Light mode colors
bg: '#F8F9FB', // Cool gray-white background
surface: '#FFFFFF', // Cards, inputs
surfaceHover: '#F0F1F4', // Hover state
surfaceMuted: '#F3F4F6', // Subtle area distinction
surfaceInset: '#EBEDF0', // Inset areas (e.g., input inner)
border: '#E0E2E7', // Default border
borderLight: '#EBEDF0', // Subtle dividers
text: '#1A1D23', // Primary text, near-black
textSecondary: '#6B7280', // Secondary text
// Dark mode colors
darkBg: '#0F1117', // Dark background, near-black
darkSurface: '#1A1D27', // Dark cards
darkSurfaceHover: '#242830', // Dark hover
darkSurfaceMuted: '#151820', // Subtle dark area
darkSurfaceInset: '#0C0E14', // Dark inset areas
darkBorder: '#2A2E38', // Dark borders
darkBorderLight: '#1F232B', // Subtle dark dividers
darkText: '#E4E5E9', // Dark primary text
darkTextSecondary: '#8B8FA3', // Dark secondary text
// Accent (tech blue)
accent: '#3B82F6', // Blue primary
accentHover: '#2563EB', // Blue hover
accentLight: '#60A5FA', // Light blue for badges
accentMuted: 'rgba(59,130,246,0.10)', // Very faint blue background
},
primary: {
DEFAULT: '#3B82F6',
dark: '#2563EB'
},
secondary: {
DEFAULT: '#6B7280',
dark: '#2A2E38'
}
},
boxShadow: {
subtle: '0 1px 2px rgba(0,0,0,0.05)',
card: '0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04)',
elevated: '0 4px 12px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.04)',
modal: '0 8px 30px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08)',
popover: '0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.05)',
'glow-accent': '0 0 20px rgba(59,130,246,0.15)',
},
keyframes: {
'fade-in': {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
'fade-in-up': {
'0%': { opacity: '0', transform: 'translateY(8px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
'fade-in-down': {
'0%': { opacity: '0', transform: 'translateY(-8px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
'scale-in': {
'0%': { opacity: '0', transform: 'scale(0.95)' },
'100%': { opacity: '1', transform: 'scale(1)' },
},
shimmer: {
'0%': { transform: 'translateX(-100%)' },
'100%': { transform: 'translateX(100%)' },
},
},
animation: {
'fade-in': 'fade-in 0.2s ease-out',
'fade-in-up': 'fade-in-up 0.25s ease-out',
'fade-in-down': 'fade-in-down 0.2s ease-out',
'scale-in': 'scale-in 0.2s ease-out',
shimmer: 'shimmer 1.5s infinite',
},
transitionTimingFunction: {
smooth: 'cubic-bezier(0.4, 0, 0.2, 1)',
},
typography: {
DEFAULT: {
css: {
color: '#1A1D23',
a: {
color: '#3B82F6',
'&:hover': {
color: '#2563EB',
},
},
code: {
color: '#1A1D23',
backgroundColor: 'rgba(224, 226, 231, 0.5)',
padding: '0.2em 0.4em',
borderRadius: '0.25rem',
fontWeight: '400',
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
pre: {
backgroundColor: '#F0F1F4',
color: '#1A1D23',
padding: '1em',
borderRadius: '0.75rem',
overflowX: 'auto',
},
blockquote: {
borderLeftColor: '#3B82F6',
color: '#6B7280',
},
h1: {
color: '#1A1D23',
},
h2: {
color: '#1A1D23',
},
h3: {
color: '#1A1D23',
},
h4: {
color: '#1A1D23',
},
strong: {
color: '#1A1D23',
},
},
},
dark: {
css: {
color: '#E4E5E9',
a: {
color: '#60A5FA',
'&:hover': {
color: '#93BBFD',
},
},
code: {
color: '#E4E5E9',
backgroundColor: 'rgba(42, 46, 56, 0.5)',
padding: '0.2em 0.4em',
borderRadius: '0.25rem',
fontWeight: '400',
},
pre: {
backgroundColor: '#1A1D27',
color: '#E4E5E9',
padding: '1em',
borderRadius: '0.75rem',
overflowX: 'auto',
},
blockquote: {
borderLeftColor: '#3B82F6',
color: '#8B8FA3',
},
h1: {
color: '#E4E5E9',
},
h2: {
color: '#E4E5E9',
},
h3: {
color: '#E4E5E9',
},
h4: {
color: '#E4E5E9',
},
strong: {
color: '#E4E5E9',
},
},
},
},
},
},
plugins: [
require('@tailwindcss/typography'),
],
}