forked from didi/mand-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(style): update theme variables to 2.0
- Loading branch information
Showing
8 changed files
with
89 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* | ||
* GLOBAL COLOR | ||
*/ | ||
|
||
// brand color | ||
color-primary = #2F86F6 // 品牌色 | ||
|
||
// text color | ||
color-text-base = #111A34 // 重要信息,如一级标题 | ||
color-text-base-inverse = #FFF | ||
color-text-body = #41485D // 普通信息,如正文主要内容 | ||
color-text-minor = #666f83 // 次要信息,如利益点、摘要 | ||
color-text-caption = #858B9C // 辅助信息,如列表内容描述 | ||
color-text-disabled = #C5CAD5 // 禁用状态 | ||
color-text-placeholder = #C5CAD5 // 默认提示输入 | ||
color-text-highlight = color-primary // 高亮状态 | ||
color-text-warn = #FF7D41 // 利益点,警告提示 | ||
color-text-error = #FF5257 // 强提示报错 | ||
color-text-link = #5878B4 // 文字链接 | ||
|
||
// border & bg | ||
color-border-base = #E2E4EA // 条目边框 | ||
color-border-element = #C5CAD5 // 元素边框,如按钮 | ||
color-bg = #F9FAFB // 元素,容器背景 | ||
color-mask = rgba(37, 38, 45, .6) // 弹窗蒙层 | ||
|
||
/* | ||
* GLOBAL SIZE | ||
*/ | ||
|
||
// text size | ||
font-heading-large = 60px | ||
font-heading-medium = 52px | ||
font-heading-normal = 44px | ||
font-caption-large = 36px | ||
font-caption-normal = 32px | ||
font-body-large = 28px | ||
font-body-normal = 26px | ||
font-minor-large = 24px | ||
font-minor-normal = 20px | ||
|
||
font-weight-light = 300 | ||
font-weight-normal = 400 | ||
font-weight-medium = 600 | ||
font-weight-semibold = 700 | ||
|
||
// radius size | ||
radius-normal = 4px | ||
radius-circle = 50% | ||
|
||
// border size | ||
border-width-base = 2px | ||
|
||
// gap size | ||
h-gap-sm = 12px | ||
h-gap-md = 20px | ||
h-gap-lg = 32px | ||
v-gap-sm = 12px | ||
v-gap-md = 20px | ||
v-gap-lg = 32px | ||
|
||
/* | ||
* GLOBAL OTHER | ||
*/ | ||
|
||
// animate | ||
ease-in-out-quint = cubic-bezier(.86, 0, .07, 1) | ||
|
||
// opacity | ||
opacity-disabled = .3 // opacity of disabled button, switch, agree | ||
|
||
// font family | ||
font-family-normal = "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif | ||
font-family-number = DINPro-Medium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters