Skip to content

Commit 5321282

Browse files
authored
style: use font token (#834)
* style: use font token * fix: fix cr * docs: regenerate css vars * chore: @xx-icon-font-size changed to @xx-icon-size
1 parent ca833e7 commit 5321282

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+210
-251
lines changed

src/action-sheet/action-sheet.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Name | Default Value | Description
3333
--td-action-sheet-cancel-height | 48px | -
3434
--td-action-sheet-color | @text-color-primary | -
3535
--td-action-sheet-description-color | @text-color-placeholder | -
36+
--td-action-sheet-description-font | @font-body-medium | -
3637
--td-action-sheet-dot-active-color | @brand-color | -
3738
--td-action-sheet-dot-color | @text-color-disabled | -
3839
--td-action-sheet-dot-size | 8px | -

src/action-sheet/action-sheet.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ onSelected | Function | | TS 类型:`(selected: ActionSheetItem \| string, in
3333
--td-action-sheet-cancel-height | 48px | -
3434
--td-action-sheet-color | @text-color-primary | -
3535
--td-action-sheet-description-color | @text-color-placeholder | -
36+
--td-action-sheet-description-font | @font-body-medium | -
3637
--td-action-sheet-dot-active-color | @brand-color | -
3738
--td-action-sheet-dot-color | @text-color-disabled | -
3839
--td-action-sheet-dot-size | 8px | -

src/badge/badge.en-US.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ Name | Default Value | Description
3232
--td-badge-border-radius | 2px | -
3333
--td-badge-bubble-border-radius | 10px 10px 10px 1px | -
3434
--td-badge-dot-size | 8px | -
35-
--td-badge-font-size | @font-size-xs | -
36-
--td-badge-font-weight | 600 | -
37-
--td-badge-large-font-size | @font-size-s | -
35+
--td-badge-font | @font-mark-extraSmall | -
36+
--td-badge-large-font | @font-mark-small | -
3837
--td-badge-large-height | 20px | -
3938
--td-badge-large-padding | 5px | -
4039
--td-badge-text-color | @font-white-1 | -

src/badge/badge.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ size | String | medium | 尺寸。可选项:medium/large | N
3131
--td-badge-border-radius | 2px | -
3232
--td-badge-bubble-border-radius | 10px 10px 10px 1px | -
3333
--td-badge-dot-size | 8px | -
34-
--td-badge-font-size | @font-size-xs | -
35-
--td-badge-font-weight | 600 | -
36-
--td-badge-large-font-size | @font-size-s | -
34+
--td-badge-font | @font-mark-extraSmall | -
35+
--td-badge-large-font | @font-mark-small | -
3736
--td-badge-large-height | 20px | -
3837
--td-badge-large-padding | 5px | -
3938
--td-badge-text-color | @font-white-1 | -

src/button/button.en-US.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Name | Default Value | Description
6363
--td-button-default-text-active-bg-color | @bg-color-container-active | -
6464
--td-button-extra-small-font-size | @font-size-base | -
6565
--td-button-extra-small-height | 28px | -
66-
--td-button-extra-small-icon-font-size | 18px | -
66+
--td-button-extra-small-icon-size | 18px | -
6767
--td-button-extra-small-padding-horizontal | 8px | -
6868
--td-button-font-weight | 600 | -
6969
--td-button-ghost-border-color | @button-ghost-color | -
@@ -80,7 +80,7 @@ Name | Default Value | Description
8080
--td-button-icon-spacer | @spacer | -
8181
--td-button-large-font-size | @font-size-m | -
8282
--td-button-large-height | 48px | -
83-
--td-button-large-icon-font-size | 24px | -
83+
--td-button-large-icon-size | 24px | -
8484
--td-button-large-padding-horizontal | 20px | -
8585
--td-button-light-active-bg-color | @brand-color-light-active | -
8686
--td-button-light-active-border-color | @brand-color-light-active | -
@@ -100,7 +100,7 @@ Name | Default Value | Description
100100
--td-button-light-text-color | @brand-color | -
101101
--td-button-medium-font-size | @font-size-m | -
102102
--td-button-medium-height | 40px | -
103-
--td-button-medium-icon-font-size | 20px | -
103+
--td-button-medium-icon-size | 20px | -
104104
--td-button-medium-padding-horizontal | 16px | -
105105
--td-button-primary-active-bg-color | @brand-color-active | -
106106
--td-button-primary-active-border-color | @brand-color-active | -
@@ -120,5 +120,5 @@ Name | Default Value | Description
120120
--td-button-primary-text-disabled-color | @brand-color-disabled | -
121121
--td-button-small-font-size | @font-size-base | -
122122
--td-button-small-height | 32px | -
123-
--td-button-small-icon-font-size | 18px | -
123+
--td-button-small-icon-size | 18px | -
124124
--td-button-small-padding-horizontal | 12px | -

src/button/button.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ onClick | Function | | TS 类型:`(e: MouseEvent) => void`<br/>点击时触
6363
--td-button-default-text-active-bg-color | @bg-color-container-active | -
6464
--td-button-extra-small-font-size | @font-size-base | -
6565
--td-button-extra-small-height | 28px | -
66-
--td-button-extra-small-icon-font-size | 18px | -
66+
--td-button-extra-small-icon-size | 18px | -
6767
--td-button-extra-small-padding-horizontal | 8px | -
6868
--td-button-font-weight | 600 | -
6969
--td-button-ghost-border-color | @button-ghost-color | -
@@ -80,7 +80,7 @@ onClick | Function | | TS 类型:`(e: MouseEvent) => void`<br/>点击时触
8080
--td-button-icon-spacer | @spacer | -
8181
--td-button-large-font-size | @font-size-m | -
8282
--td-button-large-height | 48px | -
83-
--td-button-large-icon-font-size | 24px | -
83+
--td-button-large-icon-size | 24px | -
8484
--td-button-large-padding-horizontal | 20px | -
8585
--td-button-light-active-bg-color | @brand-color-light-active | -
8686
--td-button-light-active-border-color | @brand-color-light-active | -
@@ -100,7 +100,7 @@ onClick | Function | | TS 类型:`(e: MouseEvent) => void`<br/>点击时触
100100
--td-button-light-text-color | @brand-color | -
101101
--td-button-medium-font-size | @font-size-m | -
102102
--td-button-medium-height | 40px | -
103-
--td-button-medium-icon-font-size | 20px | -
103+
--td-button-medium-icon-size | 20px | -
104104
--td-button-medium-padding-horizontal | 16px | -
105105
--td-button-primary-active-bg-color | @brand-color-active | -
106106
--td-button-primary-active-border-color | @brand-color-active | -
@@ -120,5 +120,5 @@ onClick | Function | | TS 类型:`(e: MouseEvent) => void`<br/>点击时触
120120
--td-button-primary-text-disabled-color | @brand-color-disabled | -
121121
--td-button-small-font-size | @font-size-base | -
122122
--td-button-small-height | 32px | -
123-
--td-button-small-icon-font-size | 18px | -
123+
--td-button-small-icon-size | 18px | -
124124
--td-button-small-padding-horizontal | 12px | -

src/calendar/calendar.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ Name | Default Value | Description
4747
--td-calendar-switch-mode-icon-color | @text-color-secondary | -
4848
--td-calendar-switch-mode-icon-disabled-color | @text-color-disabled | -
4949
--td-calendar-title-color | @text-color-primary | -
50-
--td-calendar-title-font-size | 18px | -
50+
--td-calendar-title-font | @font-title-large | -

src/calendar/calendar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ onSelect | Function | | TS 类型:`(value: Date) => void`<br/>点击日期时
4747
--td-calendar-switch-mode-icon-color | @text-color-secondary | -
4848
--td-calendar-switch-mode-icon-disabled-color | @text-color-disabled | -
4949
--td-calendar-title-color | @text-color-primary | -
50-
--td-calendar-title-font-size | 18px | -
50+
--td-calendar-title-font | @font-title-large | -

src/cascader/cascader.en-US.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ onPick | Function | | Typescript:`(value: string \| number, index: number) =>
3030
The component provides the following CSS variables, which can be used to customize styles.
3131
Name | Default Value | Description
3232
-- | -- | --
33-
--td-cascader-disabled-color | @text-color-disabled | -
34-
--td-cascader-options-title-color | @text-color-placeholder | -
35-
--td-cascader-step-arrow-color | @text-color-placeholder | -
3633
--td-cascader-active-color | @brand-color | -
3734
--td-cascader-bg-color | @bg-color-container | -
3835
--td-cascader-border-color | @component-stroke | -
36+
--td-cascader-disabled-color | @text-color-disabled | -
3937
--td-cascader-options-height | 320px | -
38+
--td-cascader-options-title-color | @text-color-placeholder | -
39+
--td-cascader-step-arrow-color | @text-color-placeholder | -
4040
--td-cascader-step-dot-size | 8px | -
4141
--td-cascader-step-height | 44px | -
4242
--td-cascader-title-color | @text-color-primary | -
43-
--td-cascader-title-font-size | 18px | -
43+
--td-cascader-title-font | @font-title-large | -
44+
--td-cascader-title-padding | @spacer-2 | -

src/cascader/cascader.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,15 @@ onPick | Function | | TS 类型:`(value: string \| number, index: number) =>
7171
组件提供了下列 CSS 变量,可用于自定义样式。
7272
名称 | 默认值 | 描述
7373
-- | -- | --
74-
--td-cascader-disabled-color | @text-color-disabled | -
75-
--td-cascader-options-title-color | @text-color-placeholder | -
76-
--td-cascader-step-arrow-color | @text-color-placeholder | -
7774
--td-cascader-active-color | @brand-color | -
7875
--td-cascader-bg-color | @bg-color-container | -
7976
--td-cascader-border-color | @component-stroke | -
77+
--td-cascader-disabled-color | @text-color-disabled | -
8078
--td-cascader-options-height | 320px | -
79+
--td-cascader-options-title-color | @text-color-placeholder | -
80+
--td-cascader-step-arrow-color | @text-color-placeholder | -
8181
--td-cascader-step-dot-size | 8px | -
8282
--td-cascader-step-height | 44px | -
8383
--td-cascader-title-color | @text-color-primary | -
84-
--td-cascader-title-font-size | 18px | -
84+
--td-cascader-title-font | @font-title-large | -
85+
--td-cascader-title-padding | @spacer-2 | -

0 commit comments

Comments
 (0)