Skip to content

Commit b0c2815

Browse files
chore(scripts): update generate css vars (#4075)
* chore(scripts): update generate css vars * chore: update scripts * chore: update _common --------- Co-authored-by: anlyyao <[email protected]>
1 parent 1540da7 commit b0c2815

File tree

117 files changed

+1557
-1703
lines changed

Some content is hidden

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

117 files changed

+1557
-1703
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"build:example": "gulp --gulpfile script/gulpfile.example.js --cwd ./",
1919
"build:assets": "cross-env NODE_ENV=production gulp assets:build --gulpfile script/gulpfile.dist.js --cwd ./",
2020
"update:icons": "pnpm -C packages/tdesign-miniprogram/site update:icons",
21-
"update:css": "pnpm -C packages/tdesign-miniprogram/site update:css",
21+
"api:css": "node packages/common/scripts/generate-css-vars.mjs Miniprogram",
2222
"lintfix": "eslint '{packages/components,packages/pro-components,packages/tdesign-miniprogram/example}/**/*.{js,ts}' --fix",
2323
"lint": "eslint '{packages/components,packages/pro-components,packages/tdesign-miniprogram/example}/**/*.{js,ts}'",
2424
"format": "prettier {packages/components,packages/pro-components,packages/tdesign-miniprogram/example,script}/**/*.{js,ts,wxss,less,wxml,html,json,md,wxs} --write",

packages/common

Submodule common updated 224 files

packages/components/action-sheet/README.en-US.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ t-class-content | \-
4848
The component provides the following CSS variables, which can be used to customize styles.
4949
Name | Default Value | Description
5050
-- | -- | --
51-
--td-action-sheet-border-color | @border-level-1-color | -
52-
--td-action-sheet-border-radius | @radius-extraLarge | -
53-
--td-action-sheet-cancel-color | @text-color-primary | -
54-
--td-action-sheet-cancel-height | 96rpx | -
55-
--td-action-sheet-color | @text-color-primary | -
56-
--td-action-sheet-description-color | @text-color-placeholder | -
57-
--td-action-sheet-description-font | @font-body-medium | -
58-
--td-action-sheet-gap-color | @bg-color-page | -
59-
--td-action-sheet-list-item-disabled-color | @text-color-disabled | -
60-
--td-action-sheet-list-item-height | 112rpx | -
61-
--td-action-sheet-text-align | center | -
51+
--td-action-sheet-border-color | @border-level-1-color | -
52+
--td-action-sheet-border-radius | @radius-extraLarge | -
53+
--td-action-sheet-cancel-color | @text-color-primary | -
54+
--td-action-sheet-cancel-height | 96rpx | -
55+
--td-action-sheet-color | @text-color-primary | -
56+
--td-action-sheet-description-color | @text-color-placeholder | -
57+
--td-action-sheet-description-font | @font-body-medium | -
58+
--td-action-sheet-gap-color | @bg-color-page | -
59+
--td-action-sheet-list-item-disabled-color | @text-color-disabled | -
60+
--td-action-sheet-list-item-height | 112rpx | -
61+
--td-action-sheet-text-align | center | -

packages/components/action-sheet/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ t-class-content | 内容样式类
136136
组件提供了下列 CSS 变量,可用于自定义样式。
137137
名称 | 默认值 | 描述
138138
-- | -- | --
139-
--td-action-sheet-border-color | @border-level-1-color | -
140-
--td-action-sheet-border-radius | @radius-extraLarge | -
141-
--td-action-sheet-cancel-color | @text-color-primary | -
142-
--td-action-sheet-cancel-height | 96rpx | -
143-
--td-action-sheet-color | @text-color-primary | -
144-
--td-action-sheet-description-color | @text-color-placeholder | -
145-
--td-action-sheet-description-font | @font-body-medium | -
146-
--td-action-sheet-gap-color | @bg-color-page | -
147-
--td-action-sheet-list-item-disabled-color | @text-color-disabled | -
148-
--td-action-sheet-list-item-height | 112rpx | -
149-
--td-action-sheet-text-align | center | -
139+
--td-action-sheet-border-color | @border-level-1-color | -
140+
--td-action-sheet-border-radius | @radius-extraLarge | -
141+
--td-action-sheet-cancel-color | @text-color-primary | -
142+
--td-action-sheet-cancel-height | 96rpx | -
143+
--td-action-sheet-color | @text-color-primary | -
144+
--td-action-sheet-description-color | @text-color-placeholder | -
145+
--td-action-sheet-description-font | @font-body-medium | -
146+
--td-action-sheet-gap-color | @bg-color-page | -
147+
--td-action-sheet-list-item-disabled-color | @text-color-disabled | -
148+
--td-action-sheet-list-item-height | 112rpx | -
149+
--td-action-sheet-text-align | center | -

packages/components/avatar/README.en-US.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -79,26 +79,26 @@ t-class-image | \-
7979
The component provides the following CSS variables, which can be used to customize styles.
8080
Name | Default Value | Description
8181
-- | -- | --
82-
--td-avatar-group-init-z-index | @avatar-group-init-zIndex) - @i | -
83-
--td-avatar-group-line-spacing | 4rpx | -
84-
--td-avatar-group-margin-left-large | -16rpx | -
85-
--td-avatar-group-margin-left-medium | -16rpx | -
86-
--td-avatar-group-margin-left-small | -16rpx | -
87-
--td-avatar-bg-color | @brand-color-light-active | -
88-
--td-avatar-border-color | #fff | -
89-
--td-avatar-border-width-large | 6rpx | -
90-
--td-avatar-border-width-medium | 4rpx | -
91-
--td-avatar-border-width-small | 2rpx | -
92-
--td-avatar-circle-border-radius | @radius-circle | -
93-
--td-avatar-content-color | @brand-color | -
94-
--td-avatar-icon-large-font-size | 64rpx | -
95-
--td-avatar-icon-medium-font-size | 48rpx | -
96-
--td-avatar-icon-small-font-size | 40rpx | -
97-
--td-avatar-large-width | 128rpx | -
98-
--td-avatar-margin-left | 0 | -
99-
--td-avatar-medium-width | 96rpx | -
100-
--td-avatar-round-border-radius | @radius-default | -
101-
--td-avatar-small-width | 80rpx | -
102-
--td-avatar-text-large-font-size | @font-size-xl | -
103-
--td-avatar-text-medium-font-size | @font-size-m | -
104-
--td-avatar-text-small-font-size | @font-size-base | -
82+
--td-avatar-group-init-z-index | @avatar-group-init-zIndex) - @i | -
83+
--td-avatar-group-line-spacing | 4rpx | -
84+
--td-avatar-group-margin-left-large | -16rpx | -
85+
--td-avatar-group-margin-left-medium | -16rpx | -
86+
--td-avatar-group-margin-left-small | -16rpx | -
87+
--td-avatar-bg-color | @brand-color-light-active | -
88+
--td-avatar-border-color | #fff | -
89+
--td-avatar-border-width-large | 6rpx | -
90+
--td-avatar-border-width-medium | 4rpx | -
91+
--td-avatar-border-width-small | 2rpx | -
92+
--td-avatar-circle-border-radius | @radius-circle | -
93+
--td-avatar-content-color | @brand-color | -
94+
--td-avatar-icon-large-font-size | 64rpx | -
95+
--td-avatar-icon-medium-font-size | 48rpx | -
96+
--td-avatar-icon-small-font-size | 40rpx | -
97+
--td-avatar-large-width | 128rpx | -
98+
--td-avatar-margin-left | 0 | -
99+
--td-avatar-medium-width | 96rpx | -
100+
--td-avatar-round-border-radius | @radius-default | -
101+
--td-avatar-small-width | 80rpx | -
102+
--td-avatar-text-large-font-size | @font-size-xl | -
103+
--td-avatar-text-medium-font-size | @font-size-m | -
104+
--td-avatar-text-small-font-size | @font-size-base | -

