1. 新增postcss、autoprefixer、tailwindcss依赖并初始化配置 2. 移除全局及页面级CSS文件,将样式替换为tailwind原子类 3. 重构API调用逻辑,拆分接口请求函数 4. 统一项目样式规范,优化布局与组件样式
36 lines
726 B
JavaScript
36 lines
726 B
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
export default {
|
|
content: ['./index.html', './src/**/*.{ts,tsx}'],
|
|
important: '#root',
|
|
corePlugins: {
|
|
preflight: false,
|
|
},
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
ink: '#1d2129',
|
|
muted: '#86909c',
|
|
line: '#e5e6eb',
|
|
canvas: '#f2f3f5',
|
|
panel: '#fbfcfd',
|
|
brand: '#165dff',
|
|
},
|
|
fontFamily: {
|
|
sans: [
|
|
'Inter',
|
|
'ui-sans-serif',
|
|
'system-ui',
|
|
'-apple-system',
|
|
'BlinkMacSystemFont',
|
|
'"Segoe UI"',
|
|
'sans-serif',
|
|
],
|
|
},
|
|
boxShadow: {
|
|
login: '0 18px 48px rgba(15, 23, 42, 0.08)',
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
};
|