feat: 添加核心工具函数、颜色配置和常量数据

style: 优化.gitignore文件结构

test: 添加导航测试用例

docs: 删除旧版网站重设计文档

chore: 更新浏览器配置和设置管理
This commit is contained in:
张翔
2026-02-21 18:52:48 +08:00
parent b7e52aa086
commit 2b74a83e72
26 changed files with 433 additions and 2120 deletions
+69
View File
@@ -0,0 +1,69 @@
export const brandColors = {
primary: {
600: '#C41E3A',
700: '#A01830',
500: '#D4244A',
400: '#E04A68',
100: '#FEF2F4',
},
neutral: {
900: '#171717',
800: '#262626',
700: '#404040',
600: '#525252',
500: '#737373',
400: '#A3A3A3',
300: '#D4D4D4',
200: '#E5E5E5',
100: '#F5F5F5',
50: '#FAFAFA',
0: '#FFFFFF',
},
success: {
600: '#16A34A',
100: '#F0FDF4',
},
warning: {
600: '#D97706',
100: '#FFFBEB',
},
info: {
600: '#0284C7',
100: '#F0F9FF',
},
error: {
600: '#DC2626',
100: '#FEF2F2',
},
} as const;
export const colorValues = {
primary: '#C41E3A',
primaryHover: '#A01830',
primaryLight: '#D4244A',
primaryBg: '#FEF2F4',
textPrimary: '#171717',
textSecondary: '#525252',
textTertiary: '#737373',
textMuted: '#A3A3A3',
bgPrimary: '#FFFFFF',
bgSecondary: '#FAFAFA',
bgTertiary: '#F5F5F5',
border: '#E5E5E5',
borderHover: '#D4D4D4',
success: '#16A34A',
successBg: '#F0FDF4',
warning: '#D97706',
warningBg: '#FFFBEB',
info: '#0284C7',
infoBg: '#F0F9FF',
error: '#DC2626',
errorBg: '#FEF2F2',
} as const;
export type BrandColor = typeof brandColors;
export type ColorValue = typeof colorValues;