packages/components/avatar/README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -139,26 +139,26 @@ t-class-image | 图片样式类
139139
组件提供了下列 CSS 变量,可用于自定义样式。
140140
名称 | 默认值 | 描述
141141
-- | -- | --
142-
--td-avatar-group-init-z-index | @avatar-group-init-zIndex) - @i | -
143-
--td-avatar-group-line-spacing | 4rpx | -
144-
--td-avatar-group-margin-left-large | -16rpx | -
145-
--td-avatar-group-margin-left-medium | -16rpx | -
146-
--td-avatar-group-margin-left-small | -16rpx | -
147-
--td-avatar-bg-color | @brand-color-light-active | -
148-
--td-avatar-border-color | #fff | -
149-
--td-avatar-border-width-large | 6rpx | -
150-
--td-avatar-border-width-medium | 4rpx | -
151-
--td-avatar-border-width-small | 2rpx | -
152-
--td-avatar-circle-border-radius | @radius-circle | -
153-
--td-avatar-content-color | @brand-color | -
154-
--td-avatar-icon-large-font-size | 64rpx | -
155-
--td-avatar-icon-medium-font-size | 48rpx | -
156-
--td-avatar-icon-small-font-size | 40rpx | -
157-
--td-avatar-large-width | 128rpx | -
158-
--td-avatar-margin-left | 0 | -
159-
--td-avatar-medium-width | 96rpx | -
160-
--td-avatar-round-border-radius | @radius-default | -
161-
--td-avatar-small-width | 80rpx | -
162-
--td-avatar-text-large-font-size | @font-size-xl | -
163-
--td-avatar-text-medium-font-size | @font-size-m | -
164-
--td-avatar-text-small-font-size | @font-size-base | -
142+
--td-avatar-group-init-z-index | @avatar-group-init-zIndex) - @i | -
143+
--td-avatar-group-line-spacing | 4rpx | -
144+
--td-avatar-group-margin-left-large | -16rpx | -
145+
--td-avatar-group-margin-left-medium | -16rpx | -
146+
--td-avatar-group-margin-left-small | -16rpx | -
147+
--td-avatar-bg-color | @brand-color-light-active | -
148+
--td-avatar-border-color | #fff | -
149+
--td-avatar-border-width-large | 6rpx | -
150+
--td-avatar-border-width-medium | 4rpx | -
151+
--td-avatar-border-width-small | 2rpx | -
152+
--td-avatar-circle-border-radius | @radius-circle | -
153+
--td-avatar-content-color | @brand-color | -
154+
--td-avatar-icon-large-font-size | 64rpx | -
155+
--td-avatar-icon-medium-font-size | 48rpx | -
156+
--td-avatar-icon-small-font-size | 40rpx | -
157+
--td-avatar-large-width | 128rpx | -
158+
--td-avatar-margin-left | 0 | -
159+
--td-avatar-medium-width | 96rpx | -
160+
--td-avatar-round-border-radius | @radius-default | -
161+
--td-avatar-small-width | 80rpx | -
162+
--td-avatar-text-large-font-size | @font-size-xl | -
163+
--td-avatar-text-medium-font-size | @font-size-m | -
164+
--td-avatar-text-small-font-size | @font-size-base | -

