zhouhui.jiang

Add前端样式模板

Showing 43 changed files with 293 additions and 0 deletions
This diff is collapsed. Click to expand it.
1 +// 字体系统
2 +$font-family-primary: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
3 +
4 +// 文字层级系统
5 +.text-h1 {
6 + font-family: $font-family-primary;
7 + font-size: 24px;
8 + font-weight: 600;
9 + line-height: 40px;
10 + letter-spacing: 0;
11 + color: var(--el-text-color-primary);
12 +}
13 +
14 +.text-h2 {
15 + font-family: $font-family-primary;
16 + font-size: 20px;
17 + font-weight: 600;
18 + line-height: 32px;
19 + letter-spacing: 0;
20 + color: var(--el-text-color-primary);
21 +}
22 +
23 +.text-h3 {
24 + font-family: $font-family-primary;
25 + font-size: 18px;
26 + font-weight: 600;
27 + line-height: 28px;
28 + letter-spacing: 0;
29 + color: var(--el-text-color-primary);
30 +}
31 +
32 +.text-h4 {
33 + font-family: $font-family-primary;
34 + font-size: 16px;
35 + font-weight: 600;
36 + line-height: 24px;
37 + letter-spacing: 0;
38 + color: var(--el-text-color-primary);
39 +}
40 +
41 +.text-body {
42 + font-family: $font-family-primary;
43 + font-size: 14px;
44 + font-weight: 400;
45 + line-height: 22px;
46 + letter-spacing: 0;
47 + color: var(--el-text-color-primary);
48 +}
49 +
50 +.text-caption {
51 + font-family: $font-family-primary;
52 + font-size: 12px;
53 + font-weight: 400;
54 + line-height: 18px;
55 + letter-spacing: 0;
56 + color: var(--el-text-color-regular);
57 +}
58 +
59 +.text-small {
60 + font-family: $font-family-primary;
61 + font-size: 11px;
62 + font-weight: 400;
63 + line-height: 16px;
64 + letter-spacing: 0;
65 + color: var(--el-text-color-secondary);
66 +}
67 +
68 +// 文字工具类
69 +.text-center { text-align: center; }
70 +.text-left { text-align: left; }
71 +.text-right { text-align: right; }
72 +
73 +.text-bold { font-weight: 600; }
74 +.text-medium { font-weight: 500; }
75 +.text-normal { font-weight: 400; }
76 +
77 +.text-ellipsis {
78 + overflow: hidden;
79 + text-overflow: ellipsis;
80 + white-space: nowrap;
81 +}
82 +
83 +.text-ellipsis-2 {
84 + display: -webkit-box;
85 + -webkit-line-clamp: 2;
86 + -webkit-box-orient: vertical;
87 + overflow: hidden;
88 +}
89 +
90 +.text-ellipsis-3 {
91 + display: -webkit-box;
92 + -webkit-line-clamp: 3;
93 + -webkit-box-orient: vertical;
94 + overflow: hidden;
95 +}
96 +
97 +// 全局文字样式重置
98 +* {
99 + font-family: $font-family-primary;
100 +}
101 +
102 +// 标题样式
103 +h1, .h1 {
104 + @extend .text-h1;
105 +}
106 +
107 +h2, .h2 {
108 + @extend .text-h2;
109 +}
110 +
111 +h3, .h3 {
112 + @extend .text-h3;
113 +}
114 +
115 +h4, .h4 {
116 + @extend .text-h4;
117 +}
118 +
119 +// 段落和文本样式
120 +p, .p {
121 + @extend .text-body;
122 + margin: 0 0 16px 0;
123 +}
124 +
125 +// 小文本样式
126 +small, .small {
127 + @extend .text-caption;
128 +}
129 +
130 +// 标签样式
131 +label, .label {
132 + @extend .text-caption;
133 + font-weight: 500;
134 + display: block;
135 + margin-bottom: 6px;
136 +}
137 +
138 +// 按钮文字样式
139 +button, .btn {
140 + font-family: $font-family-primary;
141 + font-weight: 500;
142 + letter-spacing: 0;
143 +}
144 +
145 +// 输入框文字样式
146 +input, textarea, select {
147 + font-family: $font-family-primary;
148 + font-size: 14px;
149 + line-height: 22px;
150 + letter-spacing: 0;
151 +}
152 +
153 +// 表格文字样式
154 +table {
155 + font-family: $font-family-primary;
156 +
157 + th {
158 + font-weight: 500;
159 + font-size: 12px;
160 + line-height: 18px;
161 + letter-spacing: 0;
162 + }
163 +
164 + td {
165 + font-size: 12px;
166 + line-height: 18px;
167 + letter-spacing: 0;
168 + }
169 +}
1 +# GCCPOP设计规范 0228
2 +
3 +## 📋 项目概述
4 +
5 +本目录包含基于GCCPOP设计规范的前端样式规范对齐详细修改计划,旨在将前端项目在8个基础规范维度与设计模板对齐。
6 +
7 +## 📁 目录结构
8 +
9 +```
10 +GCCPOP设计规范 0228/
11 +├── README.md # 项目说明文档
12 +├── 前端样式规范对齐详细修改计划.md # 详细修改计划
13 +├── html/
14 +│ └── 0 打开这个.html # 设计规范模板文件
15 +└── 实施指南/
16 + ├── 01-基础规范颜色/
17 + ├── 02-基础规范文字/
18 + ├── 03-基础规范栅格/
19 + ├── 04-基础规范导航/
20 + ├── 05-基础规范图标/
21 + ├── 06-基础规范控件/
22 + ├── 07-基础规范框/
23 + └── 08-基础规范弹窗/
24 +```
25 +
26 +## 🎯 8个基础规范维度
27 +
28 +1. **基础规范颜色**(色值、配色方案、应用场景)
29 +2. **基础规范文字**(字体、字号、行高、字重、文本样式)
30 +3. **基础规范栅格**(栅格系统参数、布局规则、响应式断点)
31 +4. **基础规范导航**(导航结构、交互样式、层级关系)
32 +5. **基础规范图标**(图标库、尺寸规范、风格统一、交互状态)
33 +6. **基础规范控件**(按钮、输入框、选择器等组件样式及交互)
34 +7. **基础规范框**(卡片、面板等容器组件的样式规范)
35 +8. **基础规范弹窗**(弹窗尺寸、层级、动画、交互逻辑)
36 +
37 +## 🎨 核心设计规范
38 +
39 +### 颜色系统
40 +- **主色调:** `#141F33` (RGB: 20, 31, 51)
41 +- **功能色:** 成功 `#52C41A`、警告 `#FAAD14`、危险 `#FF4D4F`、信息 `#13C2C2`
42 +
43 +### 字体系统
44 +- **字体族:** PingFang SC
45 +- **主标题:** 24px, 600, 40px行高
46 +- **正文:** 14px, 400, 22px行高
47 +
48 +### 布局系统
49 +- **圆角:** 6px (基础), 8px (容器), 12px (弹窗)
50 +- **间距:** 4px, 8px, 12px, 16px, 20px, 24px, 32px, 48px
51 +- **阴影:** 基于主色调的 rgba 阴影系统
52 +
53 +## 📊 实施计划
54 +
55 +### 第一阶段(第1-2周):基础系统搭建
56 +- 创建颜色变量系统
57 +- 建立文字层级规范
58 +- 实现栅格系统
59 +
60 +### 第二阶段(第3-4周):组件系统
61 +- 导航系统重构
62 +- 图标系统建立
63 +- 控件系统完善
64 +
65 +### 第三阶段(第5-6周):容器和弹窗
66 +- 框系统实现
67 +- 弹窗系统建立
68 +- Element Plus主题定制
69 +
70 +### 第四阶段(第7-8周):页面应用
71 +- 订单管理页面应用
72 +- 出库管理页面应用
73 +- 发票管理页面应用
74 +- 其他业务页面应用
75 +
76 +### 第五阶段(第9-10周):优化和测试
77 +- 响应式适配
78 +- 交互优化
79 +- 性能优化
80 +- 全面测试
81 +
82 +## 🎯 关键里程碑
83 +
84 +- 第2周末:基础系统完成
85 +- 第4周末:组件系统完成
86 +- 第6周末:容器弹窗系统完成
87 +- 第8周末:页面应用完成
88 +- 第10周末:项目交付
89 +
90 +## 📋 验收标准
91 +
92 +1. **颜色系统**:所有颜色值与应用场景符合设计规范
93 +2. **文字系统**:字体、字号、行高、字重完全对齐
94 +3. **栅格系统**:响应式布局在不同设备上表现一致
95 +4. **导航系统**:交互样式和层级关系符合规范
96 +5. **图标系统**:尺寸规范和风格统一
97 +6. **控件系统**:按钮、输入框等组件样式及交互一致
98 +7. **框系统**:卡片、面板等容器组件样式规范
99 +8. **弹窗系统**:弹窗尺寸、层级、动画、交互逻辑符合规范
100 +
101 +## 🔧 使用指南
102 +
103 +1. **查看详细计划**:阅读 `前端样式规范对齐详细修改计划.md` 了解完整的实施细节
104 +2. **参考设计模板**:查看 `html/0 打开这个.html` 了解原始设计规范
105 +3. **按阶段实施**:按照实施计划逐步完成各个阶段的开发工作
106 +4. **质量检查**:每个阶段结束后进行代码审查和设计规范符合度检查
107 +
108 +## 📞 联系方式
109 +
110 +如有疑问或需要技术支持,请联系项目团队。
111 +
112 +---
113 +
114 +*本规范基于GCCPOP设计规范制定,旨在提供一致、现代、专业的用户体验。*
This diff could not be displayed because it is too large.
1 +<meta http-equiv="refresh" content="0;url=../index.html#3">
...\ No newline at end of file ...\ No newline at end of file
1 +<meta http-equiv="refresh" content="0;url=../index.html#8">
...\ No newline at end of file ...\ No newline at end of file
1 +<meta http-equiv="refresh" content="0;url=../index.html#7">
...\ No newline at end of file ...\ No newline at end of file
1 +<meta http-equiv="refresh" content="0;url=../index.html#5">
...\ No newline at end of file ...\ No newline at end of file
1 +<meta http-equiv="refresh" content="0;url=../index.html#6">
...\ No newline at end of file ...\ No newline at end of file
1 +<meta http-equiv="refresh" content="0;url=../index.html#4">
...\ No newline at end of file ...\ No newline at end of file
1 +<meta http-equiv="refresh" content="0;url=../index.html#2">
...\ No newline at end of file ...\ No newline at end of file
1 +<meta http-equiv="refresh" content="0;url=../index.html#1">
...\ No newline at end of file ...\ No newline at end of file
1 +<meta http-equiv="refresh" content="0;url=../index.html#0">
...\ No newline at end of file ...\ No newline at end of file
1 +<meta http-equiv="refresh" content="0;url=index.html#p">
...\ No newline at end of file ...\ No newline at end of file