mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
- 在 tailwind.css 中正确定义可重用的 Tailwind 组件类 - 修复 ChatHeader 组件中的按钮样式,确保 hover 效果正常工作 - 修复 ESLint 配置中的 importPlugin 导入问题 - 清理 App.css 中重复的 CSS 变量定义 - 为 btn-ghost 类设置 4px border radius - 为按钮内的 span 添加左右 4px padding (使用 px-1) - 确保按钮 hover 时有背景色效果
50 lines
1.3 KiB
JavaScript
50 lines
1.3 KiB
JavaScript
/**
|
|
* @license
|
|
* Copyright 2025 Qwen Team
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/* eslint-env node */
|
|
/** @type {import('tailwindcss').Config} */
|
|
export default {
|
|
content: [
|
|
// Progressive adoption strategy: Only scan newly created Tailwind components
|
|
'./src/webview/App.tsx',
|
|
'./src/webview/components/ui/**/*.{js,jsx,ts,tsx}',
|
|
'./src/webview/components/messages/**/*.{js,jsx,ts,tsx}',
|
|
'./src/webview/components/toolcalls/**/*.{js,jsx,ts,tsx}',
|
|
'./src/webview/components/InProgressToolCall.tsx',
|
|
'./src/webview/components/MessageContent.tsx',
|
|
'./src/webview/components/InfoBanner.tsx',
|
|
'./src/webview/components/InputForm.tsx',
|
|
'./src/webview/components/PermissionDrawer.tsx',
|
|
'./src/webview/components/PlanDisplay.tsx',
|
|
'./src/webview/components/session/SessionSelector.tsx',
|
|
],
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
qwen: {
|
|
orange: '#615fff',
|
|
'clay-orange': '#4f46e5',
|
|
ivory: '#f5f5ff',
|
|
slate: '#141420',
|
|
green: '#6bcf7f',
|
|
},
|
|
},
|
|
borderRadius: {
|
|
small: '4px',
|
|
medium: '6px',
|
|
large: '8px',
|
|
},
|
|
spacing: {
|
|
small: '4px',
|
|
medium: '8px',
|
|
large: '12px',
|
|
xlarge: '16px',
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
};
|