packages/components/back-top/README.en-US.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ t-class-text | \-
4141
The component provides the following CSS variables, which can be used to customize styles.
4242
Name | Default Value | Description
4343
-- | -- | --
44-
--td-back-top-half-round-border-radius | @radius-round | -
45-
--td-back-top-round-bg-color | @bg-color-container | -
46-
--td-back-top-round-border-color | @component-border | -
47-
--td-back-top-round-border-radius | @radius-circle | -
48-
--td-back-top-round-color | @text-color-primary | -
49-
--td-back-top-round-dark-bg-color | @gray-color-13 | -
50-
--td-back-top-round-dark-color | @text-color-anti | -
44+
--td-back-top-half-round-border-radius | @radius-round | -
45+
--td-back-top-round-bg-color | @bg-color-container | -
46+
--td-back-top-round-border-color | @component-border | -
47+
--td-back-top-round-border-radius | @radius-circle | -
48+
--td-back-top-round-color | @text-color-primary | -
49+
--td-back-top-round-dark-bg-color | @gray-color-13 | -
50+
--td-back-top-round-dark-color | @text-color-anti | -

packages/components/back-top/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ t-class-text | 文本样式类
7272
组件提供了下列 CSS 变量,可用于自定义样式。
7373
名称 | 默认值 | 描述
7474
-- | -- | --
75-
--td-back-top-half-round-border-radius | @radius-round | -
76-
--td-back-top-round-bg-color | @bg-color-container | -
77-
--td-back-top-round-border-color | @component-border | -
78-
--td-back-top-round-border-radius | @radius-circle | -
79-
--td-back-top-round-color | @text-color-primary | -
80-
--td-back-top-round-dark-bg-color | @gray-color-13 | -
81-
--td-back-top-round-dark-color | @text-color-anti | -
75+
--td-back-top-half-round-border-radius | @radius-round | -
76+
--td-back-top-round-bg-color | @bg-color-container | -
77+
--td-back-top-round-border-color | @component-border | -
78+
--td-back-top-round-border-radius | @radius-circle | -
79+
--td-back-top-round-color | @text-color-primary | -
80+
--td-back-top-round-dark-bg-color | @gray-color-13 | -
81+
--td-back-top-round-dark-color | @text-color-anti | -

packages/components/badge/README.en-US.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ t-class-count | \-
3838
The component provides the following CSS variables, which can be used to customize styles.
3939
Name | Default Value | Description
4040
-- | -- | --
41-
--td-badge-basic-height | 32rpx | -
42-
--td-badge-basic-padding | 8rpx | -
43-
--td-badge-basic-width | 32rpx | -
44-
--td-badge-bg-color | @error-color | -
45-
--td-badge-border-radius | 4rpx | -
46-
--td-badge-bubble-border-radius | 20rpx 20rpx 20rpx 1px | -
47-
--td-badge-content-text-color | @text-color-primary | -
48-
--td-badge-dot-size | 16rpx | -
49-
--td-badge-font | @font-mark-extraSmall | -
50-
--td-badge-large-font | @font-mark-small | -
51-
--td-badge-large-height | 40rpx | -
52-
--td-badge-large-padding | 10rpx | -
53-
--td-badge-text-color | @text-color-anti | -
41+
--td-badge-basic-height | 32rpx | -
42+
--td-badge-basic-padding | 8rpx | -
43+
--td-badge-basic-width | 32rpx | -
44+
--td-badge-bg-color | @error-color | -
45+
--td-badge-border-radius | 4rpx | -
46+
--td-badge-bubble-border-radius | 20rpx 20rpx 20rpx 1px | -
47+
--td-badge-content-text-color | @text-color-primary | -
48+
--td-badge-dot-size | 16rpx | -
49+
--td-badge-font | @font-mark-extraSmall | -
50+
--td-badge-large-font | @font-mark-small | -
51+
--td-badge-large-height | 40rpx | -
52+
--td-badge-large-padding | 10rpx | -
53+
--td-badge-text-color | @text-color-anti | -

packages/components/badge/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,16 @@ t-class-count | 计数样式类
7979
组件提供了下列 CSS 变量,可用于自定义样式。
8080
名称 | 默认值 | 描述
8181
-- | -- | --
82-
--td-badge-basic-height | 32rpx | -
83-
--td-badge-basic-padding | 8rpx | -
84-
--td-badge-basic-width | 32rpx | -
85-
--td-badge-bg-color | @error-color | -
86-
--td-badge-border-radius | 4rpx | -
87-
--td-badge-bubble-border-radius | 20rpx 20rpx 20rpx 1px | -
88-
--td-badge-content-text-color | @text-color-primary | -
89-
--td-badge-dot-size | 16rpx | -
90-
--td-badge-font | @font-mark-extraSmall | -
91-
--td-badge-large-font | @font-mark-small | -
92-
--td-badge-large-height | 40rpx | -
93-
--td-badge-large-padding | 10rpx | -
94-
--td-badge-text-color | @text-color-anti | -
82+
--td-badge-basic-height | 32rpx | -
83+
--td-badge-basic-padding | 8rpx | -
84+
--td-badge-basic-width | 32rpx | -
85+
--td-badge-bg-color | @error-color | -
86+
--td-badge-border-radius | 4rpx | -
87+
--td-badge-bubble-border-radius | 20rpx 20rpx 20rpx 1px | -
88+
--td-badge-content-text-color | @text-color-primary | -
89+
--td-badge-dot-size | 16rpx | -
90+
--td-badge-font | @font-mark-extraSmall | -
91+
--td-badge-large-font | @font-mark-small | -
92+
--td-badge-large-height | 40rpx | -
93+
--td-badge-large-padding | 10rpx | -
94+
--td-badge-text-color | @text-color-anti | -

0 commit comments

Comments
 (0)