Your Name f166c04422 Add frontend component library and UI development tasks
- Create Tailwind CSS configuration with design tokens from UIDesignSpec
- Create globals.css with CSS variables and component styles
- Add React component library:
  - UI components: Button, Card, Tag, Input, Select, ProgressBar, Modal
  - Navigation: BottomNav, Sidebar, StatusBar
  - Layout: MobileLayout, DesktopLayout
- Add constants for colors, icons, and layout
- Update tasks.md with 31 UI development tasks linked to design node IDs
- Configure package.json, tsconfig.json, and postcss.config.js

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 17:44:22 +08:00

70 lines
1003 B
TypeScript

/**
* 常量统一导出
*/
export * from './colors';
export * from './icons';
// 布局尺寸常量
export const LAYOUT = {
// 移动端
mobile: {
width: 402,
height: 874,
statusBarHeight: 44,
bottomNavHeight: 83,
paddingX: 24,
paddingY: 16,
},
// 桌面端
desktop: {
minWidth: 1280,
maxWidth: 1440,
height: 900,
sidebarWidth: 260,
padding: 32,
},
// 响应式断点
breakpoints: {
mobile: 768,
tablet: 1024,
desktop: 1280,
},
} as const;
// 圆角常量
export const RADIUS = {
card: 12,
btn: 8,
tag: 4,
} as const;
// 间距常量
export const SPACING = {
xs: 4,
sm: 8,
md: 12,
lg: 16,
xl: 20,
'2xl': 24,
'3xl': 32,
} as const;
// 字体大小常量
export const FONT_SIZES = {
pageTitle: 24,
cardTitle: 22,
sectionTitle: 16,
body: 15,
caption: 13,
small: 12,
nav: 11,
} as const;
// 动画时长常量
export const ANIMATION = {
fast: 150,
normal: 200,
slow: 300,
} as const;