Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

antd 设计规范实施 + 设计文档跟随版本进行升级 #55

Closed
Jiang-Xuan opened this issue Nov 13, 2019 · 2 comments · Fixed by #58
Closed

antd 设计规范实施 + 设计文档跟随版本进行升级 #55

Jiang-Xuan opened this issue Nov 13, 2019 · 2 comments · Fixed by #58
Assignees
Labels
Design 设计稿设计中 help wanted Extra attention is needed
Milestone

Comments

@Jiang-Xuan
Copy link
Owner

Jiang-Xuan commented Nov 13, 2019

目前没有设计稿跟随版本进行升级, 为了提升网站的设计规范以及提升自己的设计技能, 设计稿将跟随代码的版本进行升级:

  • 设计工具: sketch
  • 设计规范: antd
  • 前端 React 组件库: antd
  • antd 没有提供 Spacing 系统, 采用 github 的设计框架 primer 中的 Spacing 系统 组件的色彩系统采用 antd, util 类名的色彩采用 primer 的
@Jiang-Xuan Jiang-Xuan added help wanted Extra attention is needed Design 设计稿设计中 labels Nov 13, 2019
@Jiang-Xuan Jiang-Xuan added this to the Version 0.2.0 milestone Nov 13, 2019
@Jiang-Xuan Jiang-Xuan self-assigned this Nov 13, 2019
@Jiang-Xuan
Copy link
Owner Author

Jiang-Xuan commented Nov 13, 2019

sketch 使用规范

css 盒子 和 sketch 组

css 中的每一个盒子都是 sketch 中的一个组, sketch 图形 box-bounarybox-inner 尽量在可能能时候锁定🔒

  1. 内部图形 box-bounary 指定盒子的外边界
    image
  2. 内部图形 box-inner 指定盒子的内边界, 内边界图形和外边界图形之间的空间为 css 中的 padding padding 需要用 sketch measure 工具 标出
    image

@Jiang-Xuan Jiang-Xuan pinned this issue Nov 13, 2019
@Jiang-Xuan
Copy link
Owner Author

设计这一块使用了两种框架, 这两种框架的色彩风格不一致:

Note: 为什么使用这两种框架, 是因为 primer 提供了大量的工具类名, 比 antd 使用起来更为方便, 但是也造成了一个系统使用两种色彩方案, 色彩方案不统一的弊端

antd

https://ant.design/docs/spec/colors
image

primer

https://primer.style/css/support/color-system
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design 设计稿设计中 help